add syncthing and keepass
This commit is contained in:
parent
bb9494227f
commit
4a800d9290
14 changed files with 183 additions and 80 deletions
9
modules/nixOS/bundles/core/default.nix
Normal file
9
modules/nixOS/bundles/core/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# ./sops.nix
|
||||
];
|
||||
}
|
||||
37
modules/nixOS/bundles/core/sops.nix
Normal file
37
modules/nixOS/bundles/core/sops.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
secretsFile = "../../../../secrets/secrets.json";
|
||||
secretsSet = builtins.fromJSON (builtins.readFile ./${secretsFile});
|
||||
devices = builtins.attrNames secretsSet.syncthing.devices;
|
||||
in {
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ./${secretsFile};
|
||||
validateSopsFiles = false;
|
||||
|
||||
age = {
|
||||
# automatically import host SSH keys as age keys
|
||||
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
# this will use an age key that is expected to already be in the filesystem
|
||||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
# generate a new key if the key specified above does not exist
|
||||
generateKey = true;
|
||||
};
|
||||
|
||||
# secrets will be output to /run/secrets
|
||||
secrets = {
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
sops
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -68,4 +68,8 @@
|
|||
serif = ["JetBrainsMono Nerd Font"];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
keepassxc
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue