!YllBCgVdcoakoavZvX:rycee.net

Home Manager

1619 Members
Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager)306 Servers

Load older messages


SenderMessageTime
30 Apr 2025
@vaw:nlih.devaw Do you have experimental-features = nix-command flakes in your ~/.config/nix/nix.conf? 12:45:15
@dreamgineer:matrix.orgDreamgineer Because home-manager failed to activate, ~/.config/nix/nix.conf disappeared completely 12:45:46
@dreamgineer:matrix.orgDreamgineer
# modules/home/programs/nix.nix
{
  nix.settings = {
    experimental-features = [
      "nix-command"
      "flakes"
    ];
  };
}
12:47:19
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org joined the room.17:05:30
@regalk:regalk.dev@regalk:regalk.dev joined the room.17:40:33
@regalk:regalk.dev@regalk:regalk.dev left the room.17:40:54
@skyesoss:matrix.org@skyesoss:matrix.org joined the room.19:53:34
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org left the room.21:37:25
1 May 2025
@leons_pferd:matrix.orgLeon joined the room.00:05:57
@mbkqrqj:matrix.orgmbkqrqj joined the room.01:55:12
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org joined the room.15:57:02
@musicmatze:beyermatthi.asmusicmatze joined the room.17:10:49
@musicmatze:beyermatthi.asmusicmatze Hello home-manager users. I try to use home-manager to configure an instance of syncthing for a user camera. Unfortunately, the service only starts when I log in the machine with that user. Is there a way to always start that service? 17:51:26
@vaw:nlih.devaw The problem is that home-manager creates a systemd user service. The systemd user session only starts when a user logs in the first time after boot. I think you best choice would be to create a system service (maybe with nixos) and use the User parameter to run it as camera. 17:56:18
@musicmatze:beyermatthi.asmusicmatze vaw: thanks for the fast reply. The problem is that it is not the only syncthing instance I want to start on that machine, hence the idea to configure it as user service - I will probably have another 2 or 3 instances of syncthing running on that device... 18:00:27
@vaw:nlih.devawYou might als try to set up a system service that logs in as the user to start the user session. I don't know how hacky that would end up being though.18:01:50
@vaw:nlih.devaw* You might also try to set up a system service that logs in as the user to start the user session. I don't know how hacky that would end up being though.18:02:00
@musicmatze:beyermatthi.asmusicmatzeSounds very hacky, yes 😆18:12:32
@_oftc_nullbite:matrix.orgnullbite joined the room.19:00:30
@_oftc_myme:matrix.org@_oftc_myme:matrix.org joined the room.19:17:59
@_oftc_myme1:matrix.orgmyme1 left the room.19:20:40
@rosariopulella:matrix.orgrosariopulella changed their display name from Rosario Pulella to Rosuavio.20:08:04
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org left the room.21:18:55
@r522:matrix.org522

does https://www.freedesktop.org/software/systemd/man/latest/loginctl.html#enable-linger%20USER%E2%80%A6 help?

Enable/disable user lingering for one or more users. If enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts. This allows users who are not logged in to run long-running services.

seems like what you want?

21:34:02
@r522:matrix.org522(though note: haven't tried it myself)21:34:16
2 May 2025
@musicmatze:beyermatthi.asmusicmatze
In reply to @r522:matrix.org

does https://www.freedesktop.org/software/systemd/man/latest/loginctl.html#enable-linger%20USER%E2%80%A6 help?

Enable/disable user lingering for one or more users. If enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts. This allows users who are not logged in to run long-running services.

seems like what you want?

Cool that sounds exactly like what I need, thanks
05:17:34
@_oftc_al3xtjames:matrix.org@_oftc_al3xtjames:matrix.org left the room.08:56:59
@_oftc_al3xtjames2:matrix.orgal3xtjames2 joined the room.08:57:13
@_oftc_bigrick:matrix.org@_oftc_bigrick:matrix.org left the room.15:01:07
@_oftc_bigrick:matrix.org@_oftc_bigrick:matrix.org joined the room.16:21:53

Show newer messages


Back to Room ListRoom Version: 6