Files
nixos-config/modules/user
2025-06-07 17:26:14 -05:00
..
2025-05-28 17:27:06 -05:00
2025-03-08 16:24:10 -06:00
2025-05-04 09:23:25 -05:00
2025-03-08 16:24:10 -06:00
2025-05-28 18:28:25 -05:00
2025-05-29 10:11:10 -05:00
2025-05-28 18:28:25 -05:00
2025-04-18 09:58:07 -05:00
2025-03-02 08:57:55 -06:00
2025-06-07 17:26:14 -05:00
2025-03-08 17:54:36 -06:00
2025-02-18 20:37:23 -06:00
2025-02-18 20:37:23 -06:00
2025-05-31 12:05:26 -05:00
2025-03-19 11:04:07 -05:00
2025-03-01 07:52:28 -06:00
2025-05-10 11:37:24 -05:00
2025-06-07 17:26:14 -05:00
2025-06-07 17:26:14 -05:00
2025-05-28 18:28:25 -05:00
2025-04-17 10:24:54 -05:00
2025-02-18 20:37:23 -06:00

User-level Nix Modules

Separate Nix files can be imported as modules using an import block:

imports = [ import1.nix
            import2.nix
            ...
          ];

My user-level Nix modules are organized into this directory:

  • app - Apps or collections of apps bundled with my configs

  • lang - Various bundled programming languages

    • I will probably get rid of this in favor of a shell.nix for every project, once I learn how that works
  • pkgs - "Package builds" for packages not in the Nix repositories

  • shell - My default bash and zsh configs

  • style - Stylix setup (system-wide base16 theme generation)
  • wm - Window manager, compositor, wayland compositor, and/or desktop environment setups

Variables imported from flake.nix

Variables can be imported from flake.nix by setting the extraSpecialArgs 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 - Set to unstable for client devices and stable for server devices
  • pkgs-stable - Allows me to include stable versions of packages along with (my default) unstable versions of packages
  • pkgs-unstable - Allows me to force unstable versions of packages on server devices