2024-09-16 22:04:47 +02:00
|
|
|
{
|
|
|
|
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 = {
|
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
|
|
|
|
|
|
|
disko.url = "github:nix-community/disko";
|
2024-09-16 22:04:47 +02:00
|
|
|
};
|
|
|
|
|
2024-09-19 17:44:40 +02:00
|
|
|
outputs =
|
|
|
|
inputs@{ self, nixpkgs, ... }:
|
|
|
|
{
|
|
|
|
# Please replace my-nixos with your hostname
|
|
|
|
nixosConfigurations = {
|
2024-09-16 22:04:47 +02:00
|
|
|
work-ntb = nixpkgs.lib.nixosSystem {
|
2024-09-19 17:44:40 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/work-ntb
|
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-09-19 17:44:40 +02:00
|
|
|
};
|
2024-09-22 21:36:02 +02:00
|
|
|
lenar = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/lenar
|
|
|
|
./hosts/base
|
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
];
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|