aboutsummaryrefslogtreecommitdiff
path: root/modules/global.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-02-24 13:00:54 -0500
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-02-24 13:00:54 -0500
commitcfa595c7264a3618759d8382de0996017c558e26 (patch)
treea1cfcaa716330734cc6b1be59dd0b668e446f057 /modules/global.nix
parentc867dd3ea21816e69de08088385d0d9246433765 (diff)
downloadhome-cfa595c7264a3618759d8382de0996017c558e26.tar.gz
stuff and things...
Diffstat (limited to 'modules/global.nix')
-rw-r--r--modules/global.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/modules/global.nix b/modules/global.nix
index f26be5f..5d88ef2 100644
--- a/modules/global.nix
+++ b/modules/global.nix
@@ -12,18 +12,21 @@ in
description = "Whether nix is running outside of NixOS.";
};
wayland = mkEnableOption "Wayland";
+ extraPackages = mkOption {
+ type = with lib.types; listOf package;
+ description = "List of extra packages to install";
+ example = [ pkgs.cowsay pkgs.lolcat ];
+ default = [];
+ };
};
config = {
- modules = {
- global.wayland = true;
- foot.enable = true;
+ modules = rec {
+ global = {
+ wayland = lib.mkDefault true;
+ };
sway = {
- enable = true;
- wrapWithNixGL = true;
-# package = if cfg.notNixOS then
- # (config.lib.nixGL.wrap pkgs.sway) else pkgs.sway;
-# package = config.lib.nixGL.wrap pkgs.sway;
+ wrapWithNixGL = cfg.notNixOS;
};
};
@@ -49,9 +52,7 @@ in
++ (lib.optionals cfg.wayland
[
wl-clipboard
- mako
- wmenu
- cmatrix
+ #...
]);
};