treewide: move nixos modules
This commit is contained in:
parent
d84be7c616
commit
8eff4c5e4f
73 changed files with 62 additions and 62 deletions
42
modules/nixos/graphical/pass/default.nix
Normal file
42
modules/nixos/graphical/pass/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.graphical.pass.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.graphical.pass.enable {
|
||||
chvp.base.zfs.homeLinks = [
|
||||
{ path = ".config/keepassxc"; type = "data"; }
|
||||
{ path = ".cache/keepassxc"; type = "cache"; }
|
||||
];
|
||||
|
||||
chvp.base.emacs.extraConfig = [
|
||||
''
|
||||
(use-package secrets
|
||||
:ensure nil
|
||||
:custom
|
||||
(auth-sources '(default))
|
||||
)
|
||||
''
|
||||
];
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.packages = [ pkgs.keepassxc ];
|
||||
systemd.user.services.keepassxc = {
|
||||
Unit = {
|
||||
Description = "KeepassXC startup";
|
||||
PartOf = [ "river-session.target" ];
|
||||
Wants = [ "waybar.service" ];
|
||||
After = [ "river-session.target" "waybar.service" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.keepassxc}/bin/keepassxc";
|
||||
Restart = "always";
|
||||
};
|
||||
Install.WantedBy = [ "river-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue