.. | ||
app | ||
bin | ||
hardware | ||
lang | ||
pkgs | ||
shell | ||
style | ||
wm | ||
README.org |
User-level Nix Modules
Separate Nix files can be imported as modules using an import block:
imports = [ import1.nix
import2.nix
...
];
My user-level Nix modules are organized into this directory:
-
app - Apps or collections of apps bundled with my configs
- browser - Used to set default browser
- dmenu-scripts
- doom-emacs
- flatpak - Installs flatpak as a utility (flatpaks must be installed manually)
- games - Gaming setup
- git
- keepass
- ranger
- terminal - Configuration for terminal emulators
- virtualization - Virtualization and compatability layers
-
bin - My own scripts
- phoenix - My nix command wrapper
-
lang - Various bundled programming languages
- I will probably get rid of this in favor of a shell.nix for every project, once I learn how that works
-
pkgs - "Package builds" for packages not in the Nix repositories
- pokemon-colorscripts
- rogauracore - not working yet
- ytsub
-
shell - My default bash and zsh configs
- sh - bash and zsh configs
- cli-collection - Curated useful CLI utilities
- style - Stylix setup (system-wide base16 theme generation)
-
wm - Window manager, compositor, wayland compositor, and/or desktop environment setups
Variables imported from flake.nix
Variables can be imported from flake.nix by setting the extraSpecialArgs
block inside the flake (see my flake for more details). This allows variables to merely be managed in one place (flake.nix) rather than having to manage them in multiple locations.
I currently import the following variables to the system config:
username
- Usernamehostname
- Hostname for machinemyHomeDir
- Absolute path to home directory derived fromusername
email
- EmaildotfilesDir
- Path to my dotfiles directory on the systemtheme
- base16 theme stored in ../themes to be usedthemePolarity
- whether theme islight
ordark
backgroundUrl
- Direct link to background wallpaper (used for login screen)backgroundSha256
- Checksum for background image used when downloading