From db0e55a89c56630b92bf897ec26a372aae85e89d Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 Aug 2024 22:53:35 +0200 Subject: [PATCH 1/3] Add polkit support --- modules/core/security.nix | 1 + modules/home/hyprland/config.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/security.nix b/modules/core/security.nix index f6b2a3d..927a477 100644 --- a/modules/core/security.nix +++ b/modules/core/security.nix @@ -1,5 +1,6 @@ {pkgs, ...}: { security.rtkit.enable = true; + security.polkit.enable = true; security.sudo.enable = true; security.sudo.package = pkgs.sudo.override {withInsults = true;}; # I'm spanish and I love cursing # security.pam.services.swaylock = { }; diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 416c0c6..9a753d6 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -1,8 +1,9 @@ -{...}: { +{pkgs, ...}: { wayland.windowManager.hyprland = { settings = { # autostart exec-once = [ + "${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent &" "nm-applet &" "wl-clip-persist --clipboard both &" "bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'" From 67cb494c162a94e63873b17110b5edd17383c8f0 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 Aug 2024 23:02:57 +0200 Subject: [PATCH 2/3] FIx swap --- hosts/frues-port/hardware-configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/frues-port/hardware-configuration.nix b/hosts/frues-port/hardware-configuration.nix index 011f35d..89b5fcd 100644 --- a/hosts/frues-port/hardware-configuration.nix +++ b/hosts/frues-port/hardware-configuration.nix @@ -29,8 +29,10 @@ fsType = "vfat"; }; + boot.initrd.luks.devices."luks-d56d945e-77a6-4061-ab03-80c2830c6cd3".device = "/dev/disk/by-uuid/d56d945e-77a6-4061-ab03-80c2830c6cd3"; + swapDevices = [ - {device = "/dev/disk/by-uuid/5f19b076-bad1-4201-b13b-f4aa20b48c3a";} + {device = "/dev/disk/by-uuid/77baf723-2a3d-4c90-9323-6ee1a875cbd8";} ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking From e7e3d03d7a70bffb89056187f0ba18960a3791bf Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 Aug 2024 23:10:31 +0200 Subject: [PATCH 3/3] Add pkgs-unstable to all hosts --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index f17b5ec..5b61503 100644 --- a/flake.nix +++ b/flake.nix @@ -61,7 +61,7 @@ modules = [(import ./hosts/frues-port)]; specialArgs = { host = "frues-port"; - inherit self inputs username; + inherit self inputs username pkgs-unstable; }; }; frues-vm = nixpkgs.lib.nixosSystem { @@ -69,7 +69,7 @@ modules = [(import ./hosts/frues-vm)]; specialArgs = { host = "frues-vm"; - inherit self inputs username; + inherit self inputs username pkgs-unstable; }; }; fruesos-live = nixpkgs.lib.nixosSystem { @@ -80,7 +80,7 @@ ]; specialArgs = { host = "fruesos-live"; - inherit self inputs username; + inherit self inputs username pkgs-unstable; }; }; };