| 5 Sep 2023 |
mr-qubo |
The problem I have is that I use coreutils-full in systemPackages. But most of my flakes override this with coreutils because it's a common dependency and it's added to PATH before /run/current-system/sw/bin.
| 17:24:03 |
mr-qubo | So in simpler words, I don't want dependencies in my PATH. | 17:27:12 |
| zoopli joined the room. | 17:28:25 |
zoopli | Hi, I have a newbie question. I've been going along with some tutorials on how to switch to flakes for my nixos system. And in the flake the configuration.nix is imported as module.
Is it possible to define your system config entirely in the flake.nix without needing a configuration.nix at all? | 17:38:07 |
mr-qubo | In reply to @mr-qubo:matrix.org So in simpler words, I don't want dependencies in my PATH. Seems like I'm not using flakes intended way in the first place and I should use something like https://github.com/numtide/devshell. | 17:38:40 |
mr-qubo | In reply to @zoopli:matrix.org Hi, I have a newbie question. I've been going along with some tutorials on how to switch to flakes for my nixos system. And in the flake the configuration.nix is imported as module. Is it possible to define your system config entirely in the flake.nix without needing a configuration.nix at all? You can just replace ./configuration.nix in modules array with the contents of configuration.nix file, probably wrapped in parentheses to make syntax work. | 17:42:27 |
mr-qubo | But why would you want to do this? | 17:43:10 |
zoopli | Just wanted to know if it's possible. I'll try it out. I'd rather tweak one file for my sys config than two files. Maybe I'll split it out again if it gets bigger. | 17:47:15 |
| 8 Sep 2023 |
| @ulli:hrnz.li left the room. | 20:41:59 |
| 9 Sep 2023 |
| @msanft:matrix.org joined the room. | 12:14:43 |
| 11 Sep 2023 |
| @kimblo:matrix.org joined the room. | 05:09:52 |
| 12 Sep 2023 |
| @robin.gloster:matrix.mayflower.de joined the room. | 08:25:23 |
| @louis2747:matrix.org joined the room. | 12:33:40 |
| Alex Zero changed their display name from Alex Zero to Vertex. | 14:40:47 |
| Alex Zero changed their profile picture. | 14:41:19 |
| Oro (any/all) changed their profile picture. | 22:32:19 |
| Oro (any/all) changed their profile picture. | 22:36:19 |
| 14 Sep 2023 |
| jlesquembre changed their display name from José Luis Lafuente to jlesquembre. | 10:36:42 |
@antifuchs:asf.computer | In reply to @mr-qubo:matrix.org Seems like I'm not using flakes intended way in the first place and I should use something like https://github.com/numtide/devshell. can confirm devshell is good; the only downside imho is that it's real close to the devShell flake schema key name /: | 16:34:49 |
| 0xMRTT [envs.net] changed their display name from 0xMRTT to 0xMRTT (Old). | 20:59:20 |
| 15 Sep 2023 |
| mith joined the room. | 15:13:48 |
| Moritz joined the room. | 19:36:37 |
| 17 Sep 2023 |
| tq5rpg joined the room. | 12:29:41 |
| 0xMRTT [envs.net] changed their display name from 0xMRTT (Old) to 0xMRTT [envs.net]. | 17:00:51 |
| 18 Sep 2023 |
| @ulrikstrid:matrix.org left the room. | 08:35:56 |
| 19 Sep 2023 |
| mr-qubo left the room. | 17:55:34 |
| mr-qubo joined the room. | 17:56:03 |
mr-qubo | Why builtins.getFlake "nixpkgs" requires --impure, but e.g. nix shell 'nixpkgs#hello' works without --impure? | 18:00:23 |
mr-qubo | * Why builtins.getFlake "nixpkgs" requires --impure, but e.g. nix shell 'nixpkgs#hello' works without --impure? Seems like I'm missing some understanding. | 18:00:36 |
CRTified | In reply to @mr-qubo:matrix.org Why builtins.getFlake "nixpkgs" requires --impure, but e.g. nix shell 'nixpkgs#hello' works without --impure? Seems like I'm missing some understanding. The first one is probably evaluated in a different flake and thus "breaks" the expectation of being pure, while the second one is impure on its own as you rarely have a pure shell env (and the concrete result of nixpkgs depends on your local flake registry) | 22:32:40 |