This commit is contained in:
xunuwu 2024-02-07 19:05:44 +01:00
commit 498f3050d5
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
145 changed files with 2964 additions and 0 deletions

41
hosts/default.nix Normal file
View file

@ -0,0 +1,41 @@
{
self,
inputs,
homeImports,
...
}: {
flake.nixosConfigurations = let
inherit (inputs.nixpkgs.lib) nixosSystem;
mod = "${self}/system";
# get the basic config to build on top of
inherit (import "${self}/system") desktop laptop;
# get these into the module system
specialArgs = {inherit inputs self;};
in {
nixdesk = nixosSystem {
inherit specialArgs;
modules =
desktop
++ [
./nixdesk
"${mod}/programs/gamemode.nix"
"${self}/secrets"
{
home-manager = {
users.xun.imports = homeImports."xun@nixdesk";
extraSpecialArgs = specialArgs;
};
}
];
};
hopper = nixosSystem {
inherit specialArgs;
modules = [
./core
./core/boot.nix
];
};
};
}