I HATE FLAKES, I HATE FLAKES, I HATE FLAKES
This commit is contained in:
parent
3ac51c3662
commit
1dd3af35f0
8 changed files with 74 additions and 62 deletions
|
|
@ -3,7 +3,9 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
choose = paths: builtins.head (builtins.filter (p: builtins.pathExists p) paths);
|
||||
in {
|
||||
options.local = {
|
||||
hostname = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
|
@ -28,12 +30,12 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
# Optionally: ./modules/toolsets/remote_building.nix
|
||||
(choose [ ./modules/desktop-manager/sway_greetd_homemanager.nix ../desktop-manager/sway_greetd_homemanager.nix ])
|
||||
(choose [ ./modules/local/hostname_username.nix ../local/hostname_username.nix ])
|
||||
(choose [ ./modules/local/networking_local.nix ../local/networking_local.nix ])
|
||||
(choose [ ./modules/bootloader/seabios-assigned-iso-at-birth.nix ../bootloader/seabios-assigned-iso-at-birth.nix ])
|
||||
(choose [ ./modules/lix-default.nix ../lix-default.nix ])
|
||||
# Optionally: (choose [ ./modules/toolsets/remote_building.nix ../toolsets/remote_building.nix ])
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue