diff options
| author | seth <[email protected]> | 2023-05-04 17:09:32 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-04 17:09:32 -0400 |
| commit | 94e2d64cbbb4c1901bbd7466f12662dba28005da (patch) | |
| tree | ed0eb80c62f75b3ec5f302249dab60b3a1726ed2 /modules/nixos | |
| parent | 9937a252dec0f33437a396e0f6c43ca456cf5b92 (diff) | |
modules: prefix with getchoo
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/default.nix | 16 | ||||
| -rw-r--r-- | modules/nixos/locale.nix | 4 | ||||
| -rw-r--r-- | modules/nixos/network.nix | 4 | ||||
| -rw-r--r-- | modules/nixos/root.nix | 4 | ||||
| -rw-r--r-- | modules/nixos/virtualisation.nix | 4 |
5 files changed, 17 insertions, 15 deletions
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 5767d6b..bbe334e 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -3,10 +3,10 @@ lib, ... }: let - cfg = config.nixos; + cfg = config.getchoo.nixos; inherit (lib) mkDefault mkEnableOption mkIf; in { - options.nixos.enable = mkEnableOption "base nixos module"; + options.getchoo.nixos.enable = mkEnableOption "base nixos module"; imports = [ ./locale.nix @@ -18,11 +18,13 @@ in { ]; config = mkIf cfg.enable { - base.enable = true; - nixos = { - defaultLocale.enable = mkDefault true; - defaultRoot.enable = mkDefault true; - networking.enable = mkDefault true; + getchoo = { + base.enable = true; + nixos = { + defaultLocale.enable = mkDefault true; + defaultRoot.enable = mkDefault true; + networking.enable = mkDefault true; + }; }; }; } diff --git a/modules/nixos/locale.nix b/modules/nixos/locale.nix index 1ac2466..c362a6d 100644 --- a/modules/nixos/locale.nix +++ b/modules/nixos/locale.nix @@ -3,10 +3,10 @@ lib, ... }: let - cfg = config.nixos.defaultLocale; + cfg = config.getchoo.nixos.defaultLocale; inherit (lib) mkEnableOption mkIf; in { - options.nixos.defaultLocale.enable = mkEnableOption "enable default locale"; + options.getchoo.nixos.defaultLocale.enable = mkEnableOption "enable default locale"; config = mkIf cfg.enable { i18n = { diff --git a/modules/nixos/network.nix b/modules/nixos/network.nix index 8ad670e..7dce2b1 100644 --- a/modules/nixos/network.nix +++ b/modules/nixos/network.nix @@ -3,10 +3,10 @@ lib, ... }: let - cfg = config.nixos.networking; + cfg = config.getchoo.nixos.networking; inherit (lib) mkEnableOption mkIf; in { - options.nixos.networking.enable = mkEnableOption "enable networking"; + options.getchoo.nixos.networking.enable = mkEnableOption "enable networking"; config = mkIf cfg.enable { networking.networkmanager = { diff --git a/modules/nixos/root.nix b/modules/nixos/root.nix index a49e3bf..f2e5878 100644 --- a/modules/nixos/root.nix +++ b/modules/nixos/root.nix @@ -3,10 +3,10 @@ lib, ... }: let - cfg = config.nixos.defaultRoot; + cfg = config.getchoo.nixos.defaultRoot; inherit (lib) mkDefault mkEnableOption mkIf; in { - options.nixos.defaultRoot.enable = mkEnableOption "enable default root user"; + options.getchoo.nixos.defaultRoot.enable = mkEnableOption "enable default root user"; config = mkIf cfg.enable { users.users.root = { diff --git a/modules/nixos/virtualisation.nix b/modules/nixos/virtualisation.nix index 5f2fec3..932cc6d 100644 --- a/modules/nixos/virtualisation.nix +++ b/modules/nixos/virtualisation.nix @@ -4,10 +4,10 @@ pkgs, ... }: let - cfg = config.nixos.virtualisation; + cfg = config.getchoo.nixos.virtualisation; inherit (lib) mkEnableOption mkIf; in { - options.nixos.virtualisation.enable = mkEnableOption "enable podman"; + options.getchoo.nixos.virtualisation.enable = mkEnableOption "enable podman"; config = mkIf cfg.enable { virtualisation = { |
