Merge branch 'development' of git.malice.zone:alisceon/nixos_config into development
This commit is contained in:
commit
b29023dc69
5 changed files with 56 additions and 8 deletions
|
|
@ -8,7 +8,6 @@
|
|||
openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
passwordAuthentication = false;
|
||||
}; # end openssh
|
||||
}; # end services
|
||||
|
||||
|
|
|
|||
|
|
@ -28,5 +28,29 @@
|
|||
networking.firewall.allowedUDPPorts = [
|
||||
53
|
||||
];
|
||||
systemd = {
|
||||
timers = {
|
||||
"autowin" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "Wed *-*-21..28 02:00:00";
|
||||
Unit = "autowin.service";
|
||||
};
|
||||
};
|
||||
}; # end timers
|
||||
|
||||
services = {
|
||||
"autowin" = {
|
||||
script = ''
|
||||
${pkgs.python3Packages.python}/bin/python /home/alisceon/.nixos_config/util/wol_man.py autowin
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "3600";
|
||||
User = "alisceon";
|
||||
};
|
||||
}; # end "hello-world"
|
||||
}; # end services
|
||||
}; # end systemd
|
||||
} # end file
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue