53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
description = "grey's custom NixOS config";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nh = {
|
|
url = "github:nix-community/nh";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
zen-browser = {
|
|
url = "github:youwen5/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
plasma-manager = {
|
|
url = "github:nix-community/plasma-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
};
|
|
};
|
|
|
|
outputs = {self,nixpkgs,home-manager,plasma-manager,...}@inputs: {
|
|
nixosConfigurations = builtins.listToAttrs (map (name: {
|
|
inherit name;
|
|
value = nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
./hosts/${name}
|
|
home-manager.nixosModules.default {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.grey = ./hosts/${name}/home.nix;
|
|
};
|
|
}
|
|
];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
system = "x86-64-linux";
|
|
};
|
|
};
|
|
}) ["takamaki" "kitagawa" "nixos-vm"]);
|
|
};
|
|
}
|