diff options
author | sils <sils@sils.li> | 2023-11-20 20:21:29 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2023-11-20 20:21:29 +0100 |
commit | 27eeb0b0d7b3a7f406e0bdc169aaf9fff60a92d1 (patch) | |
tree | 152c5bcd40616b662d698c0e838f4cacb83ffcb3 | |
parent | feat(secrets): add nixremote ssh-key (diff) | |
download | nix-config-27eeb0b0d7b3a7f406e0bdc169aaf9fff60a92d1.tar.gz nix-config-27eeb0b0d7b3a7f406e0bdc169aaf9fff60a92d1.zip |
fix(secrets/wireless.age): update
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch main # Your branch is up to date with 'origin/main'. # # Changes to be committed: # modified: secrets/wireless.age # # Changes not staged for commit: # modified: sys/nix/default.nix # modified: users/default.nix # # Untracked files: # files/root_ssh_config # nixremote # users/root/ #
-rw-r--r-- | secrets/wireless.age | 20 | ||||
-rw-r--r-- | sys/nix/default.nix | 15 | ||||
-rw-r--r-- | users/default.nix | 1 |
3 files changed, 25 insertions, 11 deletions
diff --git a/secrets/wireless.age b/secrets/wireless.age index b24ce17..08108e6 100644 --- a/secrets/wireless.age +++ b/secrets/wireless.age @@ -1,12 +1,12 @@ -----BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAvR2xGVk03aHZrcHZOV0Jw -STl0SlByMXhKdDBlQXNyRTdnY3RGQ2NPZ2hFCnlXa3E5RGJTd1V6R3VLQzlYQmpo -a0tCZUd6VnRyZTFEcTRFc1NORk9mZ2MKLT4gc3NoLWVkMjU1MTkgL1BReS9BIGs1 -cGFkMGd0QzVsU0JPRTRhUG0vbWY2bXR4M0NQaktIZjZsQmpCUTcxVHMKMSs4VkxZ -UVYxT1hBcXBSNUlmc1FYR0NQNGpkN0JLVnZWMDNHdW4zS205MAotPiB5Y0NfNlxU -LWdyZWFzZSBUQ2NNYlRDbCBiQFsgeEsgVQptR05yL1BsYjc4MlJKSFY3MmhhSnhZ -SWJxN256djdlU01JY2pLS25Od2ZudEFhVQotLS0gQWRYZW9raGtCUEZ1czgwSVo2 -MDBoOEl5b0RUVnVieVFXR1I0OWRjL2NWMAoOWBXxJA9Bn+pQXWltE5cpHtE2YHP7 -17opbS05pkcCwXCCOH/7woPSlrFY+JgM61nUsvrXBujYTUbzJxXyXNODj4KpRICH -OOqMORMzVZ72D7127VCYRXpfoIMOacUIh1MT +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHTFpSZ1BBZlNlRUZkWHFp +MXlpUk9GUmZHS0VqbGcyL0FUUVl5UmhFNEN3ClZqYXJRTTFnOFBTeU9TV0plZWR3 +RVdPUzNWaW54bFNZNEtsZG50bXFqYTgKLT4gc3NoLWVkMjU1MTkgL1BReS9BIDc3 +TnQ5QVp0SXQ1Tzc0cW00dUtsMGJkQVFOZjBzVUx4eEVXZEpQYmZPRTAKV09CUXVo +WVNsT0dUL2FRL1JwVjlNY1ZFa0NLdko1TmxPbmhIN2RWZThWYwotPiB6U2ptLWdy +ZWFzZSA/PzNdbm4gUnxGZz8oOm8gcFtIRApnZzJtcENXWmlzdU1JVDRkOGZDb2Rm +a3kKLS0tIEJVWlVISDhiYWpuS2ZTRWZzSzlYUm1LNVFvdGVDS0lYQkM2eFNJeXJT +L2MKa3xiuZjaf4/VLlkw8OEprYZiQZ96I3aZEHxUZo/bf7CO/QOjdeVil75NAsua +XjzOsCgQJykxhxcMbY5++Pfx/IbEOd35gnooTYbEoMKn5iMDccYRvIj8/jUzQeZw +/l3rkA== -----END AGE ENCRYPTED FILE----- diff --git a/sys/nix/default.nix b/sys/nix/default.nix index 32a6fc5..14abb66 100644 --- a/sys/nix/default.nix +++ b/sys/nix/default.nix @@ -1,4 +1,4 @@ -{nixpkgs, ...}: { +{config, nixpkgs, ...}: { nix = { registry = { nixpkgs.flake = nixpkgs; @@ -30,4 +30,17 @@ ]; }; }; + home-manager.users.root.home = { + username = "root"; + homeDirectory = "/root"; + stateVersion = "23.05"; + file.".ssh/config" = { + text = '' + Host server1.vhack.eu + IdentitiesOnly yes + IdentityFIle ${config.age.secrets.nixremote.path} + User nixremote + ''; + }; + }; } diff --git a/users/default.nix b/users/default.nix index 23d6e96..a3330ff 100644 --- a/users/default.nix +++ b/users/default.nix @@ -4,4 +4,5 @@ ... }: { sils = import ./sils {inherit nixpkgs system;}; + root = import ./root; } |