Install hyprland and additionals.
This commit is contained in:
parent
6ec3de9e4e
commit
11879eac6a
4 changed files with 251 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
./nfs-share.nix
|
||||
./auto-cpufreq.nix
|
||||
./wireguard.nix
|
||||
./hyprland.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
|
@ -30,4 +31,5 @@
|
|||
crony.nfs-share.enable = lib.mkDefault true;
|
||||
crony.auto-cpufreq.enable = lib.mkDefault true;
|
||||
crony.wireguard.enable = lib.mkDefault true;
|
||||
crony.hyprland-nixos.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
30
modules/nixos/hyprland.nix
Normal file
30
modules/nixos/hyprland.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.hyprland-nixos.enable = lib.mkEnableOption "Enable hyprland globally";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.hyprland-nixos.enable {
|
||||
programs.uwsm = {
|
||||
enable = true;
|
||||
|
||||
waylandCompositors = {
|
||||
hyprland = {
|
||||
prettyName = "Hyprland";
|
||||
comment = "Hyprland compositor managed by UWSM";
|
||||
binPath = "/run/current-system/sw/bin/Hyprland";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
security.pam.services.hyprlock = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue