docs(adopt): clarify inputs and admin username
This commit is contained in:
parent
37b238d34b
commit
987aee1c5b
1 changed files with 20 additions and 22 deletions
|
|
@ -23,28 +23,26 @@ 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, ... }:
|
||||
{
|
||||
outputs = inputs@{ nixpkgs, nanuqsaurus, ... }: {
|
||||
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
# Only needed if your local modules require access to flake inputs.
|
||||
# Optional: 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";
|
||||
})
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue