!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

655 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues165 Servers

Load older messages


SenderMessageTime
27 Apr 2023
@houstdav000:gh0st.ems.hostCyntheticFox
In reply to @adtya:adtya.xyz
I've just noticed that all the symlinks created by home-manager are pointing to files in the store which are owned by root:root and are rwxrwxrwx. is that how it's supposed to be? shouldn't the files be owned by the respective user? I never noticed this before

Nix is pretty much built on removing per-user restrictions (running user is a type of undefined build input), so home-manager inherits that property by being built on it (I think the linked files are rwxr-xr-x though). In general, if you're worried about other users modifying the data, the file would be considered "sensitive", so you'll have to try to encrypt it to be safe.

There are some tools like sops-nix that achieve this at an OS level in NixOS by encrypting the files and relying on external keys, but those keys need to be on an encrypted drive to be secure. Trying to achieve this at a user level typically is done by hooking into the system PAM modules to pass your login password to some secrets-manager like gnome-keyring or pass-secret-service, or using an encrypting filesystem like ecryptfs or however systemd-homed does it

11:47:47
@houstdav000:gh0st.ems.hostCyntheticFox I'm not sure though if there's any good NixOS module support for anything beyond unlocking gnome-keyring, but I also dont keep up with unstable very well 11:49:33
@adtya:adtya.xyz@adtya:adtya.xyzI'm not worried about anyone else modifying the files. It's on my laptop and the disk is encrypted. it's just that seeing files in the user home directory owned by root seemed weird. it's not an issue though, since all these files are managed by home-manager so they won't be touched by anything else12:18:18
@adtya:adtya.xyz@adtya:adtya.xyz* I'm not worried about anyone else modifying the files. It's on my laptop and the disk is encrypted. it's just that seeing files in the user home directory owned by root seemed weird. it's not an issue either, since all these files are managed by home-manager so they won't be touched by anything else12:18:30
@adtya:adtya.xyz@adtya:adtya.xyzthe only "secrets" that i have are the user passwords, though they're encrypted with git-crypt before pushing to git. all other secrets are read from gnome-keyring on runtime12:21:34
@eisfunke:eisfunke.com@eisfunke:eisfunke.com joined the room.15:21:32
28 Apr 2023
@figsoda:matrix.orgfigsodaare the hercules agents down?14:42:35
@figsoda:matrix.orgfigsodaI've retried a few times but workers are still failing https://hercules-ci.com/github/nix-community/nix-init/jobs/68814:43:13
@kranzes:matrix.orgIlan Joselevich (Kranzes)The agents are up.18:29:01
@kranzes:matrix.orgIlan Joselevich (Kranzes)Not sure what's up with it, can you retry the job?18:29:30
@figsoda:matrix.orgfigsodaI've retried a few times18:31:46
@figsoda:matrix.orgfigsodaand this is not the only repository failing18:31:54
@figsoda:matrix.orgfigsodahttps://hercules-ci.com/github/nix-community/namaka https://hercules-ci.com/github/nix-community/nurl18:32:52
@figsoda:matrix.orgfigsoda including neovim-nightly-overlay which you are maintaining Ilan Joselevich (Kranzes) 18:33:16
@figsoda:matrix.orgfigsodabut that looks like it could be a different issue18:33:47
@kranzes:matrix.orgIlan Joselevich (Kranzes)I was able to just restart the job on neovim nightly and it worked18:41:48
@kranzes:matrix.orgIlan Joselevich (Kranzes)Maybe the agents need to be restarted i am not sure 18:42:13
@kranzes:matrix.orgIlan Joselevich (Kranzes)Robert might know about this more18:42:43
@joerg:thalheim.ioMic92figsoda: hercules on build02 was running and I also restarted it.18:43:39
@joerg:thalheim.ioMic92I also restarted your build18:44:01
@kranzes:matrix.orgIlan Joselevich (Kranzes) You'll have to look into the error -11 in hci source code 18:44:09
@joerg:thalheim.ioMic92oh you are right.18:44:33
@joerg:thalheim.ioMic92I get a (code=dumped, signal=SEGV)18:44:36
@joerg:thalheim.ioMic92mmap 4096 bytes at (nil): Cannot allocate memory18:44:58
@joerg:thalheim.ioMic92It seems to go out of memory18:45:03
@joerg:thalheim.ioMic92but there is memory free...18:45:12
@kranzes:matrix.orgIlan Joselevich (Kranzes)I might know what's going on18:45:31
@kranzes:matrix.orgIlan Joselevich (Kranzes)Where is the agent configuration 18:46:07
@joerg:thalheim.ioMic92https://dl.thalheim.io/KnkWthhAXVtsP81lUr8ueg/foo.log18:46:30
@joerg:thalheim.ioMic92Too many eval threads?18:47:05

Show newer messages


Back to Room ListRoom Version: 6