flakelight | 43 Members | |
| https://github.com/nix-community/flakelight | 12 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Apr 2024 | ||
| Assuming
and that will add some-flake.nixosModules.default to all you nixos systems, assuming you define your nixos systems something like follows:
| 22:21:01 | |
| * Assuming
and that will add some-flake.nixosModules.default to all you nixos systems, assuming you define your nixos systems something like follows:
| 22:21:12 | |
Or as another option, you can add inputs.self.nixosModules.common to each of your system, and import your common modules thereI do that for my config here: https://github.com/accelbread/config-flake/blob/ae52725fd660af550d66750707d649082786e332/nix/nixos/solace/configuration.nix#L5 https://github.com/accelbread/config-flake/blob/ae52725fd660af550d66750707d649082786e332/nix/nixosModules/common.nix#L7 | 22:24:30 | |
| IMO the latter is cleaner with importing common config, but if you want to not have common lines, the former works too. Whichever you like the best | 22:27:49 | |
| lunik1: LMK if that helps; I might be able to give better advice if you have the code available somewhere as well | 22:36:41 | |
| * Assuming
and that will add some-flake.nixosModules.default to all you nixos systems, assuming you define your nixos systems something like follows:
| 22:42:27 | |
* Or as another option, you can add inputs.self.nixosModules.common to each of your system, and import your common modules thereI do that for my config here: https://github.com/accelbread/config-flake/blob/ae52725fd660af550d66750707d649082786e332/nix/nixosModules/common.nix#L7 https://github.com/accelbread/config-flake/blob/ae52725fd660af550d66750707d649082786e332/nix/nixos/solace/configuration.nix#L5 | 22:43:47 | |
| My code is here https://gitlab.com/lunik1/nix-config/-/tree/flakelight | 23:29:28 | |
In reply to@accelbread:matrix.orgI could have sworn when I did this that the nixos config immediately complained about nonfree packages, indicating the config had not been carried over. I will take another look. | 23:31:04 | |
Those options for the common config look good. Is flakelight.importDir documented anywhere? I don't remember seeing it. | 23:32:07 | |
| 7 Apr 2024 | ||
In reply to@lunik1:lunik.oneHere's a mwe of the issue This system configuration fails to build with | 00:02:23 | |
| Yeah importDir is not documented yet; I need to add a section of lib functions. It does the same thing autoimport with nixDir would do | 00:03:48 | |
| Ah yeah, the overlays are carried over currently but not config Hmm Propagating config probably makes sense, yeah Can add that | 00:05:26 | |
| * Ah yeah, the overlays are carried over currently but not nixpkgs config Hmm Propagating config probably makes sense, yeah Can add that | 00:05:49 | |
lunik1: Pushed a change to also propagate the nixpkgs.config option. Tested it with nixpkgs.config.allowUnfreePredicate on my systems | 01:06:54 | |
| https://github.com/nix-community/flakelight/commit/fb530e878f701795fe608f499796860ca303a624 | 01:07:13 | |
| will add the other docs updates later today or tomorrow | 01:08:20 | |
| 10 Apr 2024 | ||
| 15:47:00 | ||
| 17 Apr 2024 | ||
| 16:29:59 | ||
| 28 Apr 2024 | ||
| 10:00:29 | ||
| 29 Apr 2024 | ||
| 15:28:34 | ||
| 1 May 2024 | ||
| 04:01:44 | ||
| hi, how do you make flakelight load the nix/ folder in the same directory as the flake? | 04:02:26 | |
loading ./nix in flake dir is default | 04:02:53 | |
| Is is not working for you? | 04:03:04 | |
| is the directory added to git?? | 04:03:12 | |
| * is the directory added to git? | 04:03:13 | |
| ty for the fast response, I'm finding flakelight to be super neat | 04:03:43 | |
| I'll sure it'll get adopted quick | 04:03:49 | |
| wrt my problem: oh I didn't add it to git | 04:03:59 | |