wayland nixos module

This commit is contained in:
Ivan Kirilov Dimitrov 2024-07-04 11:53:22 +02:00
parent d1a08295ed
commit 338fd6e92c
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ in
./nova-hardware.nix
inputs.hosts.nixosModule
inputs.catppuccin.nixosModules.catppuccin
] ++ (with toplevel.config.flake.nixosModules; [ grub base sound security ivand wireless wireguard style ]);
] ++ (with toplevel.config.flake.nixosModules; [ grub base sound wayland security ivand wireless wireguard style ]);
});
vm = withSystem system (ctx@{ config, inputs', ... }:
inputs.nixpkgs.lib.nixosSystem {

View File

@ -22,7 +22,6 @@
experimental-features = nix-command flakes
'';
};
hardware.graphics.enable = true;
i18n.supportedLocales = [ "all" ];
time.timeZone = "Europe/Prague";
fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) noto-fonts noto-fonts-emoji noto-fonts-lgc-plus ];
@ -71,6 +70,10 @@
};
};
});
wayland = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
hardware.graphics.enable = true;
security.pam.services.swaylock = { };
});
security = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
security = {
sudo = {
@ -91,7 +94,6 @@
};
polkit.enable = true;
rtkit.enable = true;
pam = { services = { swaylock = { }; }; };
};
});
wireguard = {