From 319467b95061caa4a76f8e6b02d067d7fb984d6e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 15 Sep 2024 21:11:06 -0400 Subject: [PATCH] nixos: add river options --- homeManagerModules/options.nix | 12 ++++++------ nixosModules/desktop/river/default.nix | 12 ++++++++++++ nixosModules/options.nix | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 nixosModules/desktop/river/default.nix diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index b5d27ffa..94698c10 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -141,18 +141,18 @@ in { }; }; - sway = { + river = { enable = lib.mkOption { - description = "Sway with full desktop session components."; - default = osConfig.ar.desktop.sway.enable; + description = "River with full desktop session components."; + default = osConfig.ar.desktop.river.enable; type = lib.types.bool; }; }; - river = { + sway = { enable = lib.mkOption { - description = "River with full desktop session components."; - default = false; #osConfig.ar.desktop.river.enable; + description = "Sway with full desktop session components."; + default = osConfig.ar.desktop.sway.enable; type = lib.types.bool; }; }; diff --git a/nixosModules/desktop/river/default.nix b/nixosModules/desktop/river/default.nix new file mode 100644 index 00000000..7a57c366 --- /dev/null +++ b/nixosModules/desktop/river/default.nix @@ -0,0 +1,12 @@ +{ + lib, + config, + ... +}: { + config = lib.mkIf config.ar.desktop.river.enable { + programs.river = { + enable = true; + extraPackages = lib.mkDefault []; + }; + }; +} diff --git a/nixosModules/options.nix b/nixosModules/options.nix index 61cf0b90..e00790e1 100644 --- a/nixosModules/options.nix +++ b/nixosModules/options.nix @@ -30,6 +30,7 @@ }; hyprland.enable = lib.mkEnableOption "Hyprland wayland session."; + river.enable = lib.mkEnableOption "River wayland session."; steam.enable = lib.mkEnableOption "Steam + Gamescope session."; sway.enable = lib.mkEnableOption "Sway wayland session."; };