{ description = "yukkop's nix utilities"; inputs = { nixpkgs-25-05.url = "github:NixOS/nixpkgs/nixos-25.05"; rust-overlay = { url = "github:oxalica/rust-overlay"; inputs = { nixpkgs.follows = "nixpkgs-25-05"; }; }; deploy-rs = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; hyprland = { url = "github:hyprwm/Hyprland"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; nixvim = { url = "github:nix-community/nixvim/nixos-25.05"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; impermanence = { url = "github:nix-community/impermanence"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; home-manager = { url = "github:nix-community/home-manager/release-25.05"; inputs.nixpkgs.follows = "nixpkgs-25-05"; }; }; outputs = { self, nixpkgs-25-05, rust-overlay, ... }@inputs: let flake = ./.; nixpkgs = nixpkgs-25-05; overlays = [ self.overlays.default ]; self-lib = import ./lib { inherit flake self inputs nixpkgs; }; in self-lib.forAllSystemsWithPkgs ([(import rust-overlay)] ++ overlays) ({ system, pkgs, }: { packages.${system} = import ./package { inherit system pkgs self; }; legacyPackages.${system} = import nixpkgs { inherit system overlays; }; devShells.${system} = { c = import ./devshell/c.nix { inherit self system pkgs; }; postgres-c = import ./devshell/postgres-c.nix { inherit self system pkgs; }; pure-c = import ./devshell/pure-c.nix { inherit self system pkgs; }; default = import ./devshell/default.nix { inherit self system pkgs; }; rust = import ./devshell/rust.nix { inherit self system pkgs; }; haskell = import ./devshell/haskell.nix { inherit self system pkgs; }; }; nixosConfigurations = { "devvm-manual|${system}" = import ./nixos/system/devvm-manual/default.nix { inherit flake self inputs system; }; "devvm-hemar|${system}" = import ./nixos/system/devvm-hemar/default.nix { inherit flake self inputs system; }; }; }) // { lib = self-lib; overlays.default = import ./overlay { inherit flake self inputs nixpkgs; }; nixosModules = import ./nixos/module { inherit flake self inputs nixpkgs; }; templates = import ./template { inherit flake self inputs nixpkgs; }; }; }