Add lib.mkDefault for non configurable defaults
This commit is contained in:
parent
8c976e97e2
commit
1a518fa79a
4 changed files with 14 additions and 11 deletions
|
|
@ -50,13 +50,14 @@ in {
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
kernelParams =
|
kernelParams = lib.mkDefault (
|
||||||
[
|
[
|
||||||
''resume="PARTLABEL=SWAP"''
|
''resume="PARTLABEL=SWAP"''
|
||||||
''quiet''
|
''quiet''
|
||||||
''udev.log_level=3''
|
''udev.log_level=3''
|
||||||
]
|
]
|
||||||
++ config.conf.bootParams;
|
++ config.conf.bootParams
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
@ -101,7 +102,7 @@ in {
|
||||||
|
|
||||||
builders-use-substitutes = mkDashDefault true;
|
builders-use-substitutes = mkDashDefault true;
|
||||||
|
|
||||||
substituters = [
|
substituters = lib.mkDefault [
|
||||||
"https://hyprland.cachix.org"
|
"https://hyprland.cachix.org"
|
||||||
"https://anyrun.cachix.org"
|
"https://anyrun.cachix.org"
|
||||||
"https://cache.garnix.io"
|
"https://cache.garnix.io"
|
||||||
|
|
@ -115,7 +116,7 @@ in {
|
||||||
"https://chaotic-nyx.cachix.org/"
|
"https://chaotic-nyx.cachix.org/"
|
||||||
];
|
];
|
||||||
|
|
||||||
trusted-public-keys = [
|
trusted-public-keys = lib.mkDefault [
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
|
|
@ -162,7 +163,8 @@ in {
|
||||||
"video"
|
"video"
|
||||||
"audio"
|
"audio"
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs;
|
||||||
|
lib.mkDefault [
|
||||||
home-manager
|
home-manager
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
mkDashDefault,
|
mkDashDefault,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
environment = {
|
environment = {
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = lib.mkIf (config ? sops.secrets && config.sops.secrets ? access.path) ''
|
extraOptions = lib.mkDefault (lib.mkIf (config ? sops.secrets && config.sops.secrets ? access.path) ''
|
||||||
!include ${config.sops.secrets.access.path}
|
!include ${config.sops.secrets.access.path}
|
||||||
'';
|
'');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
users.${config.conf.username} = {
|
users.${config.conf.username} = {
|
||||||
disabledModules = ["programs/anyrun.nix"];
|
disabledModules = lib.mkDefault ["programs/anyrun.nix"];
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./common.nix
|
./common.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue