2023-12-17 13:33:15 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
|
|
|
nixpkgs-unstable.url = "nixpkgs/nixpkgs-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-23.11";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, home-manager, ... }:
|
|
|
|
let
|
2024-03-24 18:02:21 +00:00
|
|
|
mkHost = hostname: graphical: {
|
2023-12-17 13:33:15 +00:00
|
|
|
imports = [
|
|
|
|
./hosts/${hostname}/configuration.nix
|
|
|
|
./modules/common
|
|
|
|
(import "${home-manager}/nixos")
|
2024-03-24 18:02:21 +00:00
|
|
|
(if graphical then ./modules/graphical else null)
|
2023-12-17 13:33:15 +00:00
|
|
|
];
|
2024-03-24 18:02:21 +00:00
|
|
|
|
2023-12-17 13:33:15 +00:00
|
|
|
deployment = {
|
|
|
|
targetUser = "root";
|
|
|
|
targetHost = hostname;
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlays = [ ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-24 18:02:21 +00:00
|
|
|
bengal = mkHost "bengal" true;
|
2023-12-17 13:33:15 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|