<lordcirth__>
slabity, you can have a second flake that is just for secrets
<slabity>
Since flakes evaluate things purely, how can I include something impure like a file that isn't part of the repo?
<slabity>
I have my NixOS config set up as a flake now. The problem is I use the `passwordFile`, but cannot include the file in the flake's repo for obvious reasons.
2021-02-10
<slabity>
Ugh, nevermind. Apparently I'm doomed to understand my issues immediately after asking
<slabity>
But to be fair I think flakes are still kind of in development
<slabity>
jgart: If my experience is any indicator: No
<slabity>
I understand none of that.
<slabity>
As nice as that probably is, I don't think I have enough skill with Nix to even comprehend whatever the hell is going on in that
<slabity>
Yea
<cole-h>
slabity: Are you trying to get an entry in your NIX_PATH that will let you use your overlays?
<slabity>
Is there no way I can just do `nixpkgs-overlays=${overlays.personal}:${(import mozilla)}`?
<slabity>
I'm still confused on what `(builtins.getFlake (toString ./.)).overlays.foo` will allow me to do. I already have access to my two overlays through `overlays.personal` and `(import mozilla)`.
<slabity>
Then make a PR and send it off if necessary
<slabity>
jgart: Honestly I just intentionally mess up the hash, let Nix tell me the correct one, and then paste that into wherever it needs to go
<clever>
slabity: a function for loading a flake from non-flake code
<slabity>
`builtins.getFlake`?
<slabity>
And I can't do that since it's within a flake and not a file
<slabity>
clever:
<clever>
slabity: there is no real way to turn the expr back into a file, so you need to start with it already in files
<slabity>
So I guess the question is how can I evaluate `nixpkgs.overlays = [ ... ];` as a path to put into `nixpkgs-overlays=${evaluated_path}`
<DigitalKiwi>
slabity: ^
<aleph->
clever: slabity: Thanks. Incidentally found a fun bug with nixops and the deluge service it seems.
<slabity>
@alpeh-: writeTextFile
<slabity>
Considering one of the outputs of a flake is `overlays`, I would expect it should
<slabity>
This entire flakes thing is really starting to frustrate me. It feels like everything just got 10x more complicated and I'm not even getting any benefit
<slabity>
mozilla overlay specifically
<slabity>
But I'm using an external overlay
<slabity>
The problem is that I'm using nix-flakes and I don't think I can access them from within my nixos-modules
<clever>
slabity: it needs to eval to a path, thats best done by having all of your overlays in the form of ./overlays/foo.nix
<slabity>
How can I replace `./overlays` to be the value from the `nixpkgs.overlays` though? Does that even evaluate to a path?
<slabity>
That's interesting...
<clever>
slabity: line 13&17 of the file i just linked
<clever>
slabity: this arranges for a directory of overlays to be the system-wide default, and also (at one time) loads the overlays into nixos
<slabity>
@clever: Well that sucks. Any other options besides manually adding it to /etc/nixpkgs/overlays.nix?
<clever>
slabity: the overlays are only applied to the pkgs passed to nixos modules, and nothing else
<slabity>
Actually, better yet, can anyone explain why setting `nixpkgs.overlays` in my NixOS configuration doesn't provide access to the overlays when I use `nix-shell` or any other nix tool?
<slabity>
I'm trying to use it to set my overlays, but it doesn't seem to be working...
<slabity>
Is anyone here familiar with home-manager's NixOS module?
<slabity>
No problem. Kind of wish it was the default behavior
<DigitalKiwi>
slabity++
<{^_^}>
slabity's karma now has 2 digits!
<slabity>
Just `less`
<slabity>
But that's a problem for a different time.
<slabity>
So that I can scroll with mousewheel and press ctrl-c without it dying
<slabity>
I just wish the journalctl pager acted like my system pager
<slabity>
That will at least prevent the previous boot logs from appearing
<slabity>
Well definitely do `journalctl -b 0` all the time
<DigitalKiwi>
slabity: it's not even useable like how am i supposed to find important messages when there are 100k warnings about broken javascript on every website...
<slabity>
So that I can set `nixpkgs.overlays` from within the NixOS configuration
<slabity>
I have a nix flake that provides a NixOS configuration and an overlay. Is it possible to reference the overlay provided in the flake from within the configuration?
<slabity>
Ignoring the versions, it appears I cannot build nix-plugins with the actual `nixUnstable` package. Neither 3.0 or 2.4
<slabity>
Okay... So I guess my issue specifically is why does this fail: `nix-plugins.override { nix = nixUnstable; }`
<slabity>
All my hate
<manveru>
slabity: so just look at the date part :)
<manveru>
slabity: the version was reduced to 2.4 again recently
<slabity>
`/nix/store/7jmq4igrlp1z4rzsd74rysla182vp11g-nix-2.4pre20201102_550e11f-dev/include/nix/config.hh:7:10: fatal error: nlohmann/json_fwd.hpp: No such file or directory`
<slabity>
But for some reason when I try to include the `nix-plugins` file into my configuration, it tries to build Nix 2.4, which fails with the following:
<slabity>
I have `nix.package = pkgs.nixUnstable` in my configuration, and I get `nix (Nix) 3.0pre20201020_e0ca98c` when I run `nix --version`
<slabity>
`nixUnstable` is version 3.0, correct?
2020-11-02
<slabity>
jbal: I'd recommend looking at the `dunst` service in home-manager and see if you can get info from the systemd unit it creates there
<slabity>
@jbal - Yea, I'm not 100% sure how to handle that. `home-manager` says on the GitHub README that graphical services require `home-manager` to start the xserver for them to work. Not sure if that's related
<slabity>
@jbal - If it's in a nix-config you will need `${dbus}/bin/dbus-launch`
<slabity>
I think so
<slabity>
I think you need to run it with `dbus` to get the environment loaded properly?
<slabity>
Whoops
<slabity>
@jbal
2020-10-30
<slabity>
Can one change the priority of a package at the time you install it? The only result I can find is adding the package to an overlay, which seems like complete overkill if I just want to `nix-env` something
<slabity>
Nevermind. Apparently I can kind of get what I want by setting the priority of home-manager-path
<slabity>
Can anyone explain to me why I can't change the priority of a package installed with home-manager?
<slabity>
Getting `anonymous function at /nix/store/4lfg71fz84xfiqqndl2lnc45pvjsl67i-source/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash'`
<slabity>
Anyone else running into issues when trying to run 'nix eval' on a flake?
2020-08-18
<slabity>
A bit confused on exactly what you are trying to do though
<slabity>
jared-w: I'm not sure what you are referring to... Is it documented somewhere?
<jasom>
slabity: declarative partitioning *could* work; if the effective partition table differs, you repartition. The fact that most filesystems either don't support resizing, or have significant limitations on resizing (and even when both shrinking and growing are supported it's "backup before doing this please")
<slabity>
Orbstheorem: Question is... How many of those pull requests are no longer valid or duplicates?
<slabity>
Let's get that to 3k+
<slabity>
Those are rookie numbers
<fresheyeball>
slabity: oh good call
<slabity>
fresheyeball: Not sure about a switch statement, but if you just need to select an expression from a bunch of different ones, you could use a set or list
<slabity>
I'm not sure I like the sound of that...
<slabity>
"lossy" partitioning?
<srhb>
slabity: Carefully. :)
<slabity>
How would declarative partitioning work...
<slabity>
bqv++ Exactly what I was looking for. Thanks
<slabity>
How can I evaluate a single output of a Nix flake? Like if I have one that simply provides `ouputs = { self, ... }: { simpleOutput = 5 + 5; }`, I'd like to just get the value of `simpleOutput`
<slabity>
wrmilling: Oh, I see. You should be able to use unitConfig.ConditionPathExists
<slabity>
Unless I'm misunderstanding what you are asking
<slabity>
wrmilling: `builtins.pathExists` should return true/false
2020-07-30
<slabity>
🤷♂️
<slabity>
You guys are getting PRs approved?
<slabity>
K900: PR to Github is pretty much the only thing
<makefu>
slabity: {^_^} is trying to be funny again :)
<slabity>
Uhh... I think I broked it
<slabity>
Thanks for sharing your configs Mic92++
<slabity>
Now if I had an flake that provides an overlay that provides its own `hello` package, then there should be a way for me to `nix shell` into that as well, correct?
<slabity>
That would drop me into a shell with the `hello` package from `Nixos/nixpkgs`
<slabity>
Well let me put it this way... Let's say I wanted to run a `nix shell` using a package (hello) from a specific nixpkgs flake (nixpkgs/master), Then I would run `nix shell github:NixOS/nixpkgs#hello`
<slabity>
To load `wine` from this in a simple `nix shell` I need to create a completely new flake and expose it in a `devShell` or something? I can't just use it directly?
<slabity>
I'm trying to understand this more, but that doesn't seem right... I find it hard to believe I can't grab it via something like `nix shell myflake:wine` or some other similar syntax
<slabity>
So just to be clear, I have a very simple flake that produces a single ouput: An 'overlay', but even if I have the flake registered I cannot use that overlay?
<Mic92>
slabity: the flake itself should expose it via apps. Than you can use nix run
<slabity>
I don't get why I would need to write a new flake to use my current one. This doesn't sound like it should be too difficult
<Mic92>
slabity: ideally the flake would expose those packages in the package apps or defaultApp attribute
<slabity>
I have it in my `nix registry list` already. Just trying to load a single package from the overlay it provides
<slabity>
Not sure what the syntax for loading a single package would be though
<slabity>
I just want to do something like `nix-shell -p myflake:wine`
<Mic92>
slabity: how do you load this flake?
<slabity>
Mic92: That cannot be the only way though. I'm not looking to modify the flake itself. Just load a package from it
<Mic92>
slabity: you can describe it in the devShell attribute
<slabity>
Hey guys, I have a Nix flake that provides an 'overlay' and an 'overlays' output. How can I create a nix shell that loads with a package from that overlay?
2020-07-29
<ezemtsov>
slabity I understood that it was correct to use nixos channel instead of nixpkgs and they both are missing the lib.kernel
<slabity>
ezemtsov: Check `nix-channel --list` vs `sudo nix-channel --list` and see if there's a difference
2020-07-28
<slabity>
Am I correct in assuming that NixOps does not support deploying NixOS flakes?
<slabity>
Or is there an alternative way to deploy a NixOS machine remotely as a flake?
<slabity>
Can NixOps deploy NixOS flakes remotely?
<slabity>
I deploy all my machines using NixOps and would like to begin switching their configuration over to using flakes
<slabity>
Does anyone know if NixOps can deploy machines that are configured as flakes?
2020-07-26
<slabity>
Anyone else having issues with Steam running into SSL errors when trying to connect to anything?
<slabity>
afreak: Do you have any channels? What does `nix-channel --list` result in?
<slabity>
afreak: What does `env | grep NIX_PATH` result in?
<slabity>
confus: It feels hacky because 'meta-packages' aren't really a 'thing' in Nix
<slabity>
It's not worth it
<slabity>
jakobrs: Just ignore it and suppress that memory
<slabity>
jakobrs: Sounds like virsh (or something it calls) seems to doing a #badthing and looking for absolute paths
2020-07-09
<slabity>
clever++ thanks
<clever>
slabity: and then `nixops deploy -d networkname` will remember that `-I nixpkgs=/anything` for you
<clever>
slabity: if you `nixops modify -d networkname deployment.nix -I nixpkgs=/anything`, it will get baked into the sqlite state
<infinisil>
slabity: I think passing `-I nixpkgs=/path/to/nixpkgs` should work
<slabity>
Yea, that'd probably work
<slabity>
Anyone know how I can run a NixOps deployment with a local checkout of `nixpkgs`? My deployment command is `nixops deploy -d MyNetwork --include=my-system`
<slabity>
Maybe try AMD?
<slabity>
robodojo: You're gonna be waiting a LONG time for ATI to release a new card
<slabity>
bqv: You had a grudge against wm4 as well?
<slabity>
I can't imagine trying to get those working together
<slabity>
I mean... That's probably easier than 1 nvidia and 1 amd
<slabity>
KarlJoad: Did you decide whether to go the nvidia-proprietary route or the ximerama route?
<slabity>
gchristensen: That should be it. Note I couldn't get any VPN software working with nmtui if you use that
<gchristensen>
slabity: ^
<gchristensen>
teto: thanks! (and thanks for your help the first time with anyconnect's ipsec vpn last year!) slabity: that counts! any special setup I need to do? just add gnome3.networkmanager-openconnect to networking.networkmanager.packages?
<slabity>
gchristensen: I've used OpenConnect with NetworkManager... Does that count?
<emilsp>
slabity: I'm trying to build nixpkgs on amd64 for arm64, so I kind of need to fiddle with buildPerlPackage it seems :/
<slabity>
Assuming you are using perl-cross
<slabity>
emilsp: If you're using `configure` then you should just be able to pass in a `--target=architecture` flag
<slabity>
manveru: Interface names nowadays are dependent on the bus/port/whatever and should be pretty consistent as long as they don't change locations in hardware