flake: get rid of flake-parts!
This commit is contained in:
parent
5d74f31c98
commit
2d5ee6c621
11 changed files with 58 additions and 127 deletions
24
flake.nix
24
flake.nix
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue