flake: add lix module; set default nix to lix

This commit is contained in:
Bloxx12 2025-05-05 11:05:40 +02:00
commit c11fac7e01
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
2 changed files with 9 additions and 2 deletions

View file

@ -19,7 +19,7 @@
lib.mapAttrs (
system: pkgs: {
inherit
(import ./packages rec {
(import ./packages {
inherit pkgs;
helix = inputs.helix.packages.${system}.default;
})
@ -74,5 +74,10 @@
# Mismatched system dependencies will lead to crashes and other issues.
inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}

View file

@ -12,10 +12,11 @@ in {
imports = [
./documentation.nix # nixos documentation
./nixpkgs.nix # global nixpkgs configuration
inputs.lix-module.nixosModules.default
];
nix = {
package = pkgs.lix;
# package = pkgs.lix;
# fuck channels, no thanks
channel.enable = mkForce false;
@ -98,6 +99,7 @@ in {
"nix-command" # experimental nix commands
"cgroups" # allow nix to execute builds inside cgroups
"repl-flake" # nh os repl needs this on lix
"pipe-operator"
];
# Ensures that the result of Nix expressions is fully determined by