NixOS System Operations | 545 Members | |
| About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org | 145 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Oct 2024 | ||
| The kernel would consider it an out of memory condition if it can't find a page to swap out | 15:41:05 | |
| Which is why you can't just throw swap at your OOM problems and expect them to go away | 15:42:23 | |
| Philip: Huh, that's extremely odd; @rosscomputerguy:matrix.org was having a very similar issue in #users:nixos.org the other day | 15:43:30 | |
| OOMs on processes that weren't using much memory when the total used wasn't very high | 15:43:46 | |
| I think they found out it was some kernel tuning they had done that was the problem. But maybe that was wrong and the problem is somewhere in nixos? | 15:44:44 | |
| (also, that is an unbelievable amount of swap. Absolutely a waste lol) | 15:47:56 | |
In reply to @elvishjerricco:matrix.orgYes, totally obscene... I have a 1 TB NVMe drive that I am not using for anything right now, so I thought I'd dedicate it to swap. But that'll be the first to go when I need more storage. | 17:24:41 | |
| I need to duplicate the same system over 30 school laptops with the same setup and settings everywhere. Would nixos be feaseable also considering every laptop need to be a little unique with hostname? | 21:43:56 | |
In reply to @theelevated:matrix.org I think it could be a great option here. Basically you could configure everything once and then just set different hostnames for different machines in separate configurations. You could then generate small disk images that you can then | 21:51:51 | |
In reply to @scrumplex:duckhub.iodoes nix also shell bin commands? if I need want to have a elevated listener for a root ssh session and in the global file. | 21:53:56 | |
In reply to @scrumplex:duckhub.io* does nix also shell bin commands? if I need want to have a elevated listener for a root ssh session in the global file. | 21:54:12 | |
| 22:16:52 | ||
| 6 Oct 2024 | ||
| 12:43:02 | ||
| 19:43:20 | ||
| 7 Oct 2024 | ||
| 00:05:36 | ||
| 00:05:47 | ||
| 00:06:01 | ||
In reply to @scrumplex:duckhub.ioI wonder, is there a more elegant way of doing this? If you build an image per system, you'll be compressing the same content a lot of times. I'd rather have one image, and an activation script that checks what mac addresses it can find on the system and then pics the hostname / activation script for the correct system. But that sounds brittle to set up. Are there any examples of doing this in a sane way? | 05:47:17 | |
In reply to @theelevated:matrix.orgYour question is a little bit gibberish. Are you using some translation software? In any case: Yes, you can run sshd and add something to users.users.root.openssh.authorizedKeys.keys on all hosts, so you'll be able to ssh in as root and e.g. execute nixos-rebuild. | 05:48:39 | |
| 08:28:15 | ||
| 10:19:59 | ||
| does anyone here happen to have a disko config for EFI boot with raid0 over two drives? | 11:34:23 | |
| interesting, hetzner puts the EFI partition on a mdadm raid1 with their default debian installations. it seems they're doing something non-standard which is using "EFI System" as a partition type for a mdadm member:
i'll see if disko supports creating such a layout | 12:07:49 | |
| snippet from
| 12:08:23 | |
| Raid zero for efi? I hope you mean one, because what in the world…. | 13:23:48 | |
| Anyway there’s `boot.loader.grub.mirroredBoots` . I haven’t used it but would investigate if I was trying to have boot redundancy | 13:25:22 | |
| 14:24:40 | ||
| I noticed today that one file in my Nix store was off. It is a YAML config file for frigate. I mounted the config file into an oci-container (using Docker, not Podman) using the following snippet:
When comparing the contents of this store file with the store file I built locally it has I created a root shell in this container, installed a text editor but was unable to edit the file in anyway, as I would expect, so I am wondering if I am missing something here | 16:54:48 | |
| I ran these inside of the container:
| 16:56:05 | |
| 8 Oct 2024 | ||
| 00:24:02 | ||