docs(adopt): use nanuqsaurus as config name
This commit is contained in:
parent
94ae481a76
commit
ef0ac415cd
1 changed files with 16 additions and 5 deletions
|
|
@ -27,20 +27,31 @@ On the target machine:
|
||||||
url = "git+https://codeberg.org/randogoth/nanuqsaurus.git";
|
url = "git+https://codeberg.org/randogoth/nanuqsaurus.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nixos-hardware = {
|
||||||
|
url = "github:NixOS/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, nanuqsaurus, ... }: {
|
outputs = inputs@{ nixpkgs, nanuqsaurus, nixos-hardware, ... }: {
|
||||||
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nanuqsaurus = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# Optional: 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
|
||||||
|
# Optional: pick the right hardware module for your machine.
|
||||||
|
# Find your model at https://github.com/NixOS/nixos-hardware or use one of these generic profiles:
|
||||||
|
#nixos-hardware.nixosModules.common-cpu-intel
|
||||||
|
#nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
#nixos-hardware.nixosModules.common-gpu-intel
|
||||||
|
#nixos-hardware.nixosModules.common-gpu-amd
|
||||||
|
#nixos-hardware.nixosModules.common-gpu-nvidia
|
||||||
nanuqsaurus.nixosModules.nanuqsaurus
|
nanuqsaurus.nixosModules.nanuqsaurus
|
||||||
{
|
{
|
||||||
# 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 = "nanuqsaurus";
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -52,13 +63,13 @@ On the target machine:
|
||||||
## 2) Switch to it
|
## 2) Switch to it
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo nixos-rebuild switch --flake /etc/nixos#my-host
|
sudo nixos-rebuild switch --flake /etc/nixos#nanuqsaurus
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating later
|
## Updating later
|
||||||
|
|
||||||
- If you keep `nanuqsaurus.url` pointing at the repo, you can update with:
|
- If you keep `nanuqsaurus.url` pointing at the repo, you can update with:
|
||||||
- `nix flake update` (in `/etc/nixos`), then
|
- `nix flake update` (in `/etc/nixos`), then
|
||||||
- `sudo nixos-rebuild switch --flake /etc/nixos#my-host`
|
- `sudo nixos-rebuild switch --flake /etc/nixos#nanuqsaurus`
|
||||||
|
|
||||||
- Keep all your machine-specific changes in the wrapper flake (additional modules, packages, services, etc.).
|
- Keep all your machine-specific changes in the wrapper flake (additional modules, packages, services, etc.).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue