flake: get rid of flake-parts!

This commit is contained in:
Charlie Root 2024-11-01 14:51:13 +01:00
commit 2d5ee6c621
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
11 changed files with 58 additions and 127 deletions

View file

@ -2,29 +2,19 @@
description = "My NixOS config flake";
outputs = inputs: let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
in
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"];
imports = [
./hosts
./parts
];
flake = {
formatter.x86_64-linux = pkgs.alejandra;
nixosModules = {
shell = import ./modules/shell;
};
};
in {
nixosConfigurations = import ./hosts inputs;
formatter.x86_64-linux = pkgs.alejandra;
devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {};
nixosModules = {
shell = import ./modules/shell;
};
};
inputs = {
# what am I doing to this config help
flake-parts.url = "github:hercules-ci/flake-parts";
# Unstable nixpkgs baby!
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
# Lix, a faster nix fork.
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";