46 lines
1 KiB
Nix
Executable file
46 lines
1 KiB
Nix
Executable file
{
|
|
host,
|
|
...
|
|
}: { # Create plugdev group
|
|
networking.hostName = host.hostName;
|
|
time.timeZone = "America/Chicago";
|
|
users = {
|
|
groups.plugdev = {};
|
|
groups.${host.username} = {};
|
|
users.${host.username} = {
|
|
isNormalUser = true;
|
|
group = "${host.username}";
|
|
extraGroups = [
|
|
"wheel"
|
|
"plugdev"
|
|
"video"
|
|
"adbusers"
|
|
];
|
|
};
|
|
};
|
|
programs = {
|
|
nix-index = {
|
|
enableBashIntegration = false;
|
|
enableZshIntegration = false;
|
|
};
|
|
nix-index-database.comma.enable = true;
|
|
};
|
|
|
|
# Enable flakes and unfree packages
|
|
nix = {
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
substituters = ["https://nix-community.cachix.org"];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
trusted-users = [host.username];
|
|
experimental-features = ["nix-command" "flakes"];
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
dates = "00:00";
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
};
|
|
}
|