| 29 Jan 2026 |
Sofie 🏳️⚧️ (she/her) | How do I use config inside home manager which is inside nixos? | 10:18:59 |
neobrain | Running off nixpks without a local clone is a bit awkward with that though, isn't it? | 10:20:12 |
Sofie 🏳️⚧️ (she/her) | I get like
error: The option home-manager.users.sofie.catppuccin' does not exist. Definition values: In /nix/store/2d7lnrfk6w9lqfmlirbl3ga9y3rp8k2x-source/modules/home/desktop/gnome/catppuccin/qt":
| 10:20:48 |
Sofie 🏳️⚧️ (she/her) | Even when it's defined | 10:20:59 |
Sofie 🏳️⚧️ (she/her) | But this works with a different host? | 10:21:19 |
Sofie 🏳️⚧️ (she/her) | Maybe because it has already deployed it before but idk | 10:21:32 |
aloisw | nix run -f '<nixpkgs>'? | 10:27:17 |
KFears (they/them) | Use osConfig instead of config | 10:42:21 |
KFears (they/them) | If you want to access NixOS config from inside of HM scope | 10:42:37 |
Sofie 🏳️⚧️ (she/her) | thanks | 10:49:05 |
neobrain | oh right, I forgot that's a thing if you use channels | 11:04:41 |
delroth | not necessarily channels (which are pretty terrible), my nixos machines are configured to have the nixpkgs they're built from symlinked at /etc/nixpkgs and a nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ]; | 12:27:23 |
niko ⚡️ | I personally go through flake registry and inside registry pin nixpkgs to specific revision but yeah the symlinking approach makes you not reliant on flakes which some may consider desirable | 12:34:05 |
Coca | Would it be fine to have to "sync" any edits to the source of truth as a separate action from evaluating the sources? The nice thing with flakes is that they can reflect the changes in flakes.nix without you needing to explicitly tell it to do so as the commands are built to handle it, and I'm not sure if not having that ability would make this worth it. | 13:48:34 |
neobrain | TIL | 14:56:55 |
neobrain | Am I wrong to assume that using the nix command CLI without flakes is rather niche and kind of an afterthought? Maybe I'm just not used to it, but it seems like you really have to go out of your way (in a non-obvious manner) to use it like that | 14:59:01 |
Coca | https://piegames.de/dumps/pinning-nixos-with-npins-revisited/ :v | 14:59:50 |
delroth | it is niche and an afterthought, the installables syntax in the new nix3 CLI is very tied to flakes, even though you could theoretically split them | 15:00:33 |
delroth | this channel has an over-representation of people that attempt not to use flakes, for various individual reasons | 15:00:58 |
delroth | (over-representation compared to the average, not in absolute terms :p) | 15:01:19 |
lillecarl | nix eval --file . attr
nix build --file . attr
nix repl --file . attr I used to use flakes, I use these commands just about all the time. I never "learned" the "old" ones | 15:03:21 |
neobrain | I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on this or is it anecdotal? | 15:03:25 |
neobrain | * I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on how many people use flakes or is it anecdotal? | 15:03:50 |
neobrain | * I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on how many people use flakes (vs not) or is it anecdotal? | 15:03:56 |
delroth | detsys has published data about flake.nix presence in new github repos which shows overwhelming usage | 15:04:13 |
delroth | a lot of mental gymnastics has been done around this because detsys is a biased actor and their methodology isn't perfect | 15:04:41 |
lillecarl | I don't doubt it's true though, I'm happy any time i see someone who didn't buy into the flake hypetrain. | 15:06:25 |
neobrain | hmm. it's slightly more awkward than nix eval .#attr, but I guess still better than nix-env -lettersoup attr | 15:06:28 |
delroth | https://discourse.nixos.org/t/a-call-for-the-nix-team-to-present-a-unified-front-on-the-outcome-and-strategy-around-nix-flakes/54959?u=delroth from 1.5 years ago (and there isn't a big reason to think the trend would have changed) | 15:06:42 |
Coca | (did they really have to use this color scheme? I can barely see flakes-and-legacy here) | 15:08:26 |