remove profile activation, add channel sync to default nixos config
This commit is contained in:
parent
5b996debfa
commit
5981a6010b
|
@ -18,15 +18,15 @@
|
||||||
# You can also split up your configuration and import pieces of it here.
|
# You can also split up your configuration and import pieces of it here.
|
||||||
];
|
];
|
||||||
|
|
||||||
# This will add your inputs as registries, making operations with them (such
|
nix = {
|
||||||
# as nix shell nixpkgs#name) consistent with your flake inputs.
|
# This will add each flake input as a registry
|
||||||
nix.registry = lib.mapAttrs' (n: v: lib.nameValuePair n { flake = v; }) inputs;
|
# To make nix3 commands consistent with your flake
|
||||||
|
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
||||||
|
|
||||||
# Will activate home-manager profiles for each user upon login
|
# This will additionally add your inputs to the system's legacy channels
|
||||||
# This is useful when using ephemeral installations
|
# Making legacy nix commands consistent as well, awesome!
|
||||||
environment.loginShellInit = ''
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
||||||
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -18,15 +18,15 @@
|
||||||
# You can also split up your configuration and import pieces of it here.
|
# You can also split up your configuration and import pieces of it here.
|
||||||
];
|
];
|
||||||
|
|
||||||
# This will add your inputs as registries, making operations with them (such
|
nix = {
|
||||||
# as nix shell nixpkgs#name) consistent with your flake inputs.
|
# This will add each flake input as a registry
|
||||||
nix.registry = lib.mapAttrs' (n: v: lib.nameValuePair n { flake = v; }) inputs;
|
# To make nix3 commands consistent with your flake
|
||||||
|
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
||||||
|
|
||||||
# Will activate home-manager profiles for each user upon login
|
# This will additionally add your inputs to the system's legacy channels
|
||||||
# This is useful when using ephemeral installations
|
# Making legacy nix commands consistent as well, awesome!
|
||||||
environment.loginShellInit = ''
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
||||||
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue