nixos-config/system
2024-01-13 20:29:22 -06:00
..
app Various fixes for gaming 2023-12-30 11:05:40 -06:00
hardware Hardware + filesystem optimzations (I think..) 2024-01-01 21:55:19 -06:00
security Added some automounting for thumb drives 2024-01-13 20:29:22 -06:00
style Finally fixes qt stylix themes 2023-09-30 22:37:18 -05:00
wm Updated system with fixes 2023-12-21 20:26:08 -06:00
hardware-configuration.nix Hardware + filesystem optimzations (I think..) 2024-01-01 21:55:19 -06:00
README.org Boilerplate reduction (I understand strings in nix now!) 2023-06-22 14:53:10 -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:

  • username - Username
  • hostname - Hostname for machine
  • timezone - Timezone for machine
  • locale - Locale for machine
  • theme - base16 theme stored in ../themes to be used
  • backgroundUrl - Direct link to background wallpaper (used for login screen)
  • backgroundSha256 - Checksum for background image used when downloading