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/ # --- sys/nix/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sys/nix/default.nix') 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 + ''; + }; + }; } -- cgit 1.4.1