feat: set up nix-ssh

This commit is contained in:
Noa Aarts 2024-10-21 16:19:27 +02:00
parent 377dadb533
commit 8b1d8c7496
Signed by: noa
GPG key ID: 1850932741EFF672
3 changed files with 7 additions and 5 deletions

View file

@ -50,7 +50,9 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILRZXNqs7FgVeTCt2ElOARt5f/bR1gjk5bS+zCJA6C1P root@nuOS"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII7X17VovmxkwhKxIg795yO1Sf7dwO50pybMRlUDLLcA hydra@nuOS"
];
write = true;
};
nix.settings.trusted-users = [ "nix-ssh" ];
# Allow unfree packages
nixpkgs.config = {

View file

@ -25,7 +25,7 @@
networkmanager.enable = true; # Easiest to use and most distros use this by default.
};
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
@ -62,8 +62,8 @@
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# enable = true;
# enableSSHSupport = true;
# };
@ -82,7 +82,7 @@
home.file = {
".ssh/config".text = ''
Host 192.168.42.5
User noa
User nix-ssh
'';
};
};

View file

@ -50,7 +50,7 @@
# '';
".ssh/config".text = ''
Host 192.168.42.5
User noa
User nix-ssh
'';
};