49 lines
953 B
Nix
49 lines
953 B
Nix
{
|
|
description = "Build Entire System";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nathan.url = "./home";
|
|
|
|
system.url = "./system";
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
in {
|
|
inputs.home-manager.useGlobalPkgs = true;
|
|
|
|
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
inputs.system.nixosModule
|
|
inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
|
|
};
|
|
|
|
homeConfigurations."nathan" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
extraSpecialArgs = { inherit inputs; };
|
|
|
|
modules = [ inputs.nathan.homeManagerModule ];
|
|
};
|
|
|
|
};
|
|
|
|
|
|
}
|