From da477c1fa519c78d4a2e09f8729ea2299ae611d2 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Tue, 1 Nov 2022 22:41:38 +0100 Subject: [PATCH] create a template for modules config --- hosts/laptop/home.nix | 2 ++ modules/home.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 modules/home.nix diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index e96abe7..cfdd9cc 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -18,6 +18,7 @@ [ #../../modules/desktop/hyprland/home.nix # Window Manager ../../modules/desktop/sway/home.nix # Window Manager + ../../modules/home.nix # Window Manager ]; home = { # Specific packages for laptop @@ -30,6 +31,7 @@ streamlink-twitch-gui-bin element-desktop intel-gpu-tools + pulsemixer # Display light # xorg.xbacklight not supported. Other option is just use xrandr. diff --git a/modules/home.nix b/modules/home.nix new file mode 100644 index 0000000..3785810 --- /dev/null +++ b/modules/home.nix @@ -0,0 +1,31 @@ +{ lib, options, ... }: + +{ + options = with lib; { + cmds = { + shell = mkOption { type = types.str; default = "fish"; }; + fetch = mkOption { type = types.str; default = "hyfetch"; }; + editor = mkOption { type = types.str; default = "hx"; }; + + wm = mkOption { type = types.str; default = "sway"; }; + + terminal = mkOption { type = types.str; default = "alacritty"; }; + menu = mkOption { type = types.str; default = "rofi -show drun -show-icons"; }; + + lock = mkOption { type = types.str; default = "locksway"; }; + notifications = { + volume = mkOption { type = types.str; default = "volume-notify"; }; + brightness = mkOption { type = types.str; default = "brightness-notify"; }; + }; + }; + + is-wayland = mkOption { type = types.bool; default = true; }; + + theme = { + theme = mkOption { type = types.str; default = "catppuccin-mocha"; }; + icon-theme = mkOption { type = types.str; default = "Papirus-Dark"; }; + font = mkOption { type = types.str; default = "FiraCode Nerd Font Mono 11"; }; + wallpaper = mkOption { type = types.str; default = ""; }; + }; + }; +}