nixos-config/system
2023-06-21 10:31:09 -05:00
..
app Created homelab profile (not yet tested) 2023-06-21 09:52:25 -05:00
hardware Split system config into tons of modules! 2023-06-20 22:08:25 -05:00
security Split system config into tons of modules! 2023-06-20 22:08:25 -05:00
style Moved configuration.nix and home.nix to profiles 2023-06-20 22:03:14 -05:00
wm Split system config into tons of modules! 2023-06-20 22:08:25 -05:00
hardware-configuration.nix Finally installed nix to actual hardware! 2023-05-31 19:54:06 -05:00
README.org Improved documentation 2023-06-21 10:31:09 -05:00

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
  • 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:

  • myName - Username
  • myHostname - Hostname for machine
  • myTimezone - Timezone for machine
  • myLocale - Locale for machine
  • myTheme - base16 theme stored in ../themes to be used
  • myBackgroundUrl - Direct link to background wallpaper (used for login screen)
  • myBackgroundSha256 - Checksum for background image used when downloading