My flake files which I use to manage my local and remote machines https://git.disroot.org/Zonsopkomst/flake
Go to file
Zonsopkomst 9270714ccf indentation 2023-03-19 16:25:46 -05:00
common fixed waydroid 2023-03-18 21:10:13 -05:00
config hyprland monitor edit 2023-03-18 21:23:39 -05:00
desktop update 2023-03-18 21:17:33 -05:00
display testing 2023-02-12 10:06:56 -06:00
hosts moved packages to hm 2023-03-19 15:48:25 -05:00
reference fix vscodium extenstions 2023-03-19 16:15:10 -05:00
users vscodium fix 2023-03-19 16:04:34 -05: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 update table 2023-02-26 16:53:51 -06:00
flake.lock udpate 2023-03-19 14:18:15 -05:00
flake.nix indentation 2023-03-19 16:25:46 -05: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 Ryzen 5 Work
frija Acer Aspire 3 Laptop 4GB ?? Testing
tyr Intel i5 Desktop 16GB i5 Media
tuisto AMD Ryzen 5 Desktop ??GB Remote
#TODO AMD Ryzen 5 Server ??GB 2200G Test 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