Verified Commit 73a9eacf authored by Matthias Adamczyk's avatar Matthias Adamczyk
Browse files

Document the hosts/ folder

parent ca5d9550
# Host configuration
This folder contains the system configuraiton for each host.
## Structure
```
└── hosts/ # Hosts covered by these nixfiles
├── e151/ # Lenovo TinkPad E15 (1)
│ ├── configuration.nix # Host configuration
│ ├── networking.nix # Networking configuration
│ └── hardware-configration.nix # Hardware configuration generated by nixos-generate-config(8)
└── e152/ # Lenovo Thinkpad E15 (2)
├── configuration.nix # Host configuration
├── networking.nix # Networking configuration
└── hardware-configration.nix # Hardware configuration generated by nixos-generate-config(8)
```
## Adding a new host
For a new host $HOSTNAME Copy one of the subfolders to a new subfolder $HOSTNAME and adapt the configuration to your liking. Don't forget to include the generated `hardware-configuration.nix` from [nixos-generate-config(8)](https://www.mankier.com/8/nixos-generate-config)
......@@ -9,8 +9,10 @@
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
......
{ config, pkgs, ... }:
{ pkgs, ... }:
{
networking = {
......
......@@ -9,8 +9,10 @@
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
......
{ config, pkgs, ... }:
{ pkgs, ... }:
{
networking = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment