This repository manages NixOS and Home Manager through a single flake.
Current naming:
- user:
javier - host:
poremski - fqdn:
poremski.home.arpa
Main host target:
sudo nixos-rebuild switch --flake ~/.dotfiles#poremskiCurrent structure:
lib/hosts.nix: host metadata used to generate flake outputsprofiles/base.nix: common profile for most machinesprofiles/desktop.nix: desktop-oriented profile layered on top ofbasehome/javier/common.nix: shared Home Manager config for the userhome/javier/poremski.nix: host-specific Home Manager configmodules/apps: desktop applications shared across hosts, such as Firefoxmodules/cli: CLI tools and terminal programs shared across hostsmodules/security: shared security-related tooling such as GPG agent integrationmodules/shell: shell configuration shared across hostsmodules/editors: editor configuration shared across hostsmodules/nixos/base.nix: shared NixOS base that wires user, profiles and Home Manager togethermodules/nixos/system.nix: NixOS-wide defaults such as Nix settings and core packagesmodules/nixos/locale.nix: timezone, locale and console keymapmodules/nixos/networking.nix: baseline networking and SSH settingsmodules/nixos/audio.nix: PipeWire and related audio servicesmodules/nixos/laptop.nix: laptop-oriented services such as power, fwupd, bluetooth and thunderboltmodules/nixos/printing.nix: CUPS, mDNS discovery and printer driversmodules/nixos/desktop/plasma.nix: Plasma desktop, SDDM and keyboard layouthosts/poremski/default.nix: NixOS host config forporemskihosts/poremski/hardware-configuration.nix: host-specific boot, disk and filesystem layout
Available flake targets:
sudo nixos-rebuild switch --flake ~/.dotfiles#poremski
home-manager switch --flake ~/.dotfiles#javier-poremskiTo add another host later:
- Add a new entry in
lib/hosts.nix - Create
home/<user>/<host>.nix - Create
hosts/<host>/default.nixfor that machine's NixOS configuration
Profiles let multiple hosts share the same role without duplicating imports. The shared NixOS base does the same for system-level Home Manager wiring.