feat: further work moving towards parity

This commit is contained in:
Kat Inskip 2022-12-04 16:49:39 +01:00
parent 419fcaa79f
commit dbbac0ae23
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
10 changed files with 147 additions and 25 deletions

View file

@ -1,16 +1,7 @@
{ config, lib, ... }: let
inherit (lib.options) mkOption mdDoc;
inherit (lib.modules) mkIf;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.types) bool;
in {
options = {
role.server = mkOption {
type = bool;
description = mdDoc "Is this system's role a server?";
default = false;
};
};
config = mkIf config.role.server {
# Prevent services from being automatically killed on log-out
# https://wiki.archlinux.org/title/systemd/User#Automatic_start-up_of_systemd_user_instances