mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
improvements
This commit is contained in:
62
modules/nixos/shell/gnome-keyring.nix
Normal file
62
modules/nixos/shell/gnome-keyring.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.gnome-keyring;
|
||||
in
|
||||
{
|
||||
options.shell.components.gnome-keyring = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable the gnome keyring");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
wayland.windowManager.hyprland.settings.windowrulev2 = [
|
||||
"dimaround,class:^(gcr-prompter)$"
|
||||
"noborder,class:^(gcr-prompter)$"
|
||||
"rounding 10,class:^(gcr-prompter)$"
|
||||
"animation slide,class:^(gcr-prompter)$"
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
polkit_gnome
|
||||
gnome-keyring
|
||||
];
|
||||
/*
|
||||
systemd.user.services = {
|
||||
polkit-gnome-authentication-agent-1 = {
|
||||
Unit = {
|
||||
Description = "Gnome Polkit Agent";
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"gnome-keyring-daemon.service"
|
||||
];
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
Service = {
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
gnome-keyring-daemon = {
|
||||
Unit = {
|
||||
Description = "Gnome Keyring Daemon";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
Service = {
|
||||
ExecStart = "${pkgs.gnome-keyring}/bin/gnome-keyring-daemon --start --components=secrets";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
# fix pinentry on non-gnome
|
||||
services.dbus.packages = with pkgs; [ gcr ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user