mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: cleanup, secure boot for framework
This commit is contained in:
parent
15f40761fb
commit
d37bd2c669
18 changed files with 297 additions and 144 deletions
|
|
@ -4,19 +4,6 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
systemd.user.services.konawall-py = {
|
||||
Unit = {
|
||||
Description = "konawall-py";
|
||||
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
|
||||
After = ["hyprland-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {WantedBy = ["hyprland-session.target"];};
|
||||
};
|
||||
|
||||
konawallConfig = {
|
||||
interval = 60 * 5;
|
||||
rotate = true;
|
||||
|
|
@ -33,6 +20,19 @@
|
|||
};
|
||||
};
|
||||
in {
|
||||
systemd.user.services.konawall-py = {
|
||||
Unit = {
|
||||
Description = "konawall-py";
|
||||
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
|
||||
After = ["hyprland-session.target" "network-online.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "1s";
|
||||
};
|
||||
Install = {WantedBy = ["hyprland-session.target"];};
|
||||
};
|
||||
xdg.configFile = {
|
||||
"konawall/config.toml".source = (pkgs.formats.toml {}).generate "konawall-config" konawallConfig;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue