refactor: flake dir -> outputs/sys -> nixos

This commit is contained in:
ooks-io 2024-06-08 23:06:08 +12:00
parent 3615bb010f
commit a6d5e892a1
73 changed files with 9 additions and 2 deletions

60
outputs/nixos.nix Normal file
View file

@ -0,0 +1,60 @@
{ inputs, self, ... }:
let
inherit (inputs.nixpkgs.lib) nixosSystem;
hm = inputs.home-manager.nixosModules.home-manager;
sys = "${self}/sys";
hosts = "${self}/hosts";
base = "${sys}/modules/base";
roles = "${sys}/modules/roles";
gaming = "${roles}/gaming";
workstation = "${roles}/workstation";
media-server = "${roles}/media-server";
specialArgs = {inherit inputs self;};
in
{
flake.nixosConfigurations = {
ooksdesk = nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
"${hosts}/ooksdesk"
hm
base
gaming
workstation
];
};
ookst480s = nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
"${hosts}/ookst480s"
hm
base
workstation
];
};
ooksmedia = nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
"${hosts}/ooksmedia"
hm
base
gaming
workstation
media-server
];
};
};
}