small changes to polkit and other minor things

This commit is contained in:
cnst
2024-12-13 21:13:11 +01:00
parent 5842dfcdb6
commit 3d28f81a56
15 changed files with 73 additions and 91 deletions

80
flake.lock generated
View File

@@ -82,11 +82,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1733967201, "lastModified": 1734087975,
"narHash": "sha256-gfA/6BUhFmrfTMaTNToHm5Lm9c/snG7ED4W/x4vCGJs=", "narHash": "sha256-dQYXdA5zGKZ1G5HfPj9Gjf0JRGwXexl/dC9oZW5xOec=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "1559608a73a9211c7f78e7a0a8c13caca9f31006", "rev": "1174e016e517f60a8cfe00f0a5785e4c8bd17b53",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -156,11 +156,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1733899011, "lastModified": 1734071760,
"narHash": "sha256-SpHdn/wQ1Y4YfpJ2WJBT+nFFMSDTtbQPtgFidonsiv0=", "narHash": "sha256-i5/1cvgahF0lvtRkg9aKlYr0SuE8hNO7xaqvdkc+qXE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "24b76cc6d5bebb01947ae7a3e6ac894239abc7be", "rev": "db0bcf236f561ebbac1204074757c26c53a3d63c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -419,11 +419,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1733858674, "lastModified": 1734059364,
"narHash": "sha256-u5IFTMAd/z9xJLizanF+HPpYOppS+eLgsLgDr2oalL8=", "narHash": "sha256-tCMz/tgXOBhshFOfd2ED9e02TeK6tuElD/6rjnKU4Z4=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "89a7cde2f05fbf2eae212d9301301a8377432be5", "rev": "ce133a2889956c5cc383be0725cdc78eb3277c05",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -439,11 +439,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733873195, "lastModified": 1734093295,
"narHash": "sha256-dTosiZ3sZ/NKoLKQ++v8nZdEHya0eTNEsaizNp+MUPM=", "narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f26aa4b76fb7606127032d33ac73d7d507d82758", "rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -481,11 +481,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732884235, "lastModified": 1733873195,
"narHash": "sha256-r8j6R3nrvwbT1aUp4EPQ1KC7gm0pu9VcV1aNaB+XG6Q=", "narHash": "sha256-dTosiZ3sZ/NKoLKQ++v8nZdEHya0eTNEsaizNp+MUPM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "819f682269f4e002884702b87e445c82840c68f2", "rev": "f26aa4b76fb7606127032d33ac73d7d507d82758",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -659,11 +659,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1733938069, "lastModified": 1734005819,
"narHash": "sha256-k2R2/rI4+A2bAyjCSwD//vCWZZnQcl38j/DiZzsNCHk=", "narHash": "sha256-hbA0aFybdxjpu4Tr4xH57mOLjRMqcop6iBVA0ZFIIx4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland", "repo": "hyprland",
"rev": "df956a0f6fbcfd7397b2d7b86883c0936c7795ec", "rev": "aefaeedf5e3f773c923373795267c1633141566c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -929,11 +929,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732739177, "lastModified": 1733859890,
"narHash": "sha256-iL32+TA/8geCzcL1r3uthrH/GPvbUak5QE++WJUkaiI=", "narHash": "sha256-HnA6z2l2W38TJBarvWCcxjTjcpz7JrDj2u2umjYFcEo=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "8d7b2149e618696d5100c2683af1ffa893f02a75", "rev": "77ffd839fd9d60d139dc4a2ad6b6d526f4ad5a17",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1057,11 +1057,11 @@
"umu": "umu" "umu": "umu"
}, },
"locked": { "locked": {
"lastModified": 1733821969, "lastModified": 1733968149,
"narHash": "sha256-JYAnT6hfRXdBNRCmhZa3XPFv19zbWXi8DDcY9AeNiQI=", "narHash": "sha256-ulxjvehU+KoMtLqxJSQJJu97X1eeXOlhKpGDeSR7IMo=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "89887483a47f9e7e849d43e5992f9da54b3e8e0e", "rev": "43b9832ae7407054aa411d485e701b4a207ce6d3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1187,11 +1187,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1732521221, "lastModified": 1733940404,
"narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=", "narHash": "sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d", "rev": "5d67ea6b4b63378b9c13be21e2ec9d1afc921713",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1266,11 +1266,11 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1733759999, "lastModified": 1733940404,
"narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=", "narHash": "sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56", "rev": "5d67ea6b4b63378b9c13be21e2ec9d1afc921713",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1441,11 +1441,11 @@
"systems": "systems_6" "systems": "systems_6"
}, },
"locked": { "locked": {
"lastModified": 1733864451, "lastModified": 1734023787,
"narHash": "sha256-gWigNPzzoi2i4sbolxPAAISTWCtNL09Mok5uRVo21kg=", "narHash": "sha256-0yBJIYIFNqwg2BuL0410jqdEulKcxnd54vINtzL3tAc=",
"owner": "notashelf", "owner": "notashelf",
"repo": "nvf", "repo": "nvf",
"rev": "73660af2e36e9881c6cf7d82600950785b4cd51d", "rev": "a0a57757a07941c5523e646f0a97176492704bd4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -3427,11 +3427,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1733814336, "lastModified": 1734022706,
"narHash": "sha256-xKttEMfuf2hzcdiNQucxkvW2vCUe5e9HyfPntOcBSq0=", "narHash": "sha256-rIz8/rsTP5N7uLSyFbHZ+ink6EHBKkWFAQPkzhq7/YM=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "7b4b83ba916800dfa4b4776790fdf6771c22f82e", "rev": "9b2e72c40454012cbac8a1aa94d65931e3a7b881",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -3735,11 +3735,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733843154, "lastModified": 1733973541,
"narHash": "sha256-0Ym6ogpL5uOpDuBEEU6ecjT7Yw+Ak5LB51fxdq53VSI=", "narHash": "sha256-Reym14RITlg+BuoRY8VjBDmRiDzLGQDc0YHB2aGw3ME=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "af81082a9b35d977e6fccef9c6d6da65134164fd", "rev": "b8bbf8e474497be705e632172c6e60f669ce23a5",
"revCount": 59, "revCount": 60,
"type": "git", "type": "git",
"url": "https://git.sr.ht/~canasta/zen-browser-flake" "url": "https://git.sr.ht/~canasta/zen-browser-flake"
}, },

