nixos-config/modules/system
2025-08-31 18:08:30 -05:00
..
bluetooth Gaming optimizations? 2025-02-23 15:07:40 -06:00
brave-policy Better brave config 2025-08-31 18:08:30 -05:00
flatpak Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate 2025-02-09 16:50:26 -06:00
gaming Updated system 2025-04-17 11:10:21 -05:00
gnome fixes for duskfall 2025-04-15 09:02:13 -05:00
hyprland Updated system 2025-08-28 21:56:23 -05:00
kernel Gaming optimizations? 2025-02-23 15:07:40 -06:00
nix Major update to handle multiple systems 2025-02-12 14:12:11 -06:00
overlays Better brave config 2025-08-31 18:08:30 -05:00
phoenix Seems like --fast parameter causes cache misses? 2025-07-21 22:12:41 -05:00
plasma some plasma fixes 2025-02-12 20:18:05 -06:00
powerprofiles Added power profiles daemon 2025-06-19 07:48:10 -05:00
printing Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate 2025-02-09 16:50:26 -06:00
security doas fixes 2025-05-10 11:14:54 -05:00
stylix Better brave config 2025-08-31 18:08:30 -05:00
tlp Better tlp settings? 2025-02-18 20:37:44 -06:00
users Major update to handle multiple systems 2025-02-12 14:12:11 -06:00
virtualization Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate 2025-02-09 16:50:26 -06:00
configuration.nix localsend is really cool 2025-08-28 19:51:22 -05:00
default.nix Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate 2025-02-09 16:50:26 -06:00
README.org Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate 2025-02-09 16:50:26 -06: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
  • bin - My own scripts

  • 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 use this to pass a few attribute sets:

  • userSettings - Settings for the normal user (see flake.nix for more details)
  • systemSettings - Settings for the system (see flake.nix for more details)
  • inputs - Flake inputs (see flake.nix for more details)
  • pkgs-stable - Allows me to include stable versions of packages along with (my default) unstable versions of packages