Initial Commit

This commit is contained in:
2024-10-02 00:54:05 -05:00
commit 46ebfc5cb6
45 changed files with 4120 additions and 0 deletions

51
flake.nix Normal file
View 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 ];
};
};
}