37 lines
931 B
Nix
37 lines
931 B
Nix
{
|
|
description = "My system flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ self, nixpkgs, ... }:
|
|
let
|
|
hosts = ["work-ntb" "lenar"];
|
|
in {
|
|
# Please replace my-nixos with your hostname
|
|
nixosConfigurations = nixpkgs.lib.genAttrs hosts (host: nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/${host}
|
|
./hosts/base
|
|
];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
}
|
|
);
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
|
};
|
|
}
|