View File

@@ -13,7 +13,7 @@
kernelModules = []; kernelModules = [];
luks.devices."enc".device = "/dev/disk/by-uuid/1bda09f1-5b2c-4040-ab71-cee54a6df910"; luks.devices."enc".device = "/dev/disk/by-uuid/1bda09f1-5b2c-4040-ab71-cee54a6df910";
}; };
kernelModules = ["kvm-amd"]; kernelModules = ["amdgpu"];
extraModulePackages = []; extraModulePackages = [];
supportedFilesystems = ["btrfs"]; supportedFilesystems = ["btrfs"];
}; };

View File

@@ -39,10 +39,6 @@
allowedTCPPorts = [22 80 443]; allowedTCPPorts = [22 80 443];
}; };
}; };
nm-applet = {
enable = true;
indicator = true;
};
}; };
}; };
programs = { programs = {
@@ -179,6 +175,9 @@
pipewire = { pipewire = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
powerd = { powerd = {
enable = true; enable = true;
}; };

View File

@@ -39,10 +39,6 @@
allowedTCPPorts = [22 80 443]; allowedTCPPorts = [22 80 443];
}; };
}; };
nm-applet = {
enable = true;
indicator = true;
};
}; };
}; };
programs = { programs = {
@@ -179,6 +175,9 @@
pipewire = { pipewire = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
powerd = { powerd = {
enable = true; enable = true;
}; };

View File

@@ -5,7 +5,7 @@
extraBlacklistedModules = []; extraBlacklistedModules = [];
extraKernelParams = []; extraKernelParams = [];
hardware = "nvidia"; hardware = "nvidia";
variant = "stable"; variant = "latest";
}; };
loader = { loader = {
default = { default = {
@@ -42,10 +42,6 @@
allowedTCPPorts = [22 80 443]; allowedTCPPorts = [22 80 443];
}; };
}; };
nm-applet = {
enable = true;
indicator = true;
};
}; };
}; };
programs = { programs = {
@@ -182,6 +178,9 @@
pipewire = { pipewire = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
powerd = { powerd = {
enable = true; enable = true;
}; };

View File

@@ -42,7 +42,6 @@
./home/services/hypridle ./home/services/hypridle
./home/services/hyprpaper ./home/services/hyprpaper
./home/services/mako ./home/services/mako
./home/services/polkit
./home/services/syncthing ./home/services/syncthing
./home/services/udiskie ./home/services/udiskie
./home/services/xdg ./home/services/xdg
@@ -98,6 +97,7 @@
./nixos/services/openssh ./nixos/services/openssh
./nixos/services/pcscd ./nixos/services/pcscd
./nixos/services/pipewire ./nixos/services/pipewire
./nixos/services/polkit
./nixos/services/powerd ./nixos/services/powerd
./nixos/services/samba ./nixos/services/samba
./nixos/services/scx ./nixos/services/scx

View File

@@ -28,7 +28,8 @@ in {
"uwsm app -- blueman-applet" "uwsm app -- blueman-applet"
"uwsm app -- keepassxc" "uwsm app -- keepassxc"
"uwsm app -- pamixer --set-volume 50" "uwsm app -- pamixer --set-volume 50"
"uwsm app -- solaar -w hide" "uwsm app -- solaar -w hide -b regular"
"uwsm app -- nm-applet --indicator"
]; ];
}) })
@@ -37,6 +38,7 @@ in {
"uwsm app -- blueman-applet" "uwsm app -- blueman-applet"
"uwsm app -- keepassxc" "uwsm app -- keepassxc"
"uwsm app -- pamixer --set-volume 50" "uwsm app -- pamixer --set-volume 50"
"uwsm app -- nm-applet --indicator"
]; ];
}) })
@@ -44,7 +46,8 @@ in {
wayland.windowManager.hyprland.settings.exec-once = [ wayland.windowManager.hyprland.settings.exec-once = [
"uwsm app -- mullvad-vpn" "uwsm app -- mullvad-vpn"
"uwsm app -- keepassxc" "uwsm app -- keepassxc"
"uwsm app -- solaar -w hide" "uwsm app -- solaar -w hide -b regular"
"uwsm app -- nm-applet --indicator"
]; ];
}) })
]); ]);

