{ inputs, lib, # VARIABLES disk ? null, hostName ? "sus", userName ? "amogus", flakeDir ? null, theme ? "horizon-dark", is ? null, # SYSINFO plfrm ? "x86_64-linux", ver ? "24.05", dev, ... }: { flake = let # OTHER inherit (inputs.nixpkgs.lib) nixosSystem; inherit (inputs.home-manager.lib) homeManagerConfiguration; pkgs = inputs.nixpkgs.legacyPackages.${plfrm}; # NEEDS sec = import ./secrets.nix; x = import ./options.nix { inherit theme inputs pkgs lib ; } // { inherit disk hostName userName flakeDir is plfrm ver dev sec ; }; # ARGS args = { inherit x inputs; }; in { # CONFIGURATION nixosConfigurations.${hostName} = nixosSystem { modules = [ ../modules/nixos ../${hostName}/host ]; specialArgs = args; }; homeConfigurations.${userName} = homeManagerConfiguration { modules = [ ../modules/home ../${hostName}/home ]; extraSpecialArgs = args; inherit pkgs; }; }; }