2024-09-16 22:04:47 +02:00
|
|
|
{
|
|
|
|
description = "My system flake";
|
|
|
|
|
|
|
|
inputs = {
|
2024-11-04 23:19:33 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-09-16 22:04:47 +02:00
|
|
|
|
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
|
|
|
|
|
|
home-manager = {
|
2024-09-19 17:44:40 +02:00
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-16 22:04:47 +02:00
|
|
|
};
|
2024-09-22 21:36:02 +02:00
|
|
|
|
2024-10-23 08:35:40 +02:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-18 15:46:07 +02:00
|
|
|
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-09-16 22:04:47 +02:00
|
|
|
};
|
|
|
|
|
2024-09-19 17:44:40 +02:00
|
|
|
outputs =
|
|
|
|
inputs@{ self, nixpkgs, ... }:
|
2024-10-02 21:32:58 +02:00
|
|
|
let
|
2024-10-13 20:45:42 +02:00
|
|
|
hosts = {
|
|
|
|
"work-ntb" = "x86_64-linux";
|
|
|
|
"lenar" = "x86_64-linux";
|
|
|
|
};
|
2024-10-03 14:18:47 +02:00
|
|
|
in
|
|
|
|
{
|
2024-09-19 17:44:40 +02:00
|
|
|
# Please replace my-nixos with your hostname
|
2024-10-13 20:45:42 +02:00
|
|
|
nixosConfigurations = nixpkgs.lib.genAttrs (builtins.attrNames hosts) (
|
2024-10-03 14:18:47 +02:00
|
|
|
host:
|
2024-10-13 20:45:42 +02:00
|
|
|
let
|
|
|
|
arch = hosts.${host};
|
|
|
|
in
|
2024-10-03 14:18:47 +02:00
|
|
|
nixpkgs.lib.nixosSystem {
|
2024-10-13 20:45:42 +02:00
|
|
|
system = arch;
|
2024-09-19 17:44:40 +02:00
|
|
|
modules = [
|
2024-11-11 16:39:11 +01:00
|
|
|
./nixosModules
|
2024-10-02 21:32:58 +02:00
|
|
|
./hosts/${host}
|
2024-09-20 23:15:30 +02:00
|
|
|
./hosts/base
|
2024-09-19 17:44:40 +02:00
|
|
|
];
|
2024-09-20 23:44:27 +02:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-10-02 21:32:58 +02:00
|
|
|
}
|
|
|
|
);
|
2024-09-19 17:44:40 +02:00
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
2024-09-16 22:04:47 +02:00
|
|
|
};
|
|
|
|
}
|