mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
environment: don't use default for profiles
This makes it easier to add entries without having to add all of the default values again.
This commit is contained in:
parent
ea179bf9bf
commit
a0f2ceb787
1 changed files with 7 additions and 6 deletions
|
@ -40,12 +40,6 @@ in {
|
||||||
|
|
||||||
environment.profiles = mkOption {
|
environment.profiles = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default =
|
|
||||||
[ # Use user, default and system profiles.
|
|
||||||
"$HOME/.nix-profile"
|
|
||||||
"/nix/var/nix/profiles/default"
|
|
||||||
"/run/current-system/sw"
|
|
||||||
];
|
|
||||||
description = "A list of profiles used to setup the global environment.";
|
description = "A list of profiles used to setup the global environment.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -119,6 +113,13 @@ in {
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
environment.profiles =
|
||||||
|
[ # Use user, default and system profiles.
|
||||||
|
"$HOME/.nix-profile"
|
||||||
|
"/nix/var/nix/profiles/default"
|
||||||
|
"/run/current-system/sw"
|
||||||
|
];
|
||||||
|
|
||||||
environment.pathsToLink =
|
environment.pathsToLink =
|
||||||
[ "/bin"
|
[ "/bin"
|
||||||
"/lib"
|
"/lib"
|
||||||
|
|
Loading…
Add table
Reference in a new issue