feat(nix): configure nh
This commit is contained in:
parent
86c3bbc1e6
commit
b4cd8edacd
@ -3,25 +3,35 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nix.gc = {
|
nix = {
|
||||||
automatic = true;
|
gc = {
|
||||||
options = "--delete-older-than 30d";
|
automatic = true;
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
|
optimise.automatic = true;
|
||||||
|
settings = {
|
||||||
|
extra-experimental-features = [
|
||||||
|
"flakes"
|
||||||
|
"nix-command"
|
||||||
|
];
|
||||||
|
keep-outputs = true;
|
||||||
|
log-lines = 25;
|
||||||
|
tarball-ttl = 43200;
|
||||||
|
trusted-users = [
|
||||||
|
"root"
|
||||||
|
config.my.user
|
||||||
|
];
|
||||||
|
};
|
||||||
|
package = pkgs.nix;
|
||||||
};
|
};
|
||||||
nix.optimise.automatic = true;
|
|
||||||
nix.settings = {
|
environment.systemPackages = with pkgs; [
|
||||||
extra-experimental-features = [
|
unstable.nh
|
||||||
"flakes"
|
];
|
||||||
"nix-command"
|
|
||||||
];
|
# TODO: make sure hostnames always match flake output name
|
||||||
keep-outputs = true;
|
environment.variables."NH_FLAKE" = ''${config.hm.home.homeDirectory}/Projects/nix-dots'';
|
||||||
log-lines = 25;
|
|
||||||
tarball-ttl = 43200;
|
|
||||||
trusted-users = [
|
|
||||||
"root"
|
|
||||||
config.my.user
|
|
||||||
];
|
|
||||||
};
|
|
||||||
nix.package = pkgs.nix;
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
);
|
);
|
||||||
in {
|
in {
|
||||||
flake.darwinConfigurations = {
|
flake.darwinConfigurations = {
|
||||||
mac = mkDarwin {
|
neptune = mkDarwin {
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
hm = import ../user/environments/mac/home.nix;
|
hm = import ../user/environments/mac/home.nix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user