1
0
forked from extern/nix-config

nix: Begin migration to options

No need to import a variables file since all modules have access to the
options defined in all other modules.
This commit is contained in:
Donovan Glover 2023-06-22 10:10:53 -04:00
parent afd6cce13c
commit 2d808e6162
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,4 +1,4 @@
{ home-manager, stylix, ... }:
{ home-manager, stylix, lib, ... }:
let VARIABLES = import ./src/variables.nix; in {
imports = [
@ -12,4 +12,15 @@ let VARIABLES = import ./src/variables.nix; in {
./specializations
./src/main.nix
];
options.variables = {
hostname = lib.mkOption { default = "nixos"; };
timezone = lib.mkOption { default = "America/New_York"; };
hostHardwareConfiguration = lib.mkOption { default = ./hardware/laptop.nix; };
stateVersion = lib.mkOption { default = "22.11"; };
defaultLocale = lib.mkOption { default = "ja_JP.UTF-8"; };
supportedLocales = lib.mkOption { default = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ]; };
username = lib.mkOption { default = "user"; };
defaultBrowser = lib.mkOption { default = "librewolf"; };
};
}