M nix/module.nix => nix/module.nix +6 -0
@@ 40,6 40,12 @@ in {
};
config = lib.mkIf cfg.enable {
+ users.users.${cfg.user} = {
+ isSystemUser = true;
+ group = "${cfg.group}";
+ };
+ users.groups.${cfg.group} = {};
+
systemd.services.canwa = {
description = "canwa";
after = ["network-online.target"];