nerf/READMETypo #8
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Fachschaft/nixConfig!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nerf/nixConfig:nerf/READMETypo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I cherry picked the documentation from the nyarlathotep branch and did some minor polishing.
Please read it and tell me what I should improve.
Many interesting things in here. I miss the bit how to bootstrap a Nix VM from Dom0.
That is changing right now, (as I change disklayout of things) will add that as soon as I got the process itself going
Added the requested information, please review
So far, I have not tried to actually use this documentation to build a machine, but it looks reasonable.
@ -4,0 +26,4 @@└───packages└───x86_64-linux```we can see there is an output called `nixosConfigurations.nyarlathotep`. Which contains the configuration of the machineChange
. Whichtowhich@ -10,0 +57,4 @@```$ nix copy -s --to <however you setup your ssh stuff> .#nixosConfigurations.<name>.config.system.build.toplevel```This will evaluate the flake again to get the store path of the given derivation. If we want to avoid thisInsert Comma after
if-clause (Grammarly-Explanation).@ -10,0 +60,4 @@This will evaluate the flake again to get the store path of the given derivation. If we want to avoid thiswe might supply the corresponding store path directly.The `-s` is important it makes the target machine substitute all derivations it can (by default from chache.nixos.org).Change
importanttoimportant:.@ -10,0 +79,4 @@is exactly the same it was on your machine.If you have a `nixos-rebuild` available on your system it can automatize these things with the `--flake` andComma after
if-clause.@ -12,2 +86,2 @@clone this repo to `/etc/nixos/` and `nixos-rebuild` that will selectthe appropriate machine based on hostnameclone this repository to `/etc/nixos/` and `nixos-rebuild boot` or `nixos-rebuild switch` that will selectClonecapitalised@ -14,0 +87,4 @@clone this repository to `/etc/nixos/` and `nixos-rebuild boot` or `nixos-rebuild switch` that will selectthe appropriate machine based on hostname.If the hostname is not correct, or you don't want to clone this flake you can also use the `--flake` parameter.Comma after
if-clause@ -15,2 +141,3 @@### sops## How to write a new machine configurationAt best you take a first look at already existing configurations. But here are a few guidelines.At best, you first take a look atI not only inserted the comma but also reordered the words. Any comments on that?
@ -17,0 +163,4 @@system.stateVersion = "<state version at time of install>";}```the import of `../../roles` loads all the nice default setup that all these machines have in common. There theThe@ -17,0 +171,4 @@is already taken care of by `../../roles`.As of moment of writing `network.nix` should contain ip, nameserver and default gateway setup. As parts ofthis is constant across all systems this will undergo refactor soon.and will@ -17,0 +173,4 @@As of moment of writing `network.nix` should contain ip, nameserver and default gateway setup. As parts ofthis is constant across all systems this will undergo refactor soon.I would recommend to split your configuration into small files you import. If this is something machine specific (likeComma after
if-clause@ -17,0 +174,4 @@this is constant across all systems this will undergo refactor soon.I would recommend to split your configuration into small files you import. If this is something machine specific (liketied to your ip address hostname) put it into the machine directory. If it is not put it into `/nixos/roles/` if itComma after
if-clause@ -17,0 +198,4 @@network configuration. And service configuration that are too closely interwoven with the rest of that machine (for examplemailserver configuration depends heavily on network settings). It alsocontains the root configuration for that machine called `configuration.nix`. This file usually only includes other modules.These `configuration.nix` files are almost usual nix configurations. The only difference is, that they take as an extra argumentNo comma before
that@ -17,0 +199,4 @@mailserver configuration depends heavily on network settings). It alsocontains the root configuration for that machine called `configuration.nix`. This file usually only includes other modules.These `configuration.nix` files are almost usual nix configurations. The only difference is, that they take as an extra argumentthe flake inputs. This allows them to load modules from these flakes. For example nyarlathotep loads the simple-nixos-mailserverFor example,That works (that way I set up nyarla). But right now only I have access to the nixos machine (this is true for all machines
as long as people don't get in pull requests for
admins.nix) and its setup is messy.But there someone should dump some work into. (Isn't probably too much, it is just copy nyarla, disable the mail stuff. (very easy)
change the hardware and network config, and find out which packages are needed for the install and filesystem utils.
New commits pushed, approval review dismissed automatically according to repository settings
Found two more commas.
@ -4,0 +6,4 @@most appropriate depends on the context and scenario. So first there will be a generalexplanation how this works and afterwards we will talk about some scenarios.If you run `nix flake show` you should get an output similar to thisComma after
if-clause@ -7,0 +43,4 @@And so on...#### BuildIf you have this repository local in your current directory you can just runComma after
if-clause@ -14,0 +134,4 @@nixos-install --flake 'git+https://gitea.mathebau.de/Fachschaft/nixConfig?ref=<branchname>#<name>'```where `<branchname>` is the branch you install from and `<name>` is the name of the configuration you build.If the build system is already in the nix store this will start the installation, else it will first attempt to buildComma after
if-clausesry I can't type you just don't read the commit message
5b74127fceto96611e47c2fixed it
96611e47c2to44036f804a