From 987aee1c5b61a5a4c92f8ee843361d4df6d144a9 Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 4 Feb 2026 21:40:50 +0200 Subject: [PATCH] docs(adopt): clarify inputs and admin username --- docs/adopt.md | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/docs/adopt.md b/docs/adopt.md index e138fc2..e6b487a 100644 --- a/docs/adopt.md +++ b/docs/adopt.md @@ -23,31 +23,29 @@ On the target machine: inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; - nanuqsaurus.url = "git+https://codeberg.org/randogoth/nanuqsaurus.git"; - nanuqsaurus.inputs.nixpkgs.follows = "nixpkgs"; + nanuqsaurus = { + url = "git+https://codeberg.org/randogoth/nanuqsaurus.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = - inputs@{ self, nixpkgs, nanuqsaurus, ... }: - { - nixosConfigurations.my-host = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - # Only needed if your local modules require access to flake inputs. - specialArgs = { inherit inputs; }; - modules = [ - ./hardware-configuration.nix - nanuqsaurus.nixosModules.nanuqsaurus - - # Your local overrides/customizations: - ({ ... }: { - # Optional: change the default admin username ("admin") - nanuqsaurus.admin.username = "admin"; - networking.hostName = "my-host"; - system.stateVersion = "25.11"; - }) - ]; - }; + outputs = inputs@{ nixpkgs, nanuqsaurus, ... }: { + nixosConfigurations.my-host = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + # Optional: only needed if your local modules require access to flake inputs. + specialArgs = { inherit inputs; }; + modules = [ + ./hardware-configuration.nix + nanuqsaurus.nixosModules.nanuqsaurus + { + # Optional: change the default admin username ("admin") + nanuqsaurus.admin.username = "admin"; + networking.hostName = "my-host"; + system.stateVersion = "25.11"; + } + ]; }; + }; } ```