Skip to content

Commit

Permalink
nixos/spacenavd: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Dec 20, 2024
1 parent d24b586 commit 304d1ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nixos/modules/services/hardware/spacenavd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
lib,
pkgs,
...
}: let
}:
let
cfg = config.hardware.spacenavd;
in {
in
{
options = {
hardware.spacenavd = {
enable = lib.mkEnableOption "spacenavd to support 3DConnexion devices";
Expand All @@ -14,10 +16,10 @@ in {

config = lib.mkIf cfg.enable {
systemd = {
packages = [pkgs.spacenavd];
packages = [ pkgs.spacenavd ];
services.spacenavd = {
enable = true;
wantedBy = ["graphical.target"];
wantedBy = [ "graphical.target" ];
};
};
};
Expand Down

0 comments on commit 304d1ca

Please sign in to comment.