nixos/flake.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2026-03-28 11:52:19 +00:00
{
description = "FredOS NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
2026-03-28 12:09:08 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2026-03-28 11:52:19 +00:00
};
2026-03-28 15:57:10 +00:00
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
2026-03-28 11:52:19 +00:00
};
2026-03-28 15:07:05 +00:00
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
helium = {
url = "github:schembriaiden/helium-browser-nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
2026-03-28 11:52:19 +00:00
};
outputs = { self, nixpkgs, home-manager, zen-browser, nix-cachyos-kernel, helium, ... } @ inputs:
2026-03-28 11:52:19 +00:00
let
system = "x86_64-linux";
mkHost = hostname: nixpkgs.lib.nixosSystem {
inherit system;
2026-03-28 12:09:08 +00:00
specialArgs = { inherit inputs; };
2026-03-28 11:52:19 +00:00
modules = [
2026-03-28 12:09:08 +00:00
./hosts/${hostname}.nix
2026-03-28 12:36:10 +00:00
./hosts/hardware/${hostname}.nix
2026-03-28 12:09:08 +00:00
./common.nix
2026-03-28 12:29:41 +00:00
home-manager.nixosModules.home-manager
2026-03-28 11:52:19 +00:00
];
};
in {
nixosConfigurations = {
2026-03-28 12:09:08 +00:00
FredOS-Gaming = mkHost "FredOS-Gaming";
FredOS-Mediaserver = mkHost "FredOS-Mediaserver";
FredOS-Macbook = mkHost "FredOS-Macbook";
2026-03-28 11:52:19 +00:00
};
};
2026-04-05 11:20:36 +01:00
}