Nix configurations for my homelab
0

Configure Feed

Select the types of activity you want to include in your feed.

at main 677 B View raw
1{ 2 config, 3 lib, 4 pkgs, 5 ... 6}: 7{ 8 imports = [ ./openssh.nix ]; 9 10 users = { 11 groups.nixremote = { }; 12 users.nixremote = { 13 createHome = true; 14 group = "nixremote"; 15 home = "/home/nixremote"; 16 homeMode = "550"; 17 isSystemUser = true; 18 shell = pkgs.bashInteractive; 19 openssh.authorizedKeys.keys = [ 20 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFuJaCiwaXH6O7WDSmDsj1jRBzw+CJkRi1lBcdn7sON1 nixremote" 21 ]; 22 }; 23 }; 24 25 nix.settings.trusted-users = [ "nixremote" ]; 26 27 services.openssh.settings.AllowUsers = [ 28 (lib.mkIf (config.networking.hostName != "lily") "nixremote@${config.cafe.info.network.lily.netbird-ipv4}") 29 ]; 30}