56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
description = "Alex's NotFiles";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
in {
|
|
nixosConfigurations = {
|
|
|
|
# To add a new machine, duplicate this block and change the name
|
|
whitegrizzly = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/whitegrizzly
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.alex = import ./home/alex;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
oreo = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/oreo
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.alex = import ./home/alex;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|