2021-05-07

<colemickens> extra nix-daemon systemd unit with a bind-mount, or whatever, with a non-default socket location, use hydra modules extra env args to override the NIX_DAEMON it points at

2021-04-30

<pie_> pennae: how does babby override systemd unit

2021-04-25

<{^_^}> #28445 (by kageurufu, 3 years ago, open): systemd-boot sets efivar LoaderEntryDefault, which overrides default in /boot/loader/loader.conf

2021-04-17

<MmeQuignon> Hi everyone, I'm trying to configure aria2 / nginx. Aria2 is downloading files to a folder in which the nginx service user/group have no access. I was thinking about overriding the aria2 systemd service, and make it run as systemd.services.nginx.serviceConfig.User. But I'm not sure it's the right way. Any idea how to do that? Thanks!

2021-04-01

<Baughn> How would I override an attribute in a systemd serviceConfig?

2021-03-16

<{^_^}> [nixpkgs] @flokli merged pull request #115549 → systemd: Handle template overrides → https://github.com/NixOS/nixpkgs/pull/115549

2021-03-11

<{^_^}> #115549 (by adrianparvino, 1 day ago, open): systemd: Handle template overrides

2021-03-09

<Miyu-saki> ExecStart=systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i

2021-02-09

<exfalso> hi, we created a module that allows nixops to be used on ubuntu machines to manage systemd services, however the deployment still includes a full nixos tree. Does anyone know whether there is a way to override the "top-level" system derivation?

2021-02-07

<aleph-> Ahh hmm I could just not import my own service and override the systemd def...

2021-02-05

<{^_^}> [nixpkgs] @veprbl merged pull request #111936 → [20.09] libusb1: remove assert that breaks systemd = null deep override → https://github.com/NixOS/nixpkgs/pull/111936

2021-02-04

<{^_^}> [nixpkgs] @veprbl opened pull request #111936 → [20.09] libusb1: remove assert that breaks systemd = null deep override → https://github.com/NixOS/nixpkgs/pull/111936

2021-01-29

<clever> systemd-boot is just a giant sack of magic, you can permanently override the default boot option by just hitting the wrong key at the boot menu

2021-01-14

<qyliss> (assuming you mean a systemd service) use a NixOS module to set the options you need, possibly using lib.mkForce if you need to override something

2021-01-10

<ajs124> what happens is that the upstream unit comes first and the systemd options override

2020-11-13

<stites[m]1> quick question! how do I override a systemd service?

2020-10-11

<rnhmjoj> do you know what's the purpose of settings `ExecStart = [ "" "blabla" ]` in a systemd unid? i guess it has something to do with overriding

2020-10-10

<ardumont> lewo: in the end, for my systemd service override, i used a composition of replacing a module and a dedicated nixpkgs-"master" source (through niv)

2020-10-04

<evernite> Streetwalrus: My main objective is to have an OnFailure= for a borgbackup job. Do you know if there is a good way to just override the systemd borgbackup module?

2020-07-24

<gchristensen> cab404[m]: even if I override `systemd` to be something else it doesn't have an effect

2020-06-07

<clever> ninjin: the only thing i can think of, is that there is a magic key you can press at the systemd boot menu, to override the default option

2020-06-06

<Mic92> jakobrs: you don't need to override it for all nixpkgs. you can just override it for systemd that is used in config.systemd.package

2020-04-26

<thibm> I'm trying to setup autologin on only 1 TTY. So I'm trying to override getty@tty1 systemd service. Are /etc/systemd/system/getty@tty1.service and /etc/systemd/system/getty@tty1.service.d/override.conf equivalent for systemd?

2020-04-17

<drakonis> you're overriding systemd
<duckfullstop> super dumb question: if I have a systemd unit that's being instantiated by a derivation in nixpkgs, and I want to add some packages to its path, is my only choice to override the package?

2020-04-12

<bqv> ha! nice. overriding systemd reduced the number of packages i have to build locally by an order of magnitude
<clever> bqv: you can use an override to force util-linux to depend on the old systemd

2020-04-11

<hoplaahei> Is there any way to get KDE to stop recreating ~/.config/kxkbrc and re-enabling the 'Configure layouts' preference of 'Keyboard'. It keeps overriding my xmodmap settings. I've tried making a systemd user service for graphical target to run xmodmap as well, but I can't figure out how to get it to run after KDE parses its configs.

2020-04-08

<srhb> steell: Depending on the module it _may_ be possible by overriding just an ExecStart or something in the systemd service, if it's only used there, say.

2020-03-05

<vek_tor> i want to override the picom systemd config so that it starts picom with `--experimental-backends`. how do i do that?

2020-03-04

<ar> i tried to follow https://nixos.org/nixos/manual/index.html#sec-customising-packages to override samba to enable printing (by adding "(pkgs.samba.override { enablePrinting = true; });" to systemPackages), but the systemd units ended up still using the non-overridden version of the package. is this normal?

2020-02-24

<clever> tomberek: you can just override the systemd service to set the vars there
<CMCDragonkai1> does anybody know if systemd unit template files can be used in in systemd.services with overrides?

