My flake files which I use to manage my local and remote machines
https://git.disroot.org/Zonsopkomst/flake
common | ||
config | ||
hosts | ||
reference | ||
users | ||
.directory | ||
flake.lock | ||
flake.nix | ||
LICENSE.md | ||
README.md |
My NixOS Configuraton File
This is my NixOS with home-manager config structure using nix flakes
Current Desktop Screenshot
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 |
---|---|---|---|---|---|
nixos | Dell Inspiron | Laptop | 16GB | AMD?? | Work |
frija | Acer Aspire 3 | Laptop | 4GB | ?? | Testing |
How to
- Install NixOS on a Machine. I use the default Gnome installer from xxxxxxxxxxx.
- Copy the
configuration.nix
andhardware-configuration.nix
files from the /etc/nixos directory
#TODO Look into default.nix or a way to have the shared information as part of thecommon
items. - Create a
hosts
directory on git for the new machine #IP