reorganize Hyprland module

This commit is contained in:
2025-04-12 17:05:44 +02:00
parent f5f2478422
commit 7df2e1dd1d
8 changed files with 593 additions and 57 deletions

View File

@ -7,8 +7,10 @@
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};

View File

@ -2,9 +2,6 @@
{
imports = [
# DEs
../../modules/desktop-environments/hyprland.nix
# Utilities
../../modules/nixos/nvidia-support.nix
../../modules/nixos/fingerprint.nix
@ -17,11 +14,6 @@
inputs.nordvpn.nixosModules.nordvpn
];
modules.hyprland = {
enable = true;
additionalPackages = with pkgs; [ hyprshot ];
};
modules.apple-style.enable = true;
modules.bluetooth.enable = true;
modules.nvidia.enable = true;
@ -32,11 +24,25 @@
};
services = {
tlp.enable = false;
nordvpn.enable = true;
dbus.enable = true;
gvfs.enable = true;
upower.enable = true;
power-profiles-daemon.enable = true;
xserver.displayManager = {
gdm.enable = true;
startx.enable = true;
};
printing = {
enable = true;
drivers = with pkgs; [ hplipWithPlugin ];
};
udev.extraRules = ''
SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
'';
};
programs = {
@ -47,5 +53,7 @@
thunar-archive-plugin
thunar-volman
];
light.enable = true;
};
}

View File

@ -9,7 +9,7 @@ in {
isNormalUser = true;
description = fullname;
home = "/home/${username}";
extraGroups = [ "wheel" "networkmanager" "plugdev" "adbusers" "nordvpn" ];
extraGroups = [ "wheel" "networkmanager" "plugdev" "adbusers" "video" ];
shell = preferredShell;
ignoreShellProgramCheck = true; # Will do it later in profile configuration
};