| 30 Sep 2022 |
Minijackson | so, musnix is another repository containing Nix files, which you can track using inputs, this allows your configuration to use a fixed version of that repo, while allowing manual upgrades | 21:11:04 |
Minijackson | you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix"; | 21:11:28 |
Minijackson | the usefulness of the musnix flakes itself comes from its outputs, which you can look at by doing nix flake show github:musnix/musnix | 21:12:15 |
Minijackson | which gives:
github:musnix/musnix/6eb5c1714fbb7622b7270be78243365f9c55c9cb
├───nixosModule: NixOS module
└───nixosModules
└───musnix: NixOS module
| 21:12:36 |
Minijackson | * you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix";, and adding musnix to the arguments of the outputs function. | 21:13:17 |
Minijackson | so you're interested in either musnix.nixosModule and musnix.nixosModules.musnix | 21:13:30 |
Minijackson | (nixosModule was deprecated for nixosModules.default, so I suggest using the second one) | 21:13:53 |
Minijackson | so, in your nixosSystem call, you can add in your modules / imports the expression musnix.nixosModules.musnix | 21:14:27 |
Minijackson | {
description = "...";
inputs.nixpkgs.url = "...";
inputs.musnix.url = "github:musnix/musnix";
outputs = { self, nixpkgs, musnix }: {
nixosConfigurations."myConfig" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
musnix.nixosModules.musnix
# ...
];
};
};
}
| 21:15:59 |
@alejandrosame:matrix.org | Minijackson: Thank you very much for detailing the mechanisms! I'll try this tomorrow again and see what knowledge gaps I still have :) | 21:19:52 |
Minijackson | I agree, we're missing a lot of flakes documentation in the NixOS/nixpkgs manual | 21:20:27 |
Minijackson | or even an in-depth tutorial | 21:20:33 |
Minijackson | (well this is a new/experimental feature) | 21:20:51 |
| 1 Oct 2022 |
| greaka left the room. | 06:18:48 |
@alejandrosame:matrix.org | Turns out I wasn't that far off. It seems I simply was confused by not seeing any update on max-user-freq values. | 13:45:26 |
| 5 Oct 2022 |
| Rosuavio joined the room. | 19:04:32 |
| 6 Oct 2022 |
| @seapat:matrix.org joined the room. | 18:53:53 |
| 15 Oct 2022 |
| Thomas Heartman (he/him) joined the room. | 17:07:55 |