55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
description = "NixOS configuration with flakes";
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
# xdg-terminal-exec = {
|
|
# url = "path:/etc/nixos/flakes/xdg-terminal-exec";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
# };
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# nixvim = {
|
|
# url = "github:nix-community/nixvim";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
# };
|
|
|
|
# nur.url = "github:nix-community/NUR";
|
|
};
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
}:
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
nixosConfigurations =
|
|
let
|
|
hostnameToConfig = hostname: {
|
|
name = hostname;
|
|
value = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./hosts/${hostname}/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
# nur.nixosModules.nur
|
|
];
|
|
};
|
|
};
|
|
in
|
|
builtins.listToAttrs (
|
|
builtins.map hostnameToConfig [
|
|
"randolph"
|
|
"de-lacadie"
|
|
]
|
|
);
|
|
};
|
|
}
|