Initial Commit
This commit is contained in:
51
flake.nix
Normal file
51
flake.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
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 = "path:/home/nathan/.nixos/home";
|
||||
|
||||
root.url = "path:/root/.nixos";
|
||||
|
||||
system.url = "path:/home/nathan/.nixos/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.nathan.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 ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user