Loading nixos/modules/module-list.nix +1 −0 Original line number Diff line number Diff line Loading @@ -731,6 +731,7 @@ ./services/misc/snapper.nix ./services/misc/sonarr.nix ./services/misc/sourcehut ./services/misc/spice-autorandr.nix ./services/misc/spice-vdagentd.nix ./services/misc/spice-webdavd.nix ./services/misc/ssm-agent.nix Loading nixos/modules/services/misc/spice-autorandr.nix 0 → 100644 +26 −0 Original line number Diff line number Diff line { config, pkgs, lib, ... }: let cfg = config.services.spice-autorandr; in { options = { services.spice-autorandr = { enable = lib.mkEnableOption (lib.mdDoc "spice-autorandr service that will automatically resize display to match SPICE client window size."); package = lib.mkPackageOptionMD pkgs "spice-autorandr" { }; }; }; config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; systemd.user.services.spice-autorandr = { wantedBy = [ "default.target" ]; after = [ "spice-vdagentd.service" ]; serviceConfig = { ExecStart = "${cfg.package}/bin/spice-autorandr"; Restart = "on-failure"; }; }; }; } Loading
nixos/modules/module-list.nix +1 −0 Original line number Diff line number Diff line Loading @@ -731,6 +731,7 @@ ./services/misc/snapper.nix ./services/misc/sonarr.nix ./services/misc/sourcehut ./services/misc/spice-autorandr.nix ./services/misc/spice-vdagentd.nix ./services/misc/spice-webdavd.nix ./services/misc/ssm-agent.nix Loading
nixos/modules/services/misc/spice-autorandr.nix 0 → 100644 +26 −0 Original line number Diff line number Diff line { config, pkgs, lib, ... }: let cfg = config.services.spice-autorandr; in { options = { services.spice-autorandr = { enable = lib.mkEnableOption (lib.mdDoc "spice-autorandr service that will automatically resize display to match SPICE client window size."); package = lib.mkPackageOptionMD pkgs "spice-autorandr" { }; }; }; config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; systemd.user.services.spice-autorandr = { wantedBy = [ "default.target" ]; after = [ "spice-vdagentd.service" ]; serviceConfig = { ExecStart = "${cfg.package}/bin/spice-autorandr"; Restart = "on-failure"; }; }; }; }