rearrange directory structure
This commit is contained in:
parent
2fe0f94a23
commit
67cb4995f9
33 changed files with 213 additions and 219 deletions
19
nixos/modules/wayland.nix
Normal file
19
nixos/modules/wayland.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{user}: {
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
opt = config.windowManager;
|
||||
in {
|
||||
options.windowManager = mkOption {
|
||||
default = null;
|
||||
type = lib.types.oneOf ["hyprland" "sway"];
|
||||
};
|
||||
|
||||
config =
|
||||
if opt == "hyprland"
|
||||
then (import ../programs/hyprland.nix {inherit user;} {inherit lib pkgs;})
|
||||
else {};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue