common/gnome-keyring: move to session.slice
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{ machineVars, ... }:
|
||||
{ config, lib, machineVars, ... }:
|
||||
let
|
||||
cfg = config.services.gnome-keyring;
|
||||
in
|
||||
{
|
||||
services.gnome-keyring.enable = !machineVars.headless;
|
||||
}
|
||||
|
||||
systemd.user.services.gnome-keyring.Service.Slice = lib.mkIf cfg.enable "session.slice";
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ in {
|
||||
./services/display-manager.nix
|
||||
./services/docker.nix
|
||||
./services/fwupd.nix
|
||||
./services/gnome-keyring.nix
|
||||
./services/irqbalance.nix
|
||||
./services/journald.nix
|
||||
./services/libinput.nix
|
||||
@@ -140,8 +141,6 @@ in {
|
||||
};
|
||||
|
||||
services = {
|
||||
gnome.gnome-keyring.enable = !config.machineVars.headless;
|
||||
|
||||
udev.packages = with pkgs; [
|
||||
yubikey-personalization
|
||||
android-udev-rules
|
||||
|
9
hosts/common/services/gnome-keyring.nix
Normal file
9
hosts/common/services/gnome-keyring.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.services.gnome.gnome-keyring;
|
||||
in
|
||||
{
|
||||
services.gnome.gnome-keyring.enable = !config.machineVars.headless;
|
||||
|
||||
systemd.user.services.gnome-keyring.serviceConfig.Slice = lib.mkIf cfg.enable "session.slice";
|
||||
}
|
Reference in New Issue
Block a user