Nix Flakes | 901 Members | |
| 184 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Jan 2022 | ||
| any examples of how to install a package from a flake in an included file (rather than in /etc/nixos/flake.nix itself)? | 20:54:05 | |
| overlays? i haven't delved into that. | 20:54:34 | |
In reply to @edrex:matrix.orgyou add it as input to the main flake file, then you can pass it as argument to the included file, or put it into your pkgs via overlay | 23:06:54 | |
| 31 Jan 2022 | ||
| I've been using Flakes as a way to manage the install of multiple packages into my User account. | 21:26:05 | |
| it wasn't as intuitive to make it work as I expected, but I got it going, and it feels much cleaner than even Home Manager | 21:26:35 | |
| i was wondering if anyone else is doing the same, and what libs, methods, tools, etc they were using? | 21:26:59 | |
| * it wasn't as intuitive to make it work as I expected (there were no clear docs, so I had to work it out) but I got it going, and it feels much cleaner than even Home Manager | 21:27:25 | |
| mexisme: for an opinionated approach you could check out the devos template https://github.com/divnix/devos | 21:30:56 | |
| but it's for the whole system, not just user account | 21:31:12 | |
| sure, i know how to leverage Flakes to install each user's own packages. | 21:33:03 | |
but per-user makes it easier for that single user to manage + update their deps, and easier to use the same flakes.nix on a Mac | 21:33:39 | |
* sure, i know how to leverage Flakes to install each user's own packages from the main /etc/nixos/flake.nix | 21:34:01 | |
* but per-user makes it easier for that single user to manage + update their own deps, and easier to use the same flakes.nix on a Mac | 21:34:14 | |
* but per-user makes it easier for that single user to manage + update their own deps, and easier to use the same flake.nix on a Mac | 21:34:24 | |
| oh, but should've said (first) that a consolidated project like that is very cool, teutat3s ! (sorry for jumping on the other-side, first) | 21:36:35 | |
it looks like a really nice way to organise a system flake.nix for one thing | 21:37:50 | |
| 1 Feb 2022 | ||
In reply to @mexisme:matrix.orgI think that flakes aren't a replacement for home-manager, I use them together for maximum benefit | 02:47:21 | |
| https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix this NixOS module is one of my favourite of all time | 02:47:43 | |
if you pass it inputs, it'll pin <nixpkgs> and flake:nixpkgs to inputs.nixpkgs from your system config | 02:48:43 | |
In reply to @enzime:nixos.dev I thought that would be the case, too, except I found Flakes quite a lot easier to use than Home Manager. Esp. when an update is | 04:42:30 | |
In reply to @enzime:nixos.devyeah, I found that today! i have to read more about it after work, as it might replace a few of my custom functions! | 04:43:37 | |
In reply to @mexisme:matrix.orghttps://github.com/nix-community/home-manager#nix-flakes | 04:43:52 | |
you can use home-manager as a NixOS module | 04:44:00 | |
| it means that whenever you change either config you get a new generation | 04:44:53 | |
| in the system config, yes? for my use-case, keeping per-user package installs out of the system config is useful. | 04:45:05 | |
| and `nix profile` being more-aware of flake metadata is extremely helpful | 04:45:43 | |
| yeah if you're using it as a NixOS module it'd be at the system config level | 04:46:41 | |
In reply to @mexisme:matrix.orgwhat's your use case? | 04:49:00 | |
| allowing users to independently specify their own packages on a single machine. similarly, but for MacOS, where I can't use NixDarwin. | 04:51:47 | |
| * - allowing users to independently specify their own packages on a single machine. - similarly, but for MacOS, where I can't use NixDarwin. | 04:51:59 | |