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:
parent
afd6cce13c
commit
2d808e6162
13
default.nix
13
default.nix
@ -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"; };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user