aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/desktop/default.nix4
-rw-r--r--modules/fonts/default.nix10
2 files changed, 7 insertions, 7 deletions
diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix
index 34c4c2f..eef9b30 100644
--- a/modules/desktop/default.nix
+++ b/modules/desktop/default.nix
@@ -11,11 +11,11 @@
options.desktop = {
enable = lib.mkEnableOption "Enables graphical interface.";
};
-
+
config = lib.mkIf config.desktop.enable {
xdg.enable = true;
xsession.enable = true;
-
+
home.file.".xinitrc" = {
text = ''
#!/bin/sh
diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix
index eee825d..e6c9acb 100644
--- a/modules/fonts/default.nix
+++ b/modules/fonts/default.nix
@@ -6,29 +6,29 @@
type = lib.types.str;
description = "Default normal font name.";
};
-
+
bold = lib.mkOption {
type = lib.types.str;
description = "Default bold font name.";
default = config.fonts.normal;
};
-
+
italic = lib.mkOption {
type = lib.types.str;
description = "Default italic font name.";
default = config.fonts.normal;
};
-
+
size = lib.mkOption {
type = lib.types.int;
description = "Default font size.";
default = 16;
};
};
-
+
config = {
fonts.normal = lib.mkDefault "Fira Code Nerd Font";
-
+
home.packages = with pkgs; [
nerd-fonts.fira-code
];