From 079ba8a9d52dae9779b505304651d949330373a6 Mon Sep 17 00:00:00 2001 From: worble Date: Mon, 17 Nov 2025 16:01:31 +0000 Subject: [PATCH] add oomd; swap back from tlp to power profiles; update resharper code; remove more mozilla bs --- configuration/base/default.nix | 1 + configuration/base/oomd.nix | 10 +++++++ configuration/modules/laptop.nix | 28 +++++++++---------- devices/tuxedo/flake.lock | 35 ++++++------------------ home-manager/development/vscode.nix | 2 +- home-manager/firefox/firefox-profile.nix | 2 ++ 6 files changed, 37 insertions(+), 41 deletions(-) create mode 100644 configuration/base/oomd.nix diff --git a/configuration/base/default.nix b/configuration/base/default.nix index 77869b9..804259a 100644 --- a/configuration/base/default.nix +++ b/configuration/base/default.nix @@ -6,6 +6,7 @@ ./location-time.nix ./networking.nix ./nix-settings.nix + ./oomd.nix ./pipewire.nix ./programs.nix ]; diff --git a/configuration/base/oomd.nix b/configuration/base/oomd.nix new file mode 100644 index 0000000..c317080 --- /dev/null +++ b/configuration/base/oomd.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + systemd.oomd = { + enable = true; + enableRootSlice = true; + enableSystemSlice = true; + enableUserSlices = true; + }; +} diff --git a/configuration/modules/laptop.nix b/configuration/modules/laptop.nix index 47c984c..c87ea7a 100644 --- a/configuration/modules/laptop.nix +++ b/configuration/modules/laptop.nix @@ -1,20 +1,20 @@ { ... }: { - services.power-profiles-daemon.enable = false; - services.tlp = { - enable = true; - settings = { - RESTORE_DEVICE_STATE_ON_STARTUP = 1; - USB_AUTOSUSPEND = 0; - PLATFORM_PROFILE_ON_AC = "performance"; - PLATFORM_PROFILE_ON_BAT = "low-power"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power"; - CPU_BOOST_ON_AC = 1; - CPU_BOOST_ON_BAT = 0; - }; - }; + services.power-profiles-daemon.enable = true; + # services.tlp = { + # enable = true; + # settings = { + # RESTORE_DEVICE_STATE_ON_STARTUP = 1; + # USB_AUTOSUSPEND = 0; + # PLATFORM_PROFILE_ON_AC = "performance"; + # PLATFORM_PROFILE_ON_BAT = "low-power"; + # CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + # CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power"; + # CPU_BOOST_ON_AC = 1; + # CPU_BOOST_ON_BAT = 0; + # }; + # }; # Enable touchpad support (enabled by default in most desktopManagers). services.libinput.enable = true; diff --git a/devices/tuxedo/flake.lock b/devices/tuxedo/flake.lock index 212946d..f6daf4f 100644 --- a/devices/tuxedo/flake.lock +++ b/devices/tuxedo/flake.lock @@ -66,11 +66,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1762912605, - "narHash": "sha256-ekyaqHW6fidE5gAzO8zX+aXNMnb1O/kCsmEZ4n0PnMQ=", + "lastModified": 1763171608, + "narHash": "sha256-W0iHOP2SX8cKgmvLaAKodTa92YN8/6ptcuHd7SU0IZ0=", "owner": "nix-community", "repo": "nix-vscode-extensions", - "rev": "6110f762f238177ba231e8726fabcf4706c9c378", + "rev": "0f6a247888aae2de9ab6307471a9d72e7a7043f2", "type": "github" }, "original": { @@ -95,29 +95,13 @@ "type": "github" } }, - "nixpkgs-master": { - "locked": { - "lastModified": 1762981236, - "narHash": "sha256-+5mtk40MIILLdvoTw5gknZQTz+HQA36yrAeELY7Avxg=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "d3eef293ea180ef8b46c4b977c5b33cda61563ef", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "master", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs-unstable": { "locked": { - "lastModified": 1762844143, - "narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=", + "lastModified": 1762977756, + "narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4", + "rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55", "type": "github" }, "original": { @@ -129,11 +113,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1762756533, - "narHash": "sha256-HiRDeUOD1VLklHeOmaKDzf+8Hb7vSWPVFcWwaTrpm+U=", + "lastModified": 1763049705, + "narHash": "sha256-A5LS0AJZ1yDPTa2fHxufZN++n8MCmtgrJDtxFxrH4S8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c2448301fb856e351aab33e64c33a3fc8bcf637d", + "rev": "3acb677ea67d4c6218f33de0db0955f116b7588c", "type": "github" }, "original": { @@ -150,7 +134,6 @@ "nix-index-database": "nix-index-database", "nix-vscode-extensions": "nix-vscode-extensions", "nixpkgs": "nixpkgs_2", - "nixpkgs-master": "nixpkgs-master", "nixpkgs-unstable": "nixpkgs-unstable" } } diff --git a/home-manager/development/vscode.nix b/home-manager/development/vscode.nix index 4df067c..7a63c53 100644 --- a/home-manager/development/vscode.nix +++ b/home-manager/development/vscode.nix @@ -3,7 +3,7 @@ let openvsx = inputs.nix-vscode-extensions.extensions.x86_64-linux.open-vsx; vscode-marketplace = inputs.nix-vscode-extensions.extensions.x86_64-linux.vscode-marketplace; - version = "0.0.13"; + version = "0.0.14"; resharper-code = (pkgs.vscode-utils.buildVscodeMarketplaceExtension { mktplcRef = { diff --git a/home-manager/firefox/firefox-profile.nix b/home-manager/firefox/firefox-profile.nix index b842f2c..38b8be7 100644 --- a/home-manager/firefox/firefox-profile.nix +++ b/home-manager/firefox/firefox-profile.nix @@ -97,6 +97,8 @@ # AI "browser.ml.chat.page" = false; + # AI tab groups + "browser.tabs.groups.smart.userEnabled" = false; /* Arkenfox Begin */