diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-09 09:28:45 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-09 09:35:09 -0700 |
commit | 32cf02d926f09f8112378ee65f526bfbbcab7da2 (patch) | |
tree | e5f3fffa27b3ef438c85f2749bc214308e96ff39 /profiles | |
parent | ref(GTK): remove the profile for GTK (diff) | |
download | world-32cf02d926f09f8112378ee65f526bfbbcab7da2.tar.gz |
ref(profiles): get rid of all the profiles
All the modules that are setup by the profiles are now managed at the host level. This simplify some configuration, and will make it easier to adjust things at the host instead of trying to squeeze everything into profiles. This will also help the refactoring later, when I'll split nixos and home-manager configuration. Change-Id: I17ffda8b0b5d15bf1915c6fae5030380523d74b5 Reviewed-on: https://cl.fcuny.net/c/world/+/297 Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default.nix | 1 | ||||
-rw-r--r-- | profiles/desktop/default.nix | 19 | ||||
-rw-r--r-- | profiles/wm/default.nix | 18 |
3 files changed, 0 insertions, 38 deletions
diff --git a/profiles/default.nix b/profiles/default.nix deleted file mode 100644 index 19780e7..0000000 --- a/profiles/default.nix +++ /dev/null @@ -1 +0,0 @@ -{ ... }: { imports = [ ./wm ./desktop ]; } diff --git a/profiles/desktop/default.nix b/profiles/desktop/default.nix deleted file mode 100644 index 50b7828..0000000 --- a/profiles/desktop/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, lib, ... }: -let cfg = config.my.profiles.desktop; -in { - options.my.profiles.desktop = with lib; { - enable = mkEnableOption "desktop profile"; - }; - config = lib.mkIf cfg.enable { - my = { - systems = { fonts.enable = true; }; - services = { - gnome.enable = true; - # we need avahi in order to use the printer/scanner - avahi.enable = true; - }; - profiles = { wm.windowManager = "sway"; }; - programs = { sway.enable = true; }; - }; - }; -} diff --git a/profiles/wm/default.nix b/profiles/wm/default.nix deleted file mode 100644 index 7b1fe39..0000000 --- a/profiles/wm/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ config, lib, ... }: -let cfg = config.my.profiles.wm; -in { - options.my.profiles.wm = with lib; { - windowManager = mkOption { - type = with types; nullOr (enum [ "sway" ]); - default = null; - example = "sway"; - description = "Which window manager to use"; - }; - }; - config = lib.mkMerge [ - (lib.mkIf (cfg.windowManager == "sway") { - # Enable sway - my.home.wm.windowManager = "sway"; - }) - ]; -} |