2020-02-17

<mikky> hi, is there a way to override a systemd service parameter? Like when a service creates it's own service unit file with "User" set to whatever and I want to change just the user?

2020-02-16

<{^_^}> #28445 (by kageurufu, 2 years ago, open): systemd-boot sets efivar LoaderEntryDefault, which overrides default in /boot/loader/loader.conf

2020-02-14

<makefu> dminuoso: you can always override and extend the systemd service by addressing it directly using `systemd.services.<servicename>.serviceConfig.whateveryouwant` :)

2020-01-31

<Henson> holy crap, I figured it out. By looking through the source for nixos/modules/system/boot/systemd-lib.nix I see that any redefinitions of systemd service that already exist get added to an override. Therefore I simply had to redefine the systemd-nspawn service with serviceConfig containing DeviceAllow and it works. This works for all nspawn machines, however, and can't be limited to a...
<cap_sensitive> lassulus: Maybe some systemd stuff override my "manual" config. Have you disabled the predictive interface name?

2020-01-27

<contrun[m]> Yeah. But I didn't explicitly set which systemd package to use in my system. So I don't know how to override it. Did you mean I could just override it with `systemd = super.systemd.override`? Does this works?
<contrun[m]> How can I override systemd package itself in nixos? I want to change the source code of systemd and run it on my current system

2020-01-10

<flokli> be7a: on nixos, you can set systemd.package instead of overriding systemd
<be7a> Hi, im trying to get DNS-over-TLS working with resolved, however nixos systemd currently builds without gnutls or openssl support, so the feature is currently disabled by default. So i tried to use a overlay to override the build inputs to include gnutls and while this seems to work, this results in nix rebuilding nearly all of my packages from
<juhe> Hi, I'm lookin for a solution of how to override systemd-networkd-wait-online target, so that I can configure my own parameters to it in order to match the "online" requirement of my machine. Having 'systemd.services.systemd-networkd-wait-online.serviceConfig.ExecStart = "${config.systemd.package}/lib/systemd/systemd-networkd-wait-online -i enp2s0:routable"; ' in my config doesn't seem to work, systemd calls original version which is with

2020-01-03

<pie_[bnc]> do you know off the top of your head where systemd puts overrides

2019-12-20

<pie_> the problem is of course that the systemd override directory is also immutable due to nix

2019-12-18

<{^_^}> #28445 (by kageurufu, 2 years ago, open): systemd-boot sets efivar LoaderEntryDefault, which overrides default in /boot/loader/loader.conf

2019-12-13

<CMCDragonkai> infinisil: I'm trying to understand, are you saying to override the systemd execstart from within the nixos module configuration, rather than using some sort of parameter passing logic to the actual systemd unit file? Because these are 2 different things.
<infinisil> And with systemd you can set `ExecStart = [ "" "new-exec-start" ]` to override a previous one

2019-12-07

<clever> __marlene__: override the derivation to put the systemd unit at a diff path within $out

2019-11-09

<asymmetric> does anyone know if i can override a module's implementation, e.g. the ExecStart of a systemd service

2019-11-01

<contrun[m]> How do I override settings of systemd unit which is generated by my configuration.nix

2019-10-27

<maralorn> mrSpec: The systemd-unit is not built with the package that you put into "systemPackages". It uses the package from the nixpkgs version the module is in. (unless there is an override, which is often the case.)

2019-10-11

<wedens> speaking of systemd 243. if I want to downgrade to 242, will overriding src for systemd derivation be enough?

2019-09-11

