nixos-configs/flake.nix
2025-07-02 17:25:32 -04:00

60 lines
1.3 KiB
Nix

{
description = "Fabric's flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim/main";
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
inputs.nixpkgs.follows = "nixpkgs";
};
openapi-tui = {
url = "github:zaghaghi/openapi-tui";
};
};
outputs = {
self,
nixpkgs,
home-manager,
nixvim,
openapi-tui,
...
}: let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
nixosConfigurations = {
tatara = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/tatara/default.nix
];
};
zion = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/zion/default.nix
];
};
};
homeConfigurations.fabric = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit nixvim openapi-tui; # deleted hyprpanel
};
modules = [
./home/fabric/default.nix
nixvim.homeManagerModules.nixvim
# hyprpanel.homeManagerModules.hyprpanel
];
};
};
}