reorganize Hyprland module
This commit is contained in:
@ -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";
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user