<red_beard> qq: I had previously defined a systemd unit in configuration.nix (https://paste.fedoraproject.org/paste/Gwj-m~1SV715KFSlwHDIZQ) but, digging in further, realized that there was a boolean which could be set to achieve the same result. i commented out the old mechanism (lines 37-41) and have gone through a nixos-rebuild boot & reboot, but it hasn't removed the systemd override generated from the previous

2019-08-28

<tokudan> ivan, i believe cgroups (automatically used with systemd) shuold override autogroups

2019-05-26

<mog> is there a way to enable services but not have them start? i know i could override the systemd unit but curious if there was a more generic way of doing it

2019-04-24

<ambro718> I did this systemd package override, https://paste.ubuntu.com/p/v7pfNWh9Vt/, can someone see why it would be failing to find dbus via pkg-config?

2019-03-21

<das_j> Is tehre anything special when overriding systemd in an overlay? I get an infitite recursion while evaluating the attribute 'buildInputs' of the derivation 'util-linux-2.32.1'

2019-02-28

<elvishjerricco> How should I override the ExecStart of a service file provided by the systemd package?

2019-02-02

<steveeJ> arianvp: may I bug you about systemd-nspawn containers? in https://github.com/NixOS/nixpkgs/issues/51076 it looks like you've thought about this for a bit. can you tell if the current state of these overrides is broken?

2018-12-09

<nh2> oldandwise: I suspect a working way would be to override `hardware.bluetooth.package = (overrideBuildToPatchUnitFile pkgs.bluez)`, where `overrideBuildToPatchUnitFile` would be a function you write that patches the bluez-provided systemd unit file so that it contains the flag you want. Does that help?
<nh2> because it's not a NixOS provided systemd unit, you cannot easily override it with NixOS's module system

2018-10-27

<feep> symphorien: doesn't my configuration.nix systemd override that?

2018-10-22

<Mic92> I am also not sure if overriding systemd units was supported from the beginning

2018-09-23

<sphalerite> nDuff: if you need both, you need some extra parens, like (foo.override {systemd = null;}).overrideAttrs (o: {mkDerivation arg overrides here;})
<sphalerite> nDuff: what you could do is override it with { systemd = null; }

2018-08-17

<Denommus> how can I override the user of a systemd unit (say, docker-registry)?

2018-06-07

<samueldr> systemctl cat will show the actual unit as systemd sees it using the service and overrides

2018-04-26

<teto1> the doc on nixos/nixpkgs+systemd is scarce. The systemctl cat network-manager.service shows that the config is composed from upstream configuration + some overrides generated by nixos
<teto1> just discovered "systemctl edit" could override systemd units (which is more practical than patching nixpkgs systemd.service as I had started)

2018-04-20

<infinisil> I have this rather easy PR of mine which fixed a type to enable you to override the environment of a systemd service

2018-04-09

<aminechikhaoui> It might be a systemd issue as we don't seem to do any relevant service override for it

2018-04-06

<lejonet> Hmm, what is the correct way of overriding a services ExecStart? Its not liking me doing a systemd...serviceConfig = systemd...serviceConfig // { ExecStart = "stuff" }; :P

2018-03-12

<makefu> hlolli: your override also seems to be redundant as useSystemd is true by default and systemd normally uses the correct package

2018-01-15

<FRidh> SSL connect error with a nix multi-user installation when fetching a path as root. The issue does not occur when using the daemon. A proxy is configured both in /etc/environment for users, and as an override for the nix-daemon systemd service. Root itself can fetch, but not using nix.

2017-12-04

<sphalerite> there may also be issues with overriding services provided by systemd where you can't replace a setting because it doesn't originate from nixos config. Not sure if there's a workaround for that currently.

2017-11-13

<sphalerite> Is there a way, in nixos config, to override the ExecStart of a systemd service not defined by nixos?

2017-11-05

<sphalerite> How do I get the blank ExecStart= that's used to override an option in a service for systemd?

2017-11-01

<t184256> Hello, could you help a noob? I'm overriding pkgs.systemd. If I put the result into environment.systemPackages, I have two systemds. If I put it into nixpkgs.config.packageOverrides, lvm2 freaks out that the overrided systemd has no udev attribute.

2017-10-19

<clever> MichaelRaskin: i also applied an override to a few things, to get systemd out of the closure

2017-09-20

<sphalerite> phdoerfler: yeah I don't think it's possible with that module. You'll need to patch it to accept extraConfig or override the systemd service which might be a bit of a pain

2017-06-28

<LnL> omg..., no wonder my systemd path override wasn't working

2017-04-01

<leothrix> Hey friends, is there a way to override an option for a systemd service? I want to set `systemd.services.docker.restartIfChanged = true;` but get definition conflict errors.

2017-03-20

<ToxicFrog> This is weird. I updated from 16.09 to unstable and one of my systemd units stopped working because my custom ExecStart value got appended to the file rather than overriding the ExecStart that it has by default o.O

2017-03-14

<nh2> is there a standard way to override services? E.g. let's say I want to add an `After` entry to nginx's systemd configuration, extending the existing `After` by a couple list entries, what's the cleanest way to do that override?

2017-03-08

<nekroze> Since upgrading to 17.03 my gitlab-runner cannot execute builds. it looks like when it tries to start a build it attempts to switch user via su which it cannot find. I have tried giving the service pkgs.su in the path and even /run/wrappers/bin as an extension to the path variable by overriding the systemd start script with no joy. Anyone know how to resolve this?

2017-02-17

<mbrgm> anothere one: is it possible to override the preStart part of a systemd service implementation?

2017-02-16

<mbrgm> how can I override a service definition? in particular I want to override systemd...preStart for it.
<mbrgm> how can I override a service definition? in particular I want to override systemd...preStart for it.

2017-01-10

<abbradar`> for example this is used to override upstream systemd files
<gchristensen> nixos typically doesn't use systemd override files
<leothrix> Does anyone happen to know if there's a nixos mechanism to write/manage systemd override files? (eg. /etc/systemd/system/foo.service.d/override.conf)

2017-01-02

<bennofs> LnL: nixos already has an overridable activation & post build script. we "just" need to bring nixos modules to user environments, perhaps even using systemd --user?

2016-12-29

<sheenobu> joepie91, oh i guess I would override the services.caddy stuff to include LimitNOFile. not sure how to add additional systemd options to existing nixos services

2016-12-10

<clever> gchristensen: oh, and kill the override on 42 also, systemd still references it