Skip to content

Commit

Permalink
nixos/services/seatd: use nixos module
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Sep 30, 2024
1 parent abca6bb commit 805b9f5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions modules/nixos/services/seatd/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
config,
lib,
pkgs,
namespace,
...
}:
let
inherit (lib) mkIf mkEnableOption getExe;
inherit (lib) mkIf mkEnableOption;

cfg = config.${namespace}.services.seatd;
in
Expand All @@ -16,17 +15,11 @@ in
};

config = mkIf cfg.enable {
systemd.services = {
services = {
seatd = {
enable = true;
description = "Seat management daemon";
script = "${getExe pkgs.seatd} -g wheel";
serviceConfig = {
Type = "simple";
Restart = "always";
RestartSec = "1";
};
wantedBy = [ "multi-user.target" ];
# NOTE: does it matter?
user = config.khanelinix.user.name;
};
};
};
Expand Down

0 comments on commit 805b9f5

Please sign in to comment.