Prepare to upload encrypted secrets file
This commit is contained in:
parent
ba5d5260b3
commit
f61fa33b7e
23 changed files with 35 additions and 25 deletions
|
@ -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
6
nixos/modules/gpg.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue