makefu changed the topic of #nixos-wiki to: Welcome to the *unofficial* nixos wiki | https://nixos.wiki | chat logs: https://logs.nix.samueldr.com/nixos-wiki/
<nixoswikibot> [[Editor Modes for Nix Files]] ! https://nixos.wiki/index.php?diff=2100&oldid=1125&rcid=2120 * Matthewbauer * (+60) 
orivej has joined #nixos-wiki
<nixoswikibot> [[Hydra]] https://nixos.wiki/index.php?diff=2101&oldid=2099&rcid=2121 * Makefu * (-39) 
<makefu> ^ removes the {{expansion}}, i think for a start it is good enough
orivej has quit [Ping timeout: 264 seconds]
andi- has quit [Ping timeout: 276 seconds]
orivej has joined #nixos-wiki
andi- has joined #nixos-wiki
<nixoswikibot> [[NixOS Modules]] ! https://nixos.wiki/index.php?diff=2102&oldid=1989&rcid=2122 * Tilpner * (+1028) Describe how to use imports without committing to a directory structure
<tilpner> ^ Please put that somewhere else if you find a more appropriate page!
<makefu> tilpner: i think the article you chose is fitting :)
<makefu> at least for now, if there are more quirks we could think of a subpage
<infinisil> tilpner: interesting, i haven't thought about using specialArgs like this
<tilpner> infinisil - It's a little ugly because it's not so easy to make nixos-rebuild pass specialArgs properly, but it's still the second-best option after nix-channel
<tilpner> (AFAICT, of course)
<infinisil> You can just import a nix function from elsewhere I guess, but that's not much nicer
<tilpner> You can't really, without NIX_PATH
<tilpner> You always have to pass a relative or absolute path, so your module breaks either when moving the system config as a whole, or when moving the module inside the system config
<infinisil> Hmm.. maybe it's possible to use config.lib without getting infinite recursion
<nixoswikibot> [[NixOS Modules]] https://nixos.wiki/index.php?diff=2103&oldid=2102&rcid=2123 * Makefu * (+29) add subsection "Advanced Use Cases" aka. things you shouldn't have to bother when you start with NixOS
<tilpner> infinisil - I get "attribute '...' missing" for that, but I may have done it wrong
<tilpner> Oh, it's missing for imports = [ (lib.mod "foo.nix") ];
<tilpner> But infinite recursion for imports = [ (config.lib.mod "foo.nix") ];
<infinisil> Hmm damn
<infinisil> I'm not sure myself how lazy the module system really is
<tilpner> These are arguments it has to evaluate before even pkgs
<tilpner> (And probably lib)
<infinisil> Yeah
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-wiki
jtojnar_ has joined #nixos-wiki
jtojnar has quit [Ping timeout: 252 seconds]
jtojnar_ is now known as jtojnar
orivej has quit [Ping timeout: 256 seconds]
jtojnar_ has joined #nixos-wiki
jtojnar has quit [Ping timeout: 264 seconds]
jtojnar_ is now known as jtojnar
<Mic92> tilpner: it actually become easier with builtins.fetchgit
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-wiki
<Mic92> /go/go 2
jtojnar has quit [Quit: jtojnar]
<tilpner> Mic92 - I don't mind having obscure Nix expressions, but I'd like to keep the command lines as simple and short as possible
<tilpner> Mic92 - And given that Nix 2.0 NIX_PATH dropped (perhaps temporarily) the searching behaviour (NIX_PATH=/foo/bar was valid), I don't really see this "search amongst all modules in these directories" happening
<Mic92> tilpner: I don't know the whole story here.
<tilpner> Oh, edolstra PR'd this
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-wiki
<tilpner> This would become a lot easier if it was possible to set NIX_PATH elements from modules
<tilpner> (And have it take effect immediately, not like nix.nixPath)
<infinisil> Meh
<infinisil> NIX_PATH is like the entry point of nixpkgs, it's one of the few stateful things, don't know if it makes sense to be able to set it like this
jtojnar has joined #nixos-wiki
orivej has joined #nixos-wiki
orivej has quit [Ping timeout: 264 seconds]
jtojnar_ has joined #nixos-wiki
jtojnar has quit [Quit: jtojnar]
jtojnar_ has quit [Remote host closed the connection]
jtojnar has joined #nixos-wiki
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos-wiki
jtojnar has quit [Ping timeout: 264 seconds]
jtojnar has joined #nixos-wiki
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar_ has joined #nixos-wiki
jtojnar_ has quit [Remote host closed the connection]
jtojnar has joined #nixos-wiki
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos-wiki