mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
.. | ||
app | ||
bin | ||
hardware | ||
security | ||
style | ||
wm | ||
hardware-configuration.nix | ||
README.org |
System-level Nix Modules
Separate Nix files can be imported as modules using an import block:
imports = [ import1.nix
import2.nix
...
];
My system-level Nix modules are organized into this directory:
- hardware-configuration - Default hardware config generated for my system
-
bin - My own scripts
- phoenix - My nix command wrapper
- app - Necessary system-level configuration to get various apps working
- hardware - Hardware configurations I may need to use
- security - System-level security stuff
- style - Stylix setup (system-wide base16 theme generation)
- wm - Necessary system-level configuration to get various window managers, wayland compositors, and/or desktop environments working
Variables imported from flake.nix
Variables can be imported from flake.nix by setting the specialArgs
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 machinetimezone
- Timezone for machinelocale
- Locale for machinetheme
- base16 theme stored in ../themes to be usedbackgroundUrl
- Direct link to background wallpaper (used for login screen)backgroundSha256
- Checksum for background image used when downloading