7 Nov 2023 |
raitobezarius | there should be something a search engine | 08:41:48 |
raitobezarius | where it searches everything and intersect with nixos community members | 08:41:55 |
K900 ⚡️ | I found it by searching CONDA_PREFIX on the repo | 08:42:01 |
raitobezarius | no doubt | 08:42:09 |
K900 ⚡️ | Oh | 08:43:14 |
K900 ⚡️ | It's on -next | 08:43:17 |
K900 ⚡️ | I guess we just wait then | 08:43:20 |
9 Nov 2023 |
| chreekat left the room. | 14:57:07 |
10 Nov 2023 |
| globin joined the room. | 00:49:52 |
l0b0 | How can I create a user on the nixos/nix Docker image? It has neither useradd nor adduser installed. | 04:29:53 |
l0b0 | * How can I create a user on the nixos/nix Docker image? It has neither useradd nor adduser installed. nix-env --install --attr nixpkgs.su installs useradd , but it seems very clunky so far. | 04:44:04 |
l0b0 | * How can I create a user on the nixos/nix Docker image? It has neither useradd nor adduser installed. nix-env --install --attr nixpkgs.su installs useradd , but it won't create a user:
useradd: cannot open /etc/passwd
| 05:54:43 |
l0b0 | * How can I create a user on the nixos/nix Docker image? It has neither useradd nor adduser installed. nix-env --install --attr nixpkgs.su installs useradd , but it won't create a user:
bash-5.2# "$(nix --extra-experimental-features nix-command eval --file '<nixpkgs>' --raw shadow)/bin/useradd" "$username"
useradd: cannot open /etc/passwd
Even if I could, it looks like su doesn't work either:
bash-5.2# su --login nobody
su: pam_start: error 26
| 05:58:41 |
raitobezarius | this #testing:nixos.org not #nix:nixos.org | 12:04:03 |
raitobezarius | * this is #testing:nixos.org not #nix:nixos.org | 12:04:06 |
l0b0 | In reply to @raitobezarius:matrix.org this is #testing:nixos.org not #nix:nixos.org Yes, I'm doing this to test with Nix | 20:02:38 |
raitobezarius | yep but separate concern | 20:02:46 |
l0b0 | Oh, OK. | 20:03:14 |
14 Nov 2023 |
| bendlas joined the room. | 00:55:51 |
bendlas | I'm interested in implementing a few new nixos tests for postgres, but I haven't gone much into the test suite so far yet. I got the impression that there is something more recent floating around than testing-python.nix . What's the latest on testing? What can/should I use for new tests, for this release already? | 00:59:08 |
bendlas | Is there a way to define tests as nixos modules? | 00:59:10 |
l0b0 | In reply to @bendlas:matrix.org Is there a way to define tests as nixos modules? Oh yes. Have a look at https://github.com/l0b0/nixpkgs/tree/master/nixos/tests | 06:13:23 |
bendlas | In reply to @vengmark2:matrix.org Oh yes. Have a look at https://github.com/l0b0/nixpkgs/tree/master/nixos/tests I know that folder. Is there any particular test that you would like me to look at for an example? | 12:58:21 |
bendlas | or is your point that import ./make-test-python.nix already accepts a nixos module? | 13:00:29 |
raitobezarius | Make test Python takes a set of NixOS systems | 13:02:13 |
raitobezarius | Which can contain any NixOS modules | 13:02:21 |
bendlas | and how about the tests themselves? say if I want to run the same test with many different parameter sets ... can I use module logic to generate the various instances? | 13:03:48 |
raitobezarius | You can just use a function to generate the Cartesian product of your variants | 13:04:15 |
bendlas | And also to the second part of my question: Is make-test-python & friends the only game in town? | 13:04:20 |
raitobezarius | You don't need to use a nixos module for that | 13:04:21 |