diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-03 14:18:32 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-03 14:18:32 +0530 |
| commit | 62c6e3038af1e360af462c928d28d049070e113f (patch) | |
| tree | dad053a5e3cd8035e62676aa3df5404fd4a03894 /modules | |
| parent | 9881f2cb777a54483c4b2932b45ccc13332a57d9 (diff) | |
update
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/amdgpu.nix | 6 | ||||
| -rw-r--r-- | modules/laptop.nix | 20 | ||||
| -rw-r--r-- | modules/login.nix | 7 | ||||
| -rw-r--r-- | modules/wm_utils.nix | 10 |
4 files changed, 24 insertions, 19 deletions
diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix index f8828f0..430faf3 100644 --- a/modules/amdgpu.nix +++ b/modules/amdgpu.nix @@ -3,7 +3,7 @@ { hardware.graphics.enable = true; hardware.graphics.extraPackages = with pkgs; [ - # rocmPackages.clr.icd + rocmPackages.clr.icd amdvlk vaapiVdpau libvdpau-va-gl @@ -15,7 +15,7 @@ services.xserver.videoDrivers = [ "modesetting" ]; - /* systemd.tmpfiles.rules = [ + systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" - ]; */ + ]; } diff --git a/modules/laptop.nix b/modules/laptop.nix index 317c5e4..39719ae 100644 --- a/modules/laptop.nix +++ b/modules/laptop.nix @@ -1,16 +1,16 @@ { pkgs, config, ... }: { - # services.tlp = { - # enable = true; - # settings = { - # CPU_SCALING_GOVERNOR_ON_AC = "performance"; - # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - # - # CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - # CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - # }; - # }; + /* services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + }; + }; */ boot = { kernelModules = [ "acpi_call" ]; diff --git a/modules/login.nix b/modules/login.nix index 0789cff..c439e52 100644 --- a/modules/login.nix +++ b/modules/login.nix @@ -10,8 +10,8 @@ enable = true; settings = { default_session = { - # command = "tuigreet --time --remember --cmd \"startplasma-wayland\""; - command = "tuigreet --time --remember --cmd \"dwl -s dwlb\""; + command = "tuigreet --time --remember --cmd \"startplasma-wayland\""; + # command = "tuigreet --time --remember --cmd \"dwl -s dwlb\""; user = "greeter"; }; }; @@ -36,6 +36,9 @@ security.pam.services.swaylock.text = '' auth include login ''; + security.pam.loginLimits = [ + { domain = "@users"; item = "rtprio"; type = "-"; value = 1; } + ]; services.libinput.enable = true; diff --git a/modules/wm_utils.nix b/modules/wm_utils.nix index 1f1f417..e29b287 100644 --- a/modules/wm_utils.nix +++ b/modules/wm_utils.nix @@ -1,8 +1,6 @@ { pkgs, ... }: -let - wbg = (pkgs.callPackage ../packages/wbg.nix {}); -in { +{ environment.systemPackages = with pkgs; [ polkit_gnome @@ -11,13 +9,17 @@ in { inotify-tools + wbg + wirelesstools pamixer brightnessctl networkmanagerapplet + grim + slurp sway-launcher-desktop - ] ++ [ wbg ]; + ]; xdg.portal.enable = true; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr pkgs.xdg-desktop-portal ]; |