View File

@@ -18,9 +18,10 @@ in {
}; };
systemd.user.services.waybar = { systemd.user.services.waybar = {
Unit.After = ["graphical-session.target"]; Unit = {
Service.Slice = ["app-graphical.slice"]; StartLimitBurst = 30;
Unit.StartLimitBurst = 30; After = lib.mkForce "graphical-session.target";
};
}; };
}; };
} }

View File

@@ -95,6 +95,7 @@ in {
wayland_git wayland_git
scx.rustscheds scx.rustscheds
rocmPackages.rocm-smi rocmPackages.rocm-smi
libGL
]; ];
}) })
]); ]);

View File

@@ -32,6 +32,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
egl-wayland egl-wayland
libGL
]; ];
hardware = { hardware = {
graphics = { graphics = {

View File

@@ -27,14 +27,6 @@ in {
default = {}; default = {};
description = "Network interface configurations."; description = "Network interface configurations.";
}; };
nm-applet = {
enable = mkEnableOption "Enables the nm-applet service.";
indicator = mkOption {
type = types.bool;
default = false;
description = "Enables the nm-applet indicator.";
};
};
}; };
}; };
@@ -59,10 +51,5 @@ in {
wants = ["nftables.service"]; wants = ["nftables.service"];
after = ["nftables.service"]; after = ["nftables.service"];
}; };
programs.nm-applet = {
enable = cfg.nm-applet.enable;
indicator = cfg.nm-applet.indicator;
};
}; };
} }

View File

@@ -24,6 +24,7 @@ in {
pkgs.nodejs_22 pkgs.nodejs_22
pkgs.tree pkgs.tree
pkgs.gnome-disk-utility pkgs.gnome-disk-utility
pkgs.networkmanagerapplet
] ]
(mkIf cfg.desktop.enable [ (mkIf cfg.desktop.enable [
pkgs.protonup pkgs.protonup

View File

@@ -5,28 +5,25 @@
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.home.services.polkit; cfg = config.nixos.services.polkit;
in { in {
options = { options = {
home.services.polkit.enable = mkEnableOption "Enables polkit"; nixos.services.polkit.enable = mkEnableOption "Enables polkit";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
systemd.user.services.polkit-gnome-authentication-agent-1 = { systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit.Description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";
serviceConfig = {
Install = {
WantedBy = ["graphical-session.target"];
# Wants = ["graphical-session.target"];
# After = ["graphical-session.target"];
};
Service = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 1; RestartSec = 1;
TimeoutStopSec = 10; TimeoutStopSec = 10;
}; };
wantedBy = ["graphical-session.target"];
wants = ["graphical-session.target"];
after = ["graphical-session.target"];
}; };
}; };
} }

View File

@@ -116,7 +116,7 @@
}; };
services = { services = {
blueman-applet = { blueman-applet = {
enable = true; enable = false;
}; };
copyq = { copyq = {
enable = false; enable = false;
@@ -141,9 +141,6 @@
mako = { mako = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
syncthing = { syncthing = {
enable = true; enable = true;
}; };

View File

@@ -126,9 +126,6 @@
mako = { mako = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
syncthing = { syncthing = {
enable = false; enable = false;
}; };