nixos-config/user
2023-06-20 22:03:14 -05:00
..
app Revived cbx script to copy images directly to clipboard 2023-06-15 19:05:18 -05:00
bin Generic improvements to flake 2023-06-20 17:31:49 -05:00
lang Added rust + compiled ytsub! 2023-05-20 19:58:54 -05:00
pkgs Tried rogauracore build, but doesn't work yet... 2023-05-23 20:49:22 -05:00
shell Condensed home.nix into many more modules! 2023-06-10 23:04:03 -05:00
style Applied stylix to qt apps 2023-06-08 15:44:40 -05:00
wm Updated xmobar st status to recognize process stop 2023-06-20 17:01:13 -05:00
README.org Improved documentation for my config 2023-06-11 10:26:47 -05:00

User-level Nix Modules

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

  • bin - My own scripts

  • 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, and/or wayland compositor 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 currently import the following variables to the system config:

  • myName - Username
  • myHomeDir - Absolute path to home directory derived from myName
  • myEmail - Email
  • myDotfilesDir - Path to my dotfiles directory on the system
  • myTheme - base16 theme stored in ../themes to be used
  • myThemePolarity - whether theme is light or dark
  • myBackgroundUrl - Direct link to background wallpaper (used for login screen)
  • myBackgroundSha256 - Checksum for background image used when downloading