temporarily disable nix-index-update service
This commit is contained in:
parent
9b89e0fe64
commit
d6c43647c6
@ -1,21 +1,21 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
systemd.services = let
|
||||
service = user: group: {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
path = [ pkgs.nix-index-update ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = lib.getExe pkgs.nix-index-update;
|
||||
User = user;
|
||||
Group = group;
|
||||
};
|
||||
};
|
||||
in {
|
||||
"nix-index-update-root" = service "root" "root";
|
||||
"nix-index-update-${config.mainuser}" = service config.mainuser "users";
|
||||
};
|
||||
# systemd.services = let
|
||||
# service = user: group: {
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# wants = [ "network-online.target" ];
|
||||
# after = [ "network-online.target" ];
|
||||
# path = [ pkgs.nix-index-update ];
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# ExecStart = lib.getExe pkgs.nix-index-update;
|
||||
# User = user;
|
||||
# Group = group;
|
||||
# };
|
||||
# };
|
||||
# in {
|
||||
# "nix-index-update-root" = service "root" "root";
|
||||
# "nix-index-update-${config.mainuser}" = service config.mainuser "users";
|
||||
# };
|
||||
home-manager.users.${config.mainuser} = {
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user