57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
self,
|
|
lib,
|
|
mylib,
|
|
pkgs,
|
|
username,
|
|
config,
|
|
inputs,
|
|
publicKeys,
|
|
...
|
|
}: {
|
|
nix = {
|
|
package = pkgs.nixVersions.stable;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes pipe-operators
|
|
'';
|
|
|
|
settings.trusted-users = ["root" "${username}"];
|
|
|
|
gc.automatic = false;
|
|
gc.options = "--delete-older-than 5d";
|
|
settings.auto-optimise-store = true;
|
|
optimise.automatic = true;
|
|
|
|
registry = lib.mapAttrs' (n: v: lib.nameValuePair n {flake = v;}) inputs;
|
|
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs.outPath}"
|
|
"home-manager=${inputs.home-manager.outPath}"
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
alejandra
|
|
];
|
|
|
|
programs = {
|
|
fish.enable = true;
|
|
neovim.enable = true;
|
|
|
|
nh = {
|
|
enable = true;
|
|
clean.enable = true;
|
|
clean.extraArgs = "--keep 3";
|
|
flake = "/Users/${username}/NixFlake";
|
|
};
|
|
};
|
|
|
|
# Set Git commit hash for darwin-version.
|
|
system.configurationRevision = self.rev or self.dirtyRev or null;
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 6;
|
|
}
|