!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

896 Members
182 Servers

Load older messages


SenderMessageTime
5 Sep 2023
@artturin:matrix.orgArtturin *

they're added when strictDeps is false

it's true on cross-compilation and in some package sets even when not cross

you can enable it when not cross if you want

16:39:24
@mr-qubo:matrix.orgmr-qubo
In reply to @artturin:matrix.org

they're added when strictDeps is false

it's true on cross-compilation and in some package sets even when not cross

you can enable it when not cross if you want

I see.
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:02:42
@mr-qubo:matrix.orgmr-quboLong PATH also makes zsh completion slow.17:04:45
@mr-qubo:matrix.orgmr-qubo
In reply to @artturin:matrix.org

they're added when strictDeps is false

it's true on cross-compilation and in some package sets even when not cross

you can enable it when not cross if you want

I can't find how to enable it in flake.
17:13:12
@artturin:matrix.orgArtturin
In reply to @mr-qubo:matrix.org
I can't find how to enable it in flake.
it's a buildInputs and such is a mkDerivation thing
17:15:36
@artturin:matrix.orgArtturinnot a flake thing17:15:39
@artturin:matrix.orgArtturin
In reply to @mr-qubo:matrix.org
I can't find how to enable it in flake.
* it's a mkDerivation thing
17:15:48
@artturin:matrix.orgArtturinthe dependecy attributes ate mkDerivation things17:16:38
@artturin:matrix.orgArtturin * the dependency attributes are mkDerivation things17:16:42
@mr-qubo:matrix.orgmr-quboThere's a nixpkgs.config option strictDepsByDefault, but no idea how to use it in flake.17:16:44
@artturin:matrix.orgArtturinthat'll rebuild almost all of your packages17:17:13
@artturin:matrix.orgArtturinit's a nixpkgs config thing not a nixos system thing17:17:23
@mr-qubo:matrix.orgmr-quboBut isn't it possible to set this option only in one flake, and not entire system?17:18:46
@artturin:matrix.orgArtturinit's not a flake thing17:19:14
@artturin:matrix.orgArtturinyou can set it in one package17:19:19
@artturin:matrix.orgArtturin * you can set it in one package with overrideAttrs 17:19:22
@mr-qubo:matrix.orgmr-quboBut I want to have it for all packages. I already set strictDepsByDefault in my nixos configuration.nix, and the rebuild was fast, as everything was downloaded from cache. But I think it's not being applied to flakes.17:21:21
@artturin:matrix.orgArtturinUsing flakes for packages is outside of your systems nixpkgs instance so the config options aren't applied17:22:02
@artturin:matrix.orgArtturinyou'll have to use overlays17:22:09
@artturin:matrix.orgArtturin * you'll have to use overlays to import the packages from other flakes if you want the config to apply17:22:22
@artturin:matrix.orgArtturinWhat is your exact problem17:23:10
@artturin:matrix.orgArtturinYou're maybe looking in the wrong place17:23:44
@mr-qubo:matrix.orgmr-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:matrix.orgmr-quboSo in simpler words, I don't want dependencies in my PATH.17:27:12
@zoopli:matrix.orgzoopli joined the room.17:28:25
@zoopli:matrix.orgzoopliHi, 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:matrix.orgmr-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:matrix.orgmr-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:matrix.orgmr-quboBut why would you want to do this?17:43:10
@zoopli:matrix.orgzoopliJust 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

Show newer messages


Back to Room ListRoom Version: 6