Prepare to upload encrypted secrets file

This commit is contained in:
Jimbo 2024-08-24 23:09:23 -04:00
parent ba5d5260b3
commit f61fa33b7e
23 changed files with 35 additions and 25 deletions

View file

@ -10,7 +10,8 @@
}: {
# You can import other NixOS modules here
imports = [
# My modules
./networking.nix
./gpg.nix
];
nixpkgs = {
@ -60,7 +61,7 @@
# Set timezone
time.timeZone = let
secrets = import ../common/secrets.nix;
secrets = import ../modules/secrets.nix;
in secrets.timeZone;
# Select internationalisation properties.

6
nixos/modules/gpg.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

View file

@ -7,7 +7,7 @@
# Set hostnames
hosts = let
ips = import ../common/ips.nix;
ips = import ../modules/ips.nix;
in {
"${ips.server}" = ["server"];
"${ips.pc}" = ["pc"];