Skip to content

breitnw/nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

breitnw's nixos config

This repo contains my configuration for NixOS on Asahi Linux. It's obviously meant for my personal use, but there might useful nuggets here and there if you want to reference it in your own config :)

structure and design

I use a flake to manage my NixOS and home-manager configurations. Home-manager handles installation and configuration of pretty much all the apps available to the user, while NixOS handles hardware-specific configuration. My general rule of thumb is that if it shouldn't be on every computer I deploy my config to, it shouldn't be configured with home-manager.

To keep everything organized (especially in home-manager) I've settled on a few design patterns worth noting:

  • All options that I define are within the modules or utils attrsets. In general, an option should go on modules if it directly affects the home-manager configuration, and utils if it supplies a utility for other modules.
  • For modules that define a lot of options, a file named options.nix should be created to handle these options' declaration and use. Meanwhile, the same directory's default.nix should import options.nix and configure said options. The xfce and mail modules demonstrate this pattern.

features

About

My NixOS / Asahi Linux config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published