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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
nanuqsaurus.url = "git+https://codeberg.org/randogoth/nanuqsaurus.git";
|
nanuqsaurus = {
|
||||||
nanuqsaurus.inputs.nixpkgs.follows = "nixpkgs";
|
url = "git+https://codeberg.org/randogoth/nanuqsaurus.git";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = inputs@{ nixpkgs, nanuqsaurus, ... }: {
|
||||||
inputs@{ self, nixpkgs, nanuqsaurus, ... }:
|
|
||||||
{
|
|
||||||
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
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; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
nanuqsaurus.nixosModules.nanuqsaurus
|
nanuqsaurus.nixosModules.nanuqsaurus
|
||||||
|
{
|
||||||
# Your local overrides/customizations:
|
|
||||||
({ ... }: {
|
|
||||||
# Optional: change the default admin username ("admin")
|
# Optional: change the default admin username ("admin")
|
||||||
nanuqsaurus.admin.username = "admin";
|
nanuqsaurus.admin.username = "admin";
|
||||||
networking.hostName = "my-host";
|
networking.hostName = "my-host";
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
})
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue