43 lines
865 B
Nix
Raw Normal View History

2025-11-24 23:01:40 -05:00
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
gnome_keyring.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install gnome_keyring.";
};
};
config = lib.mkIf (config.me.gnome_keyring.enable && config.me.graphical) {
services.gnome.gnome-keyring.enable = true;
2025-11-25 17:40:55 -05:00
environment.systemPackages = with pkgs; [
seahorse # UI for managing secrets.
libsecret
];
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".local/share/keyrings";
user = "talexander";
group = "talexander";
mode = "0755";
}
];
};
};
2025-11-24 23:01:40 -05:00
};
}