Re-enable regular flake builds

This commit is contained in:
Daniel Flanagan 2024-09-06 16:32:10 -05:00
parent a1a5aea93d
commit da602beac6

View file

@ -170,32 +170,32 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
# regularly build this flake so we have stuff in the cache # regularly build this flake so we have stuff in the cache
# TODO: schedule this for nightly builds instead of intervals based on boot time # TODO: schedule this for nightly builds instead of intervals based on boot time
# systemd.timers."build-lytedev-flake" = { systemd.timers."build-lytedev-flake" = {
# wantedBy = ["timers.target"]; wantedBy = ["timers.target"];
# timerConfig = { timerConfig = {
# OnBootSec = "30m"; # 30 minutes after booting OnBootSec = "30m"; # 30 minutes after booting
# OnUnitActiveSec = "1d"; # every day afterwards OnUnitActiveSec = "1d"; # every day afterwards
# Unit = "build-lytedev-flake.service"; Unit = "build-lytedev-flake.service";
# }; };
# }; };
# systemd.services."build-lytedev-flake" = { systemd.services."build-lytedev-flake" = {
# script = '' script = ''
# # build self (main server) configuration # build self (main server) configuration
# nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git --accept-flake-config nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git --accept-flake-config
# # build desktop configuration # build desktop configuration
# nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git#dragon --accept-flake-config nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git#dragon --accept-flake-config
# # build main laptop configuration # build main laptop configuration
# nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git#foxtrot --accept-flake-config nixos-rebuild build --flake git+https://git.lyte.dev/lytedev/nix.git#foxtrot --accept-flake-config
# ''; '';
# path = with pkgs; [openssh git nixos-rebuild]; path = with pkgs; [openssh git nixos-rebuild];
# serviceConfig = { serviceConfig = {
# # TODO: mkdir -p...? # TODO: mkdir -p...?
# WorkingDirectory = "/home/daniel/.home/nightly-flake-builds"; WorkingDirectory = "/home/daniel/.home/nightly-flake-builds";
# Type = "oneshot"; Type = "oneshot";
# User = "daniel"; # might have to run as me for git ssh access to the repo User = "daniel"; # might have to run as me for git ssh access to the repo
# }; };
# }; };
networking = { networking = {
extraHosts = '' extraHosts = ''