2023-11-19 19:31:04 -08:00
|
|
|
{
|
|
|
|
|
inputs = {
|
2024-02-21 14:48:45 -08:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2024-04-09 00:00:42 -07:00
|
|
|
|
2024-04-08 23:19:54 -07:00
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
2024-11-11 21:01:02 -08:00
|
|
|
|
2024-10-12 21:19:23 -07:00
|
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland";
|
2024-04-08 23:19:54 -07:00
|
|
|
hyprland-contrib.url = "github:hyprwm/contrib";
|
2024-11-11 21:01:02 -08:00
|
|
|
|
2024-04-07 00:33:49 -07:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2024-02-16 21:32:55 -08:00
|
|
|
ags.url = "github:Aylur/ags";
|
2024-04-09 00:00:42 -07:00
|
|
|
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
|
2023-11-19 19:31:04 -08:00
|
|
|
};
|
|
|
|
|
|
2024-11-11 21:01:02 -08:00
|
|
|
outputs = { self, home-manager, nixpkgs, ... }@inputs: let
|
2024-04-08 23:19:54 -07:00
|
|
|
system = "x86_64-linux";
|
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2024-11-11 21:01:02 -08:00
|
|
|
|
|
|
|
|
hostConfig = extraModules: nixpkgs.lib.nixosSystem {
|
2024-03-17 16:50:13 -07:00
|
|
|
specialArgs = { inherit inputs; };
|
2024-11-11 21:01:02 -08:00
|
|
|
system = system;
|
2024-02-21 14:48:45 -08:00
|
|
|
modules = [
|
2024-04-07 17:08:48 -07:00
|
|
|
./nixosModules
|
2024-03-22 02:54:25 -07:00
|
|
|
] ++ extraModules;
|
2023-11-19 19:31:04 -08:00
|
|
|
};
|
2024-11-11 21:01:02 -08:00
|
|
|
|
|
|
|
|
userConfig = extraModules: home-manager.lib.homeManagerConfiguration {
|
2024-04-08 23:19:54 -07:00
|
|
|
inherit pkgs;
|
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
|
|
|
modules = [
|
2024-04-14 05:40:02 -07:00
|
|
|
./hmModules
|
|
|
|
|
] ++ extraModules;
|
2023-11-19 19:03:46 -08:00
|
|
|
};
|
2024-03-22 02:54:25 -07:00
|
|
|
in
|
|
|
|
|
{
|
2024-11-11 21:01:02 -08:00
|
|
|
nixosConfigurations.onizuka = hostConfig [ ./hosts/onizuka ];
|
|
|
|
|
homeConfigurations."pan@onizuka" = userConfig [ ./hosts/onizuka/users/pan ];
|
|
|
|
|
|
|
|
|
|
nixosConfigurations.jibril = hostConfig [ ./hosts/jibril ];
|
|
|
|
|
homeConfigurations."pan@jibril" = userConfig [ ./hosts/jibril/users/pan ];
|
2023-11-19 19:31:04 -08:00
|
|
|
};
|
|
|
|
|
}
|