{ description = "My Nomarchy machine"; inputs = { # Pin Nomarchy; nixpkgs and home-manager follow whatever it ships. nomarchy.url = "github:YOUR-USER/nomarchy"; # <- point at the distro repo nixpkgs.follows = "nomarchy/nixpkgs"; home-manager.follows = "nomarchy/home-manager"; }; outputs = { self, nomarchy, nixpkgs, home-manager, ... }: let system = "x86_64-linux"; username = "me"; # <- your login name pkgs = import nixpkgs { inherit system; overlays = [ nomarchy.overlays.default ]; }; in { # System layer — rebuilt rarely: # sudo nixos-rebuild switch --flake .#default nixosConfigurations.default = nixpkgs.lib.nixosSystem { inherit system; modules = [ nomarchy.nixosModules.nomarchy # the distro ./hardware-configuration.nix # from `nixos-generate-config` ./system.nix # your machine ]; }; # Desktop layer — rebuilt on every theme change, no sudo: # home-manager switch --flake .#me # (`nomarchy-theme-sync apply ` runs this for you.) homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ nomarchy.homeModules.nomarchy ./home.nix { # Your theme state — written by nomarchy-theme-sync, baked # in on every switch. Keep it git-tracked. nomarchy.stateFile = ./theme-state.json; home = { inherit username; homeDirectory = "/home/${username}"; }; } ]; }; }; }