diff options
| author | seth <[email protected]> | 2023-05-08 00:21:41 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-08 00:21:41 -0400 |
| commit | 9cedd06b8589a5d39a7a85e2efe646a8edebac53 (patch) | |
| tree | 8884a1238b0586396bc403098e23e78505ab514e /modules/nixos/default.nix | |
| parent | 589c80eb1bcaf76b4a1a7e6f9cdd725fdb04e063 (diff) | |
modules: merge base and nixos
Diffstat (limited to 'modules/nixos/default.nix')
| -rw-r--r-- | modules/nixos/default.nix | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index bbe334e..3ae2f08 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,30 +1,7 @@ -{ - config, - lib, - ... -}: let - cfg = config.getchoo.nixos; - inherit (lib) mkDefault mkEnableOption mkIf; -in { - options.getchoo.nixos.enable = mkEnableOption "base nixos module"; - +_: { imports = [ - ./locale.nix - ./network.nix - ./root.nix - ./security.nix - ./systemd.nix - ./virtualisation.nix + ./base + ./desktop + ./hardware ]; - - config = mkIf cfg.enable { - getchoo = { - base.enable = true; - nixos = { - defaultLocale.enable = mkDefault true; - defaultRoot.enable = mkDefault true; - networking.enable = mkDefault true; - }; - }; - }; } |
