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
|
# Monitor backlight control
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
users.users.${config.user.name}.extraGroups = [ "video" ];
|
|
||||||
|
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
|
|
||||||
|
|
@ -68,6 +67,24 @@
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
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 = {
|
nix = {
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue