Migrate to snowfall lib

This commit is contained in:
soraefir
2023-11-04 02:28:27 +01:00
parent a7ef5cf996
commit 99d64c588e
175 changed files with 3870 additions and 4002 deletions

View File

@ -1,53 +0,0 @@
{ inputs, nixpkgs, home-manager, darwin, sops-nix, hyprland, nix-colors, ... }:
{
generate = { type, system, host }:
({"nixos" = nixpkgs.lib.nixosSystem {
system = system;
modules = [
sops-nix.nixosModules.sops
./hosts/${host}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs;
};
home-manager.users.sora = {
imports = [
nix-colors.homeManagerModule
hyprland.homeManagerModules.default
./hosts/${host}/home.nix
];
};
}
];
};
"macos" = darwin.lib.darwinSystem {
system = system;
modules = [
sops-nix.nixosModules.sops
./hosts/${host}
home-manager.darwinModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs;
};
home-manager.users.sora = {
imports = [
nix-colors.homeManagerModule
hyprland.homeManagerModules.default
./hosts/${host}/home.nix
];
};
}
];
};
"home" = home-manager.lib.homeManagerConfiguration {
modules = [
./hosts/${host}/home.nix
];
};
_ = throw "Unsupported system";
}.${type});
}