rearrange directory structure

This commit is contained in:
Tristan 2024-01-05 21:53:27 +00:00
parent 2fe0f94a23
commit 67cb4995f9
33 changed files with 213 additions and 219 deletions

19
nixos/modules/wayland.nix Normal file
View 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 {};
}