From 282aaa6604fda47ebb47d4cf16bec13ff0aa31bc Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 Apr 2022 19:21:44 +0200 Subject: [PATCH] modules/maintenance: init --- modules/default.nix | 2 ++ modules/maintenance/default.nix | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 modules/maintenance/default.nix diff --git a/modules/default.nix b/modules/default.nix index 3247ca4..dcfb44a 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -10,6 +10,7 @@ let hydra = import ./hydra; hyprspace = import ./hyprspace; ipfs = import ./ipfs; + maintenance = import ./maintenance; nix-builder = import ./nix-builder; nix-config = import ./nix-config; nix-config-server = import ./nix-config/server.nix; @@ -26,6 +27,7 @@ in rec { base = [ autopatch enterprise + maintenance ]; networking = [ diff --git a/modules/maintenance/default.nix b/modules/maintenance/default.nix new file mode 100644 index 0000000..7246e7f --- /dev/null +++ b/modules/maintenance/default.nix @@ -0,0 +1,15 @@ +{ + systemd.targets.maintenance = { + unitConfig.AllowIsolate = true; + wants = [ + "basic.target" + "getty.target" + "network.target" + "network-online.target" + "sshd.service" + "fail2ban.service" + "hyprspace.service" + "dbus.service" + ]; + }; +}