Extract a pass module
This commit is contained in:
parent
9e1b77930d
commit
899dfb9f21
5 changed files with 34 additions and 10 deletions
|
@ -10,6 +10,7 @@
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
cli = {
|
cli = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
password-store.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -43,16 +43,6 @@
|
||||||
fastfetch
|
fastfetch
|
||||||
mermaid-cli
|
mermaid-cli
|
||||||
mkcert
|
mkcert
|
||||||
passmenu-otp
|
|
||||||
|
|
||||||
(pass.withExtensions (
|
|
||||||
e: with e; [
|
|
||||||
passExtensions.pass-audit
|
|
||||||
passExtensions.pass-import
|
|
||||||
passExtensions.pass-otp
|
|
||||||
passExtensions.pass-update
|
|
||||||
]
|
|
||||||
))
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
|
cli.password-store.enable = true;
|
||||||
|
|
||||||
core = {
|
core = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./podman.nix
|
./podman.nix
|
||||||
|
./password-store.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
30
modules/nixos/cli/password-store.nix
Normal file
30
modules/nixos/cli/password-store.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.nixosModules.cli.password-store;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nixosModules.cli.password-store.enable = mkEnableOption "Enable pass";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
passmenu-otp
|
||||||
|
|
||||||
|
(pass.withExtensions (
|
||||||
|
e: with e; [
|
||||||
|
passExtensions.pass-audit
|
||||||
|
passExtensions.pass-import
|
||||||
|
passExtensions.pass-otp
|
||||||
|
passExtensions.pass-update
|
||||||
|
]
|
||||||
|
))
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue