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…
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 machine
Change
. Which
towhich
@ -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 this
Insert 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 this
we 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
important
toimportant:
.@ -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` and
Comma after
if
-clause.@ -12,2 +86,2 @@
clone this repo to `/etc/nixos/` and `nixos-rebuild` that will select
the appropriate machine based on hostname
clone this repository to `/etc/nixos/` and `nixos-rebuild boot` or `nixos-rebuild switch` that will select
Clone
capitalised@ -14,0 +87,4 @@
clone this repository to `/etc/nixos/` and `nixos-rebuild boot` or `nixos-rebuild switch` that will select
the 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 configuration
At best you take a first look at already existing configurations. But here are a few guidelines.
At best, you first take a look at
I 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 the
The
@ -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 of
this 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 of
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 (like
Comma 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 (like
tied to your ip address hostname) put it into the machine directory. If it is not put it into `/nixos/roles/` if it
Comma after
if
-clause@ -17,0 +198,4 @@
network configuration. And service configuration that are too closely interwoven with the rest of that machine (for example
mailserver configuration depends heavily on network settings). It also
contains 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 argument
No comma before
that
@ -17,0 +199,4 @@
mailserver configuration depends heavily on network settings). It also
contains 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 argument
the flake inputs. This allows them to load modules from these flakes. For example nyarlathotep loads the simple-nixos-mailserver
For 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 general
explanation how this works and afterwards we will talk about some scenarios.
If you run `nix flake show` you should get an output similar to this
Comma after
if
-clause@ -7,0 +43,4 @@
And so on...
#### Build
If you have this repository local in your current directory you can just run
Comma 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 build
Comma after
if
-clausesry I can't type you just don't read the commit message
5b74127fce
to96611e47c2
fixed it
96611e47c2
to44036f804a