diff options
| -rw-r--r-- | config/dwl.nix | 6 | ||||
| -rw-r--r-- | machines/x/configuration.nix | 5 | ||||
| -rw-r--r-- | modules/core/audio.nix | 1 | ||||
| -rw-r--r-- | modules/laptop.nix | 19 | ||||
| -rw-r--r-- | modules/wm_utils.nix | 2 |
5 files changed, 30 insertions, 3 deletions
diff --git a/config/dwl.nix b/config/dwl.nix index b5ecc3b..d9f7b96 100644 --- a/config/dwl.nix +++ b/config/dwl.nix @@ -4,9 +4,9 @@ let dwl = (pkgs.callPackage ../packages/dwl.nix {}); dwlb = (pkgs.callPackage ../packages/dwlb.nix {}); in { - xdg.portal.enable = true; - xdg.portal.configPackages = [ pkgs.xdg-desktop-portal pkgs.xdg-desktop-portal-wlr ]; - xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal pkgs.xdg-desktop-portal-wlr ]; + /* xdg.portal.enable = true; + xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal ]; + xdg.portal.config.common.default = "wlr"; */ home.packages = [ dwl dwlb ]; } diff --git a/machines/x/configuration.nix b/machines/x/configuration.nix index 0b18f38..256e4d2 100644 --- a/machines/x/configuration.nix +++ b/machines/x/configuration.nix @@ -9,6 +9,7 @@ "amdgpu.nix" "amd.nix" "nvidia.nix" + "laptop.nix" "core/audio.nix" "core/bluetooth.nix" "core/fonts.nix" @@ -33,6 +34,10 @@ home-manager.users.compromyse = import ./home.nix; + xdg.portal.enable = true; + xdg.portal.wlr.enable = true; + xdg.portal.config.common.default = "*"; + networking.extraHosts = '' 127.0.0.1 download.labsmartlis.local diff --git a/modules/core/audio.nix b/modules/core/audio.nix index f358c2c..9e45d9e 100644 --- a/modules/core/audio.nix +++ b/modules/core/audio.nix @@ -9,5 +9,6 @@ alsa.support32Bit = true; pulse.enable = true; jack.enable = true; + wireplumber.enable = true; }; } diff --git a/modules/laptop.nix b/modules/laptop.nix new file mode 100644 index 0000000..f619d78 --- /dev/null +++ b/modules/laptop.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: + +{ + 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"; + + CPU_MIN_PERF_ON_AC = 0; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 20; + }; + }; +} diff --git a/modules/wm_utils.nix b/modules/wm_utils.nix index 850b29e..9160d9c 100644 --- a/modules/wm_utils.nix +++ b/modules/wm_utils.nix @@ -16,4 +16,6 @@ sway-launcher-desktop ]; + + services.dbus.enable = true; } |
