Skip to content

Latest commit

 

History

History

system

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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