Fixed the proper edge case handling of dummy file system. Moved the Gnome settings to the new options as per nixpkgs evaluation.
All checks were successful
Build Nix modules (dry-run) / build-modules (push) Successful in 3m40s
All checks were successful
Build Nix modules (dry-run) / build-modules (push) Successful in 3m40s
This commit is contained in:
parent
7fdee70cec
commit
7f3b5afbf6
2 changed files with 10 additions and 3 deletions
|
|
@ -5,6 +5,12 @@
|
|||
...
|
||||
}: let
|
||||
choose = paths: builtins.head (builtins.filter (p: builtins.pathExists p) paths);
|
||||
dummyFileSystems = {
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.local = {
|
||||
hostname = lib.mkOption {
|
||||
|
|
@ -41,7 +47,8 @@ in {
|
|||
(choose [./modules/system_scripts/gcloud_backup.nix ../system_scripts/gcloud_backup.nix])
|
||||
## TODO: Make this more elegant and less risky for unexpected errors happening.
|
||||
]
|
||||
++ lib.optional (builtins.pathExists ./hardware-configuration.nix) ./hardware-configuration.nix;
|
||||
++ lib.optional (builtins.pathExists ./hardware-configuration.nix) ./hardware-configuration.nix
|
||||
++ lib.optional (!builtins.pathExists ./hardware-configuration.nix) dummyFileSystems;
|
||||
|
||||
config = {
|
||||
local.hostname = "nixosdd";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue