summaryrefslogtreecommitdiff
path: root/global
diff options
context:
space:
mode:
Diffstat (limited to 'global')
-rw-r--r--global/cez/default.nix6
-rw-r--r--global/common/default.nix6
-rw-r--r--global/common/modules/font.nix36
-rw-r--r--global/common/modules/userdata.nix (renamed from global/userdata.nix)0
-rw-r--r--global/default.nix5
5 files changed, 48 insertions, 5 deletions
diff --git a/global/cez/default.nix b/global/cez/default.nix
new file mode 100644
index 0000000..f4fca99
--- /dev/null
+++ b/global/cez/default.nix
@@ -0,0 +1,6 @@
+{ ... }: {
+ global.font = {
+ sans.size = 13;
+ monospace.size = 18;
+ };
+}
diff --git a/global/common/default.nix b/global/common/default.nix
new file mode 100644
index 0000000..329963d
--- /dev/null
+++ b/global/common/default.nix
@@ -0,0 +1,6 @@
+{ ... }: {
+ imports = [
+ ./modules/font.nix
+ ./modules/userdata.nix
+ ];
+}
diff --git a/global/common/modules/font.nix b/global/common/modules/font.nix
new file mode 100644
index 0000000..cf0ea61
--- /dev/null
+++ b/global/common/modules/font.nix
@@ -0,0 +1,36 @@
+{ pkgs, lib, ... }: let
+ name = {
+ type = lib.types.str;
+ example = "Terminess Nerd Font";
+ };
+ size = {
+ type = with lib.types; nullOr int;
+ default = null;
+ };
+ packages = {
+ type = with lib.types; listOf path;
+ example = "[ pkgs.terminus-nerdfont ]";
+ };
+in {
+ options.global.font = {
+ sans = {
+ size = lib.mkOption size;
+ name = lib.mkOption (name // {
+ default = "DeepMind Sans";
+ });
+ packages = lib.mkOption (packages // {
+ default = [ pkgs.dm-sans ];
+ });
+ };
+
+ monospace = {
+ size = lib.mkOption size;
+ name = lib.mkOption (name // {
+ default = "Terminess Nerd Font";
+ });
+ packages = lib.mkOption (packages // {
+ default = [ pkgs.terminus-nerdfont ];
+ });
+ };
+ };
+}
diff --git a/global/userdata.nix b/global/common/modules/userdata.nix
index d591920..d591920 100644
--- a/global/userdata.nix
+++ b/global/common/modules/userdata.nix
diff --git a/global/default.nix b/global/default.nix
deleted file mode 100644
index 5bcb1ba..0000000
--- a/global/default.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{ ... }: {
- imports = [
- ./userdata.nix
- ];
-}