!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

323 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena110 Servers

Load older messages


SenderMessageTime
28 Nov 2022
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
08:58:20
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
08:58:40
@ronixx:matrix.orgroshan | byteio.in 🌷same issue event after adding do image nix file08:59:08
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @zhaofeng:zhaofeng.li
Admittedly deploying as non-root isn't the best experience right now 😐️
right. Unable to read key from other user
13:24:42
@ronixx:matrix.orgroshan | byteio.in 🌷
In reply to @zhaofeng:zhaofeng.li
Admittedly deploying as non-root isn't the best experience right now 😐️
* right. Unable to read key from /run/keys/ in outher user acc
13:25:07
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
13:52:13
@ronixx:matrix.orgroshan | byteio.in 🌷can i change ownership of /run/keys folder ? in Colmena13:52:31
@ronixx:matrix.orgroshan | byteio.in 🌷i have user account named nix but Nix Unabel to acces keys folder13:52:56
@ronixx:matrix.orgroshan | byteio.in 🌷but secret file owner is nix user acc13:53:10
@linus:schreibt.jetztLinux Hackerman usually what you do is add the group keys to the service or whatever it is that needs to access them 13:53:10
@linus:schreibt.jetztLinux Hackerman since the keys group can read /run/keys 13:53:34
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
13:53:33
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
13:54:18
@ronixx:matrix.orgroshan | byteio.in 🌷is this correct way to add keys to nix acc ?13:54:37
@linus:schreibt.jetztLinux Hackerman yes, but freshrss shouldn't be running as the nix user unless you added extra config for it 13:55:01
@linus:schreibt.jetztLinux Hackerman try adding users.users.freshrss.extraGroups = ["keys"] 13:55:59
@linus:schreibt.jetztLinux Hackerman since it runs as the freshrss user 13:56:08
@ronixx:matrix.orgroshan | byteio.in 🌷services.<name> name is same for group 13:57:24
@linus:schreibt.jetztLinux Hackermannot always13:57:33
@linus:schreibt.jetztLinux Hackermanyou generally have to check the module implementation13:57:43
@linus:schreibt.jetztLinux Hackerman often services will use systemd's DynamicUser feature to avoid actually creating a "permanent" user, in which case you have to set serviceConfig.SupplementaryGroups = ["keys"] on the systemd service in question 13:58:37
@ronixx:matrix.orgroshan | byteio.in 🌷image.png
Download image.png
14:02:21
@ronixx:matrix.orgroshan | byteio.in 🌷Finally its working after 6 hours of trying14:02:48
@ronixx:matrix.orgroshan | byteio.in 🌷 thank you Linux Hackerman 🥰 14:03:12
29 Nov 2022
@ask-yourself:matrix.org@ask-yourself:matrix.org

I'm not sure if this is gonna turn out being about Colmena or KMonad so forgive me if this turns out being the wrong place to ask. I think it's most likely to do with Colmena though.

So I have a KMonad config in the works here: https://gitlab.com/IsaacBrown92/dotfiles/-/blob/main/modules/services/kmonad/kmonad.kbd

Here is the behaviour:

  • When I modify that config then run sudo colmena apply-local, the new keymaps are not in place.
  • If I re-run sudo colmena apply-local, the new keymaps are not in place.
  • If I reboot, the new keymaps are in place.
  • If instead of rebooting, I make another change to my kmonad.kbd, then run sudo colmena apply-local, then the keymaps will be in place.

It seems very weird that the change dosn't take effect after multiple sudo colmena apply-local but does take effect if I add an arbitrary change to the file then run sudo colmena apply-local. Anybody know what is going on here?

16:28:51
@ask-yourself:matrix.org@ask-yourself:matrix.org *

I'm not sure if this is gonna turn out being about Colmena or KMonad so forgive me if this turns out being the wrong place to ask. I think it's most likely to do with Colmena though.

So I have a KMonad config in the works here: https://gitlab.com/IsaacBrown92/dotfiles/-/blob/main/modules/services/kmonad/kmonad.kbd

Here is the behaviour:

  • When I modify that config then run sudo colmena apply-local, the new keymaps are not in place.
  • If I re-run sudo colmena apply-local n times, the new keymaps are not in place.
  • If I reboot, the new keymaps are in place.
  • If instead of rebooting, I make another change to my kmonad.kbd, then run sudo colmena apply-local, then the keymaps will be in place.

It seems very weird that the change dosn't take effect after multiple sudo colmena apply-local but does take effect if I add an arbitrary change to the file then run sudo colmena apply-local. Anybody know what is going on here?

16:29:26
@ask-yourself:matrix.org@ask-yourself:matrix.org *

I'm not sure if this is gonna turn out being about Colmena or KMonad so forgive me if this turns out being the wrong place to ask. I think it's most likely to do with Colmena though.

So I have a KMonad config in the works here: https://gitlab.com/IsaacBrown92/dotfiles/-/blob/main/modules/services/kmonad/kmonad.kbd

Here is the behaviour:

  • When I modify that config then run sudo colmena apply-local, the new keymaps are not in place.
  • If I re-run sudo colmena apply-local n times, the new keymaps are not in place.
  • If I reboot, the new keymaps are in place.
  • If instead of rebooting, I make another change to my kmonad.kbd, then run sudo colmena apply-local, then the keymaps will be in place.

It seems very weird that the change dosn't take effect after multiple sudo colmena apply-local but does take effect if I add an arbitrary change to the file then run sudo colmena apply-local again. Anybody know what is going on here?

16:29:54
@ask-yourself:matrix.org@ask-yourself:matrix.org(Also worth noting, the arbitrary change itself will NOT take effect, the prior change that failed to take effect will take effect, if I repeat again with a second arbitrary change, then the prior arbitrary change will take effect.)16:32:05
@NobbZ:matrix.org@NobbZ:matrix.orgAs you didn't answer the question in the discord, does it work if you restart the relevant service manually?16:33:15
@whentze:matrix.orgWanja Hentzeit could also be a nixos switch-to-configuration issue, or even a systemd issue16:34:27

Show newer messages


Back to Room ListRoom Version: 6