!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

609 Members
NixOS ❤️ systemd172 Servers

Load older messages


SenderMessageTime
20 Jan 2025
@elvishjerricco:matrix.orgElvishJerricco iridium: That is a wonderfully detailed bug report. The perfect kind :) 20:20:33
@jade_:matrix.orgjade_https://git.lix.systems/lix-project/lix/issues/633 lmao it sure does, the current implementation, in addition to being bad, is such a layering violation22:45:38
21 Jan 2025
@toinux_net:matrix.orgtoinux joined the room.00:38:24
@elvishjerricco:matrix.orgElvishJerricco Philip Taron (UTC-8): Btw: https://github.com/NixOS/nixpkgs/pull/375480 10:02:44
@elvishjerricco:matrix.orgElvishJerriccoI'm trying to set my personal hydra up to build all these tests so it's easier for me to spot them10:03:11
@adam:robins.wtf@adam:robins.wtfIs there a good way to define a persistent systemd service, outside of NixOS control?15:32:15
@msanft:matrix.org@msanft:matrix.org I think you should be able to put stuff into ~/.config/systemd/user/ if I'm not mistaken. 15:42:49
@philiptaron:matrix.org@philiptaron:matrix.org

For a system service, maybe:

  1. tmpfiles.d configuration to land a symlink to well-known location
  2. write a generator in bash to land the thing from well-known location
  3. Find one of the search paths that's not wired up on NixOS and squat there
15:47:20
@gdamjan:spodeli.orggdamjan
  1. portable service (which you can also build with nix, but also with other tools)
15:48:44
@adam:robins.wtf@adam:robins.wtfHmm. I'd thought of using a generator but don't love the idea. Squatting on an FHS path maybe is a good idea.15:50:39
@adam:robins.wtf@adam:robins.wtf

One thing I'd like to know is what this means

/run/systemd/generator/*
…
/usr/local/lib/systemd/system/*
15:51:01
@adam:robins.wtf@adam:robins.wtf what's in ... ??? 15:51:05
@philiptaron:matrix.org@philiptaron:matrix.orgI think it's this: https://github.com/systemd/systemd/blob/d641a1f8f7a1fcb95b01a63820dcdba5bb7dc78f/src/core/systemd.pc.in#L4615:52:07
@philiptaron:matrix.org@philiptaron:matrix.org* I think it's this: https://github.com/systemd/systemd/blob/main/src/core/systemd.pc.in#L4615:52:42
@adam:robins.wtf@adam:robins.wtf so systemd_system_unit_dir=${prefix}/lib/systemd/system ? 15:52:52
@adam:robins.wtf@adam:robins.wtfI'd also written off #1 because it requires an up front enumeration of the known services. I think #3 will work for what I need. Thanks :)15:53:58
@arianvp:matrix.orgArianWe used to have /etc/systemd/system-mutable15:55:03
@arianvp:matrix.orgArianBut idk if we still do15:55:08
@adam:robins.wtf@adam:robins.wtfi don't see it in the nixpkgs source15:56:35
@adam:robins.wtf@adam:robins.wtfpaths are compile time, so it's not something i can trivially update15:56:59
@msanft:matrix.org@msanft:matrix.orgIs it a system service, at all? Or user-scoped anyway?15:59:30
@adam:robins.wtf@adam:robins.wtfBoth? :) I want the isolation of a user, but with all the flexibility and control of a system service16:04:54
@adam:robins.wtf@adam:robins.wtfuser units a good for interactive users only imo16:05:50
@adam:robins.wtf@adam:robins.wtf* user units are good for interactive users only imo16:06:04
@gdamjan:spodeli.orggdamjan
17:22:37
@gdamjan:spodeli.orggdamjan* $ systemd-path systemd-search-system-unit /etc/systemd/system.control:/run/systemd/system.control:/run/systemd/transient:/run/systemd/generator.early:/etc/systemd/system:/nix/var/nix/profiles/default/lib/systemd/system:/etc/systemd/system.attached:/run/systemd/system:/run/systemd/system.attached:/run/systemd/generator:/nix/store/bl5dgjbbr9y4wpdw6k959mkq4ig0jwyg-systemd-256.10/lib/systemd/system:/run/systemd/generator.late17:22:44
@gdamjan:spodeli.orggdamjan * $ systemd-path systemd-search-system-unit
/etc/systemd/system.control:/run/systemd/system.control:/run/systemd/transient:/run/systemd/generator.early:/etc/systemd/system:/nix/var/nix/profiles/default/lib/systemd/system:/etc/systemd/system.attached:/run/systemd/system:/run/systemd/system.attached:/run/systemd/generator:/nix/store/bl5dgjbbr9y4wpdw6k959mkq4ig0jwyg-systemd-256.10/lib/systemd/system:/run/systemd/generator.late
17:22:51
@gdamjan:spodeli.orggdamjan there's /nix/var/nix/profiles/default/lib/systemd/system ? 17:23:31
@adam:robins.wtf@adam:robins.wtfhmm, and the standard FHS paths are missing from that list18:21:46
@adam:robins.wtf@adam:robins.wtfwhat even is the default profile supposed to be used for on nixos?18:23:00

Show newer messages


Back to Room ListRoom Version: 6