71 lines
1.9 KiB
Nix
71 lines
1.9 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";
|
|
};
|
|
|
|
globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect";
|
|
|
|
plasma-manager = {
|
|
url = "github:nix-community/plasma-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
};
|
|
|
|
nix4vscode = {
|
|
url = "github:nix-community/nix4vscode";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, globalprotect-openconnect, ... }@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; };
|
|
sharedModules = [ inputs.plasma-manager.homeModules.plasma-manager ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
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; };
|
|
sharedModules = [ inputs.plasma-manager.homeModules.plasma-manager ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|