polkit and tidy sessions
This commit is contained in:
parent
de86eefa5e
commit
00d9145f7e
5 changed files with 31 additions and 10 deletions
|
|
@ -103,6 +103,7 @@ in
|
||||||
lf-sixel
|
lf-sixel
|
||||||
yt-dlp
|
yt-dlp
|
||||||
playerctl
|
playerctl
|
||||||
|
swww
|
||||||
|
|
||||||
inkscape
|
inkscape
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|
@ -924,6 +925,7 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-
|
||||||
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
||||||
aw = "https://wiki.archlinux.org/?search={}";
|
aw = "https://wiki.archlinux.org/?search={}";
|
||||||
nw = "https://nixos.wiki/index.php?search={}";
|
nw = "https://nixos.wiki/index.php?search={}";
|
||||||
|
nixpkgs = "https://search.nixos.org/packages?channel=unstable&query={}";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
colors = {
|
colors = {
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,21 @@
|
||||||
services.avahi.enable = true;
|
services.avahi.enable = true;
|
||||||
|
|
||||||
security.pam.services.swaylock = { };
|
security.pam.services.swaylock = { };
|
||||||
|
security.polkit.enable = true;
|
||||||
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
wants = [ "graphical-session.target" ];
|
||||||
|
after = [ "graphical-session.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
|
TimeoutStopSec = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
||||||
|
|
@ -53,11 +68,15 @@
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = rec {
|
settings = rec {
|
||||||
initial_session = {
|
hypr_session = {
|
||||||
command = "Hyprland";
|
command = "Hyprland";
|
||||||
user = "tristan";
|
user = "tristan";
|
||||||
};
|
};
|
||||||
default_session = initial_session;
|
sway_session = {
|
||||||
|
command = "sway";
|
||||||
|
user = "tristan";
|
||||||
|
};
|
||||||
|
default_session = hypr_session;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,10 +81,6 @@
|
||||||
|
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
settings = rec {
|
settings = rec {
|
||||||
sway_session = {
|
|
||||||
command = "sway";
|
|
||||||
user = "tristan";
|
|
||||||
};
|
|
||||||
# default_session = lib.mkForce sway_session;
|
# default_session = lib.mkForce sway_session;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, user, name, ... }:
|
{ config, pkgs, user, name, lib, ... }:
|
||||||
# https://nix-community.github.io/home-manager/options.html
|
# https://nix-community.github.io/home-manager/options.html
|
||||||
{
|
{
|
||||||
# don't change
|
# don't change
|
||||||
|
|
@ -15,6 +15,11 @@
|
||||||
handbrake
|
handbrake
|
||||||
monero-gui
|
monero-gui
|
||||||
xmrig
|
xmrig
|
||||||
|
|
||||||
|
#gamer
|
||||||
|
airshipper
|
||||||
|
minetest
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "my-editor" ''
|
(pkgs.writeShellScriptBin "my-editor" ''
|
||||||
codium $@
|
codium $@
|
||||||
'')
|
'')
|
||||||
|
|
@ -84,5 +89,4 @@
|
||||||
bind = SUPER, E, exec, foot -e aerc
|
bind = SUPER, E, exec, foot -e aerc
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
|
|
||||||
system.stateVersion = "22.11"; # do not change
|
system.stateVersion = "22.11"; # do not change
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
"steam-run"
|
"steam-run"
|
||||||
"steam-original"
|
"steam-original"
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue