started new config

This commit is contained in:
2025-12-28 14:48:30 +09:00
commit a743f2c943
17 changed files with 661 additions and 0 deletions

30
hosts/default.nix Normal file
View File

@@ -0,0 +1,30 @@
{ self, nixpkgs, ... }:
let
inherit (self) inputs;
common-intel = inputs.nixos-hardware.nixosModules.common-cpu-intel;
framework16 = inputs.nixos-hardware.nixosModules.framework-16-7040-amd;
# mkHost - String -> Boolean -> Attr -> Attr - Create nixos system attributes
# @param name - String - Name of the system
# @param isDesktop - Boolean - If set true, adds xlibre overlays to modules
# @param machine - Attr - Attribute from nixos-hardware nixos Module for setting machine's preset
mkHost = name: isDesktop: machine:
nixpkgs.lib.nixosSystem {
modules = [
./${name}
../overlays
machine
] ++ builtins.attrValues self.nixosModules ++ (if isDesktop then [
inputs.xlibre-overlay.nixosModules.overlay-xlibre-xserver
inputs.xlibre-overlay.nixosModules.overlay-all-xlibre-drivers
] else []);
specialArgs = {
inherit inputs;
};
};
in
{
"virtual-bird" = mkHost "virtual-bird" true common-intel;
}