Compare commits
No commits in common. "ffee83c7c5bd4a8b2c292b267f14087d8b6ee991" and "8843caad7fe9ba286af0b030685789e9b4621fb4" have entirely different histories.
ffee83c7c5
...
8843caad7f
|
@ -280,7 +280,7 @@ in with lib; {
|
|||
depthLimit = 0 # Autotiling: Default depth limit (disabled) for all workspaces
|
||||
stackLayout = "splitv" # MasterStack: Default stack layout for all workspaces
|
||||
stackSidet = "left" # MasterStack: Default stack position for all workspaces
|
||||
masterWidth = 70 # MasterStack: Default master width for all workspaces
|
||||
masterWidth = 65 # MasterStack: Default master width for all workspaces
|
||||
'';
|
||||
onChange = ''
|
||||
${layman-package}/bin/layman || true
|
||||
|
|
|
@ -21,42 +21,53 @@ let
|
|||
nix
|
||||
nix-prefetch
|
||||
];
|
||||
update-flake = { name, repo, schedule, branch ? "trunk" }: {
|
||||
systemd.services."update-flake-${name}" = {
|
||||
inherit environment;
|
||||
inherit path;
|
||||
script = ''
|
||||
env
|
||||
${repo-updater}/bin/repo-updater ${repo} ${branch}
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "nathan";
|
||||
Group = "users";
|
||||
};
|
||||
in {
|
||||
# Setup hosts for gitea automation
|
||||
networking.hosts = { "100.99.69.14" = [ "git.stranger.systems" ]; };
|
||||
|
||||
# Automate updating the system flake
|
||||
systemd.services."system-flake-update" = {
|
||||
inherit environment;
|
||||
inherit path;
|
||||
script = ''
|
||||
env
|
||||
${repo-updater}/bin/repo-updater gitea@git.stranger.systems:nix/System.git trunk
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "nathan";
|
||||
Group = "users";
|
||||
};
|
||||
systemd.timers."update-flake-${name}" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "update-flake-${name}.service" ];
|
||||
timerConfig = {
|
||||
OnCalendar = schedule;
|
||||
Unit = "update-flake-${name}.service";
|
||||
};
|
||||
};
|
||||
systemd.timers."system-flake-update" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "system-flake-update.service" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "Mon, 4:00";
|
||||
Unit = "system-flake-update.service";
|
||||
};
|
||||
};
|
||||
|
||||
in { # Setup hosts for gitea automation
|
||||
networking.hosts = { "100.99.69.14" = [ "git.stranger.systems" ]; };
|
||||
} // update-flake {
|
||||
name = "system";
|
||||
repo = "gitea@git.stranger.systems:nix/System.git";
|
||||
schedule = "Mon, 4:00";
|
||||
} // update-flake {
|
||||
name = "rust-util";
|
||||
repo = "gitea@git.stranger.systems:nix/Rust.git";
|
||||
schedule = "Mon, 8:00";
|
||||
} // update-flake {
|
||||
name = "java";
|
||||
repo = "gitea@git.stranger.systems:nix/java.git";
|
||||
schedule = "6:00";
|
||||
# Automate updating rust utility flake
|
||||
systemd.services."rust-util-update" = {
|
||||
inherit environment;
|
||||
inherit path;
|
||||
script = ''
|
||||
env
|
||||
${repo-updater}/bin/repo-updater gitea@git.stranger.systems:nix/Rust.git trunk
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "nathan";
|
||||
Group = "users";
|
||||
};
|
||||
};
|
||||
systemd.timers."rust-util-update" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "rust-util-update.service" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "Mon, 8:00";
|
||||
Unit = "rust-util-update.service";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue