My flake files which I use to manage my local and remote machines https://git.disroot.org/Zonsopkomst/flake
Go to file
Zonsopkomst c5f2416212 switched to gnome 2023-02-19 14:50:22 -06:00
common testing 2023-02-12 10:30:42 -06:00
config config edits 2023-02-19 14:28:08 -06:00
desktop ksshaskpass edit to allow gnome 2023-02-12 10:56:29 -06:00
display testing 2023-02-12 10:06:56 -06:00
hosts config edits 2023-02-19 14:28:08 -06:00
reference cleanup 2023-02-12 13:01:40 -06:00
users config edits 2023-02-19 14:28:08 -06:00
.directory Cleaned and compartmentalized files & hierarchy 2023-01-18 16:53:08 -06:00
LICENSE.md Added 2023-01-31 09:02:24 -06:00
README.md adjusted readme 2023-02-08 14:02:31 -06:00
flake.lock config edits 2023-02-19 14:28:08 -06:00
flake.nix switched to gnome 2023-02-19 14:50:22 -06:00

README.md

My NixOS Configuraton File

This is my NixOS with home-manager config structure using nix flakes

Current Desktop Screenshot

Gnome

Highlights:

  • Multiple NixOS configurations: desktop, laptop, and server (#TODO)

Structure

  • flake.nix: Declare hosts and home configurations
  • hosts: NixOS Configurations using nixos-rebuild --flake .#
  • common: Shared configurations

Machines

Hostname Model Type RAM Processor Main Use
weda Dell Inspiron Laptop 16GB AMD?? Work
frija Acer Aspire 3 Laptop 4GB ?? Testing
tyr Intel i5 Desktop 16GB i5 Media
tuisto AMD Ryzen 5 Desktop ??GB Remote
#TODO RPI4 ARM v8 2GB Broadcom BCM2711, Quad Core Cortex-A72 Testing Server
#TODO AMD Ryzen 5 Server ??GB 2200G Server

How to

Process

  1. See https://github.com/nix-community/home-manager for manual and configuration options
  2. Remember to add unstable channel (in this case) in the terminal:
  3. sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
  4. sudo nix-channel --update
  5. Include "<home-manager/nixos>" in "Imports" section above
  6. Install NixOS on a Machine. I use the default Gnome installer from https://nixos.org/download.html.
  7. Copy the configuration.nix and hardware-configuration.nix files from the /etc/nixos directory
    1. Rename configuration.nix to default.nix and link to the appropriate modules under flake.nix
  8. Create a hosts directory on git for the new machine and either use an existing users or create a new one