This commit is contained in:
parent
a3e4cd0e13
commit
6a12ea4b0e
8 changed files with 39 additions and 47 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, pkgs, ... }:
|
{ inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -11,15 +11,6 @@
|
||||||
../../users/opdavies.nix
|
../../users/opdavies.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
features = {
|
|
||||||
cli = {
|
|
||||||
password-store.enable = true;
|
|
||||||
password-store.extensions = with pkgs.passExtensions; [
|
|
||||||
pass-otp
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wsl = {
|
wsl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultUser = "opdavies";
|
defaultUser = "opdavies";
|
||||||
|
|
|
@ -25,13 +25,6 @@
|
||||||
kanata.devices = [
|
kanata.devices = [
|
||||||
"/dev/input/by-path/platform-i8042-serio-0-event-kbd"
|
"/dev/input/by-path/platform-i8042-serio-0-event-kbd"
|
||||||
];
|
];
|
||||||
|
|
||||||
password-store.enable = true;
|
|
||||||
password-store.extensions = with pkgs.passExtensions; [
|
|
||||||
pass-audit
|
|
||||||
pass-otp
|
|
||||||
pass-update
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
core = {
|
core = {
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
./nix-index.nix
|
./nix-index.nix
|
||||||
./nixpad
|
./nixpad
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./password-store.nix
|
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
./podman.nix
|
./podman.nix
|
||||||
./st.nix
|
./st.nix
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.features.cli.password-store;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.features.cli.password-store = {
|
|
||||||
enable = mkEnableOption "Enable pass";
|
|
||||||
|
|
||||||
extensions = mkOption {
|
|
||||||
default = [ ];
|
|
||||||
type = types.listOf types.package;
|
|
||||||
description = "pass extensions to install.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
(pass.withExtensions (e: with e; cfg.extensions))
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
11
modules2/hosts/t480/password-store.nix
Normal file
11
modules2/hosts/t480/password-store.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.base =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.password-store.extensions = with pkgs.passExtensions; [
|
||||||
|
pass-audit
|
||||||
|
pass-otp
|
||||||
|
pass-update
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
3
modules2/password-store/enable.nix
Normal file
3
modules2/password-store/enable.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.base.programs.password-store.enable = true;
|
||||||
|
}
|
17
modules2/password-store/package.nix
Normal file
17
modules2/password-store/package.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.base =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
options.programs.password-store.extensions = lib.mkOption {
|
||||||
|
default = [ ];
|
||||||
|
type = lib.types.listOf lib.types.package;
|
||||||
|
description = "pass extensions to install.";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.programs.password-store.package = pkgs.pass.withExtensions (
|
||||||
|
e: with e; config.programs.password-store.extensions
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
7
modules2/password-store/settings.nix
Normal file
7
modules2/password-store/settings.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.base =
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
programs.password-store.settings.PASSWORD_STORE_DIR = "${config.xdg.dataHome}/pass";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue