diff options
Diffstat (limited to 'configuration')
| -rw-r--r-- | configuration/default.nix | 21 | ||||
| -rw-r--r-- | configuration/desktop/default.nix | 15 |
2 files changed, 33 insertions, 3 deletions
diff --git a/configuration/default.nix b/configuration/default.nix index e7d2524..5630cf6 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -40,8 +40,22 @@ services.libinput.enable = true; services.openssh.enable = true; services.flatpak.enable = true; + services.gnome.gnome-keyring.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; + }; + }; - xdg.portal.enable = true; programs.nano.enable = false; programs.firefox.enable = true; programs.throne.enable = true; @@ -61,9 +75,9 @@ zmodload zsh/zprof autoload -Uz compinit if [[ -n ~/.zcompdump(#qN.mh+24) ]]; then - compinit + compinit else - compinit -C + compinit -C fi source ${pkgs.zsh-fast-syntax-highlighting}/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh ''; @@ -110,6 +124,7 @@ } ]; security.polkit.enable = true; + security.pam.services.login.enableGnomeKeyring = true; system.stateVersion = "25.11"; nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/configuration/desktop/default.nix b/configuration/desktop/default.nix index a5f2c5e..4783c4d 100644 --- a/configuration/desktop/default.nix +++ b/configuration/desktop/default.nix @@ -14,4 +14,19 @@ programs.niri.enable = true; programs.niri.useNautilus = true; programs.niri.package = pkgs.niri; + + #xdg-desktop-portal ? + xdg.portal = { + enable = true; + + extraPortals = with pkgs; [ + xdg-desktop-portal-gnome + xdg-desktop-portal-gtk + ]; + + config.niri = { + default = [ "gnome" "gtk" ]; + "org.freedesktop.impl.portal.ScreenCast" = [ "gnome" ]; + }; + }; } |
