From 27eeb0b0d7b3a7f406e0bdc169aaf9fff60a92d1 Mon Sep 17 00:00:00 2001 From: sils Date: Mon, 20 Nov 2023 20:21:29 +0100 Subject: 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/ # --- secrets/wireless.age | 20 ++++++++++---------- sys/nix/default.nix | 15 ++++++++++++++- 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; } -- cgit 1.4.1