started overhaul
This commit is contained in:
parent
d1fec56ebf
commit
d6bdbe514d
14 changed files with 649 additions and 23 deletions
62
overhaul/machines/solis/configuration.nix
Normal file
62
overhaul/machines/solis/configuration.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./hardware-configuration.nix
|
||||
../common/configuration.nix
|
||||
../../modules/sleep-at-night.nix
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
users = {
|
||||
horseman = import ../../home-manager/server-apps.nix;
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "solis";
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
services.resolved.enable = true;
|
||||
services.resolved.extraConfig = "DNSStubListener=no\n";
|
||||
|
||||
systemd.timers."backupSyncthing" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "weekly";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."backupSyncthing" = {
|
||||
script = ''
|
||||
/home/horseman/nix-config/misc/backup.sh
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "horseman";
|
||||
};
|
||||
};
|
||||
|
||||
# services.sleep-at-night = {
|
||||
# enable = true;
|
||||
# shutdown = {
|
||||
# hour = 00;
|
||||
# minute = 30;
|
||||
# };
|
||||
# wakeup = "08:00:00";
|
||||
# };
|
||||
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowPing = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue