Skip to content

Poremski/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix configuration

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#poremski

Current structure:

  • lib/hosts.nix: host metadata used to generate flake outputs
  • profiles/base.nix: common profile for most machines
  • profiles/desktop.nix: desktop-oriented profile layered on top of base
  • home/javier/common.nix: shared Home Manager config for the user
  • home/javier/poremski.nix: host-specific Home Manager config
  • modules/apps: desktop applications shared across hosts, such as Firefox
  • modules/cli: CLI tools and terminal programs shared across hosts
  • modules/security: shared security-related tooling such as GPG agent integration
  • modules/shell: shell configuration shared across hosts
  • modules/editors: editor configuration shared across hosts
  • modules/nixos/base.nix: shared NixOS base that wires user, profiles and Home Manager together
  • modules/nixos/system.nix: NixOS-wide defaults such as Nix settings and core packages
  • modules/nixos/locale.nix: timezone, locale and console keymap
  • modules/nixos/networking.nix: baseline networking and SSH settings
  • modules/nixos/audio.nix: PipeWire and related audio services
  • modules/nixos/laptop.nix: laptop-oriented services such as power, fwupd, bluetooth and thunderbolt
  • modules/nixos/printing.nix: CUPS, mDNS discovery and printer drivers
  • modules/nixos/desktop/plasma.nix: Plasma desktop, SDDM and keyboard layout
  • hosts/poremski/default.nix: NixOS host config for poremski
  • hosts/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-poremski

To add another host later:

  1. Add a new entry in lib/hosts.nix
  2. Create home/<user>/<host>.nix
  3. Create hosts/<host>/default.nix for 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.

About

My NixOS dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors