Integrated box host
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
...
|
||||
}: {
|
||||
networking.networkmanager.enable = true;
|
||||
networking.networkmanager.dns = "none";
|
||||
|
||||
networking.nameservers = ["192.168.0.101" "9.9.9.11" "149.112.112.11"];
|
||||
|
||||
time.timeZone = "Europe/Bucharest";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
|
||||
11
modules/raspberrypi.nix
Normal file
11
modules/raspberrypi.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
libraspberrypi
|
||||
raspberrypi-eeprom
|
||||
docker-compose
|
||||
];
|
||||
}
|
||||
26
modules/userapps/kondo_timer.nix
Normal file
26
modules/userapps/kondo_timer.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
systemd.timers."kondo" = {
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
#OnBootSec = "5m";
|
||||
#OnUnitActiveSec = "5m";
|
||||
Unit = "kondo.service";
|
||||
OnCalendar = "weekly";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."kondo" = {
|
||||
script = ''
|
||||
kondo --all --ignored-dirs dev/current
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user