mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-09 16:33:57 -05:00
refactor: remove reboot-bot
This commit is contained in:
parent
239a1645c6
commit
eb32d5f0d1
3 changed files with 0 additions and 49 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -688,26 +688,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"reboot-bot": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"unstable"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1725660144,
|
|
||||||
"narHash": "sha256-k63aCiukMVOjF219V8O9PvXq7WrVnQtiP0vLpBO5iqg=",
|
|
||||||
"owner": "Gerg-L",
|
|
||||||
"repo": "reboot-bot",
|
|
||||||
"rev": "4dabb1fc71cbb222d775db690a13838028012608",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Gerg-L",
|
|
||||||
"repo": "reboot-bot",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
|
|
@ -719,7 +699,6 @@
|
||||||
"nix-janitor": "nix-janitor",
|
"nix-janitor": "nix-janitor",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nvim-flake": "nvim-flake",
|
"nvim-flake": "nvim-flake",
|
||||||
"reboot-bot": "reboot-bot",
|
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix",
|
"spicetify-nix": "spicetify-nix",
|
||||||
"stable": "stable",
|
"stable": "stable",
|
||||||
|
|
|
||||||
|
|
@ -94,12 +94,6 @@
|
||||||
repo = "fetch-rs";
|
repo = "fetch-rs";
|
||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
reboot-bot = {
|
|
||||||
type = "github";
|
|
||||||
owner = "Gerg-L";
|
|
||||||
repo = "reboot-bot";
|
|
||||||
inputs.nixpkgs.follows = "unstable";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
reboot-bot,
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
sops.secrets.reboot_token = { };
|
|
||||||
|
|
||||||
systemd.services.reboot_bot = {
|
|
||||||
enable = false;
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
wants = [ "network-online.target" ];
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = lib.getExe reboot-bot.packages.default;
|
|
||||||
EnvironmentFile = config.sops.secrets.reboot_token.path;
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "30s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue