{ description = "Your new nix config"; inputs = { # Nixpkgs nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; # Home manager home-manager.url = "github:nix-community/home-manager/release-25.11"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; hyprland.url = "github:hyprwm/Hyprland"; serpantinum.url = "github:ilyamiro/serpantinum"; spicetify-nix.url = "github:Gerg-L/spicetify-nix"; ocnix.url = "github:albertov/opencode-nix"; opencode.url = "github:sst/opencode"; helium-flake.url = "github:oxcl/nix-flake-helium-browser"; helium-flake.inputs.nixpkgs.follows = "nixpkgs"; lanzaboote = { url = "github:nix-community/lanzaboote/v0.4.3"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, home-manager, ocnix, opencode, ... } @ inputs: let mkHost = { hostname, system ? "x86_64-linux", modules ? [], }: nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs; }; modules = [ { networking.hostName = hostname; nixpkgs.overlays = [ ocnix.overlays.default ]; } ocnix.nixosModules.opencode home-manager.nixosModules.home-manager ./nixos/common.nix { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.users.phos = import ./home-manager/home.nix; } ] ++ modules; }; in { # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { phosphophyllite = mkHost { hostname = "phosphophyllite"; modules = [ ./hosts/phosphophyllite ]; }; # Add your laptop here when ready. # laptop-hostname = mkHost { # hostname = "laptop-hostname"; # modules = [ ./hosts/laptop ]; # }; }; # Standalone home-manager configuration entrypoint # Available through 'home-manager --flake .#your-username@your-hostname' homeConfigurations = { # FIXME replace with your username@hostname "phos@phosphophyllite" = home-manager.lib.homeManagerConfiguration { # Home-manager requires 'pkgs' instance pkgs = nixpkgs.legacyPackages.x86_64-linux; # FIXME replace x86_64-linux with your architecture extraSpecialArgs = {inherit inputs;}; # > Our main home-manager configuration file < modules = [./home-manager/home.nix]; }; }; }; }