mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
1.2 KiB
1.2 KiB
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
- style - Stylix setup (system-wide base16 theme generation)
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:
myName
- UsernamemyHostname
- Hostname for machinemyTimezone
- Timezone for machinemyLocale
- Locale for machinemyTheme
- base16 theme stored in ../themes to be usedmyBackgroundUrl
- Direct link to background wallpaper (used for login screen)myBackgroundSha256
- Checksum for background image used when downloading