img | ||
other-config | ||
.gitignore | ||
configuration.nix | ||
flake.lock | ||
flake.nix | ||
home.nix | ||
host1.nix | ||
ireneco.nix | ||
misha.nix | ||
ml1.nix | ||
README.org |
Intro
-
This set-up closely follows the tutorial by Chris McDonough.
- It's a work in progress. Still very much learning about Nix and NixOS.
Emacs set-up
- This set-up depends heavily on the amazing work of Daniel Nicolai.
Notes for self
Nextcloud (untested)
- Sync "nixos" Nextcloud folder
sudo nixos-rebuild switch
-
Add ssh keys to git.pub.solar to be able to push changes
ssh-keygen -t ecdsa -b 521
git.pub.solar
-
Create ssh keys:
ssh-keygen -t ecdsa -b 521
- Log in: https://git.pub.solar/misha/nixos-multihost
- Add and verify keys
- Clone repo
If necessary: add new host
- Rename newly created hardware-configuration with name of new host (e.g. ml1.nix) and add to new nixos folder.
- Add the imports of configuration.nix and the users for ml1 to ml1.nix.
imports =
[
./misha.nix #<- this
./configuration.nix #<- and this
(modulesPath + "/installer/scan/not-detected.nix") #<- not this
];
- Copy the bootlader lines up to and including networking.hostName from the newly created configuration.nix to the ml1.nix
#----------------
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices."luks-75fbd436-3b4f-4912-b852-0f7be90995a9".device = "/dev/disk/by-uuid/75fbd436-3b4f-4912-b852-0f7be90995a9";
networking.hostName = "ml1"; # Define your hostname.
#----------------
- Add the new host to flake.nix.
ml1 = nixpkgs.lib.nixosSystem {
specialArgs = specialArgs;
system = system;
modules = shared-modules ++ [ ./ml1.nix];