Enable sshd on laptop
This commit is contained in:
parent
374d74b0e0
commit
7357ab347c
1 changed files with 18 additions and 1 deletions
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
# Monitor backlight control
|
||||
programs.light.enable = true;
|
||||
users.users.${config.user.name}.extraGroups = [ "video" ];
|
||||
|
||||
services.tlp.enable = true;
|
||||
|
||||
|
|
@ -68,6 +67,24 @@
|
|||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
listenAddresses = [
|
||||
{
|
||||
# Tailscale interface
|
||||
addr = "100.64.0.1";
|
||||
port = 22;
|
||||
}
|
||||
];
|
||||
};
|
||||
users.users.${config.user.name} = {
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../ssh_keys/phfroidmont-desktop.pub
|
||||
];
|
||||
extraGroups = [ "video" ];
|
||||
};
|
||||
|
||||
nix = {
|
||||
distributedBuilds = true;
|
||||
buildMachines = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue