diff --git a/flake.lock b/flake.lock index 112c36a2..7a888369 100644 --- a/flake.lock +++ b/flake.lock @@ -796,11 +796,11 @@ }, "nixpkgs-master": { "locked": { - "lastModified": 1731587417, - "narHash": "sha256-mkJrccWWaJ1TkzYXJ/zyUsYr2es9jz/LhgZVaOcyXIk=", + "lastModified": 1731596400, + "narHash": "sha256-m6D3Nqtrnu74tCsBDBRoc0OpP+ZiBA9owr900vZ3tEc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "da59bf006c3c0b2b51c3de7b902e306e956d4e03", + "rev": "6efe194fbec6d156eedff4210476eb06bb844bc7", "type": "github" }, "original": { @@ -827,11 +827,11 @@ }, "nixpkgs-scx-test": { "locked": { - "lastModified": 1731587980, - "narHash": "sha256-eAtg38O3SQG8xNIIu7DVL7nD3yN08JmGoWk5yisFK78=", + "lastModified": 1731597748, + "narHash": "sha256-FgqAx766XXmI3J8DbCXsf3rEFwSbbzKWwsGaLwoeV3w=", "owner": "nixos", "repo": "nixpkgs", - "rev": "22f78be6bba9b5e0867a8a0a2062f07ed8ee07cd", + "rev": "2e9ae5007cd7836559fc92bc533bbf1f8e07975d", "type": "github" }, "original": { @@ -841,6 +841,22 @@ "type": "github" } }, + "nixpkgs-soteria-test": { + "locked": { + "lastModified": 1731597883, + "narHash": "sha256-gp7mW1WyG5tKl3hQCv5a75JwQ7HLeOaaaDRRzVQxBNY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "cfe25277b764abd478459e9e5834954ee4cf5e42", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "refs/pull/355924/merge", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-stable": { "locked": { "lastModified": 1730741070, @@ -966,11 +982,11 @@ }, "nur": { "locked": { - "lastModified": 1731585420, - "narHash": "sha256-y4VprnlzWwZzh+kQNRVYzld8VavLXEEm81RLctMkkL4=", + "lastModified": 1731597103, + "narHash": "sha256-6Q8G9D7MOC3r3OK8ah4ejeqQU3H1CumwjKBNiNF7Rgo=", "owner": "nix-community", "repo": "NUR", - "rev": "09f375beaece1d509a1289c145b3ba651f5192a2", + "rev": "37b0dad212626ccf8baa666de2b16dd011ffbfa2", "type": "github" }, "original": { @@ -1044,6 +1060,7 @@ "nixpkgs-edge": "nixpkgs-edge", "nixpkgs-master": "nixpkgs-master", "nixpkgs-scx-test": "nixpkgs-scx-test", + "nixpkgs-soteria-test": "nixpkgs-soteria-test", "nur": "nur", "rose-pine-hyprcursor": "rose-pine-hyprcursor", "ucodenix": "ucodenix" diff --git a/flake.nix b/flake.nix index 5d56a721..3c7f8be7 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ nixpkgs-edge.url = "nixpkgs/nixos-unstable-small"; # For latest packages nixpkgs-master.url = "nixpkgs/master"; # Testing branch of nixpkgs nixpkgs-scx-test.url = "github:nixos/nixpkgs/refs/pull/352300/merge"; + nixpkgs-soteria-test.url = "github:nixos/nixpkgs/refs/pull/355924/merge"; flake-parts = { url = "github:hercules-ci/flake-parts"; # Flake parts for easy flake management diff --git a/modules-overlays/default.nix b/modules-overlays/default.nix index bf572c0c..5a7eff2f 100644 --- a/modules-overlays/default.nix +++ b/modules-overlays/default.nix @@ -8,5 +8,6 @@ imports = [ #./amdgpu.nix # import modules here to test "${inputs.nixpkgs-scx-test}/nixos/modules/services/scheduling/scx.nix" + "${inputs.nixpkgs-soteria-test}/nixos/modules/security/soteria.nix" ]; } diff --git a/system/hyprland/default.nix b/system/hyprland/default.nix index 7d51d190..d97182a6 100644 --- a/system/hyprland/default.nix +++ b/system/hyprland/default.nix @@ -156,6 +156,8 @@ in { inputs.rose-pine-hyprcursor.packages.${pkgs.system}.default ]; + security.soteria.enable = true; # soteria graphical polkit agent + # Environment variables to start the session with environment.sessionVariables = { GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";