nix-dotfiles/flake.nix

29 lines
810 B
Nix
Raw Normal View History

2023-11-19 19:31:04 -08:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
2024-04-09 00:00:42 -07:00
2023-11-19 19:31:04 -08:00
hyprland.url = "github:hyprwm/Hyprland";
2024-04-09 00:00:42 -07:00
hyprland.inputs.nixpkgs.follows = "nixpkgs";
2024-04-07 00:33:49 -07:00
sops-nix.url = "github:Mic92/sops-nix";
2024-04-09 00:00:42 -07:00
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
aagl.inputs.nixpkgs.follows = "nixpkgs-stable";
2023-11-19 19:31:04 -08:00
};
2024-04-09 00:00:42 -07:00
outputs = { self, nixpkgs, ... }@inputs:
let
defaultConfig = extraModules: nixpkgs.lib.nixosSystem {
2024-03-17 16:50:13 -07:00
specialArgs = { inherit inputs; };
2023-11-19 19:31:04 -08:00
system = "x86_64-linux";
modules = [
2024-04-07 17:08:48 -07:00
./nixosModules
] ++ extraModules;
2023-11-19 19:31:04 -08:00
};
in
{
nixosConfigurations.onizuka = defaultConfig [ ./systems/onizuka ];
nixosConfigurations.jibril = defaultConfig [ ./systems/jibril ];
2023-11-19 19:31:04 -08:00
};
}