simplify registry, add a few more opinionated defaults
This commit is contained in:
parent
ae40c97785
commit
e5efb36b8b
|
@ -22,7 +22,8 @@
|
||||||
# TODO: This is just an example, be sure to use whatever bootloader you prefer
|
# TODO: This is just an example, be sure to use whatever bootloader you prefer
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
# TODO: Configure your users as usual.
|
# TODO: Configure your system-wide user settings (stuff on the user
|
||||||
|
# environment should instead go to home.nix)
|
||||||
users.users = {
|
users.users = {
|
||||||
# TODO: Replace with your username
|
# TODO: Replace with your username
|
||||||
you = {
|
you = {
|
||||||
|
@ -30,6 +31,8 @@
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
|
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
|
||||||
];
|
];
|
||||||
|
# Be sure to add any other groups you need
|
||||||
|
extraGroups = [ "wheel" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,11 +52,12 @@
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
autoOptimiseStore = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# This will make all users source .nix-profile on login, activating home
|
# This will make all users activate their home-manager profile upon login, if
|
||||||
# manager automatically. Will allow you to use home-manager standalone on
|
# it exists and is not activated yet. This is useful for setups with opt-in
|
||||||
# setups with opt-in persistance.
|
# persistance, avoiding having to manually activate every reboot.
|
||||||
environment.loginShellInit = ''
|
environment.loginShellInit = ''
|
||||||
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
|
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
|
||||||
'';
|
'';
|
||||||
|
@ -61,6 +65,6 @@
|
||||||
# This will add your inputs as registries, making operations with them
|
# This will add your inputs as registries, making operations with them
|
||||||
# consistent with your flake inputs.
|
# consistent with your flake inputs.
|
||||||
nix.registry = lib.mapAttrs' (n: v:
|
nix.registry = lib.mapAttrs' (n: v:
|
||||||
lib.nameValuePair ("${n}") ({ flake = inputs."${n}"; })
|
lib.nameValuePair (n) ({ flake = v; })
|
||||||
) inputs;
|
) inputs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue