Set-up marabethia as a development machine
This commit is contained in:
parent
f4eab84ac2
commit
6a795ac029
6 changed files with 54 additions and 36 deletions
|
@ -82,6 +82,7 @@
|
||||||
rootPool = "zroot";
|
rootPool = "zroot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
development.enable = true;
|
||||||
games = {
|
games = {
|
||||||
particles.server = true;
|
particles.server = true;
|
||||||
tetris.server = true;
|
tetris.server = true;
|
||||||
|
|
|
@ -22,6 +22,6 @@
|
||||||
zfs.homeLinks = [{ path = ".android"; type = "cache"; }];
|
zfs.homeLinks = [{ path = ".android"; type = "cache"; }];
|
||||||
};
|
};
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
users.users.charlotte.extraGroups = [ "adbusers" ];
|
users.users.charlotte.extraGroups = [ "adbusers" "dialout" "uucp" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
imports = [
|
imports = [
|
||||||
./android
|
./android
|
||||||
./docker
|
./docker
|
||||||
./git
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf config.chvp.development.enable {
|
config = lib.mkIf config.chvp.development.enable {
|
||||||
chvp.development.docker.enable = lib.mkDefault true;
|
chvp = {
|
||||||
|
base.zfs.homeLinks = [{ path = "repos"; type = "cache"; }];
|
||||||
users.users.charlotte.extraGroups = [ "dialout" "uucp" ];
|
development.docker.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernel.sysctl."fs.inotify.max_user_watches" = 524288;
|
boot.kernel.sysctl."fs.inotify.max_user_watches" = 524288;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.charlotte.programs.git = lib.mkIf config.chvp.development.git.enable {
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -13,7 +13,6 @@
|
||||||
{ path = "downloads"; type = "cache"; }
|
{ path = "downloads"; type = "cache"; }
|
||||||
{ path = "music"; type = "data"; }
|
{ path = "music"; type = "data"; }
|
||||||
{ path = "pictures"; type = "cache"; }
|
{ path = "pictures"; type = "cache"; }
|
||||||
{ path = "repos"; type = "cache"; }
|
|
||||||
{ path = "templates"; type = "data"; }
|
{ path = "templates"; type = "data"; }
|
||||||
{ path = "videos"; type = "data"; }
|
{ path = "videos"; type = "data"; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -65,7 +65,30 @@ in
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
programs.git = {
|
programs = {
|
||||||
|
gh = {
|
||||||
|
enable = true;
|
||||||
|
extensions = [
|
||||||
|
(pkgs.buildGoModule {
|
||||||
|
pname = "gh-skyline";
|
||||||
|
version = "0.1.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "github";
|
||||||
|
repo = "gh-skyline";
|
||||||
|
tag = "v0.1.2";
|
||||||
|
hash = "sha256-fe2mM46DM7LhbZP2QhcwkXUWp8o4iY/LLgALJ+H60P0=";
|
||||||
|
};
|
||||||
|
vendorHash = "sha256-rfv9KTTWs68pqSdgWo9dIn+PTe+77ZMOEhG0P37QwKo=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X main.Version=0.1.2"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
@ -93,4 +116,5 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue