diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-11-21 18:39:35 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-11-21 18:39:35 +0200 |
commit | 78d5115aac80a114e2907e5b075751606be69c9e (patch) | |
tree | 5dd09488dbf140ed80cc3523c1527700d655bbd4 | |
parent | 178e199bb7c11154a3389e45d56e26be2c705f5d (diff) | |
download | nixos-configuration-78d5115aac80a114e2907e5b075751606be69c9e.tar.gz nixos-configuration-78d5115aac80a114e2907e5b075751606be69c9e.tar.bz2 nixos-configuration-78d5115aac80a114e2907e5b075751606be69c9e.zip |
feat: some config refining and blender
-rw-r--r-- | common/variables.nix | 8 | ||||
-rw-r--r-- | home-manager/stvnliu/home.nix | 5 | ||||
-rw-r--r-- | home-manager/stvnliu/nixvim/lsp.nix | 5 | ||||
-rw-r--r-- | home-manager/stvnliu/packages/util-programs.nix | 2 | ||||
-rw-r--r-- | nixos/configuration.nix | 7 |
5 files changed, 24 insertions, 3 deletions
diff --git a/common/variables.nix b/common/variables.nix index b4d5127..8706400 100644 --- a/common/variables.nix +++ b/common/variables.nix @@ -3,7 +3,10 @@ pkgs, lib, ... -}: { +}: let + monitorMaxBrightness = "255"; + monitorMinBrightness = "32"; +in { # Type definitions for nix variables used in this configuration options = with lib; with types; { @@ -29,11 +32,12 @@ myDisplayName = "Zhongheng Liu"; myEmail = "z.liu@outlook.com.gr"; specialisation."powersave".configuration = { - myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s 64"]; + myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}"]; }; myConfigLocation = "/home/${myUserName}/nix-conf"; desktopFontFullName = "JetBrainsMono Nerd Font"; myAutostartCommands = [ + "${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMaxBrightness}" "fcitx5" # "${pkgs.foot}/bin/foot --server -f \"${desktopFontFullName}:size=12\" -o colors.alpha=0.85" "${pkgs.udiskie}/bin/udiskie" diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix index b175532..d64933e 100644 --- a/home-manager/stvnliu/home.nix +++ b/home-manager/stvnliu/home.nix @@ -72,7 +72,10 @@ programs = { obs-studio = { enable = true; - plugins = [pkgs.obs-studio-plugins.wlrobs]; + plugins = with pkgs.obs-studio-plugins; [ + wlrobs + input-overlay + ]; }; home-manager.enable = true; firefox = { diff --git a/home-manager/stvnliu/nixvim/lsp.nix b/home-manager/stvnliu/nixvim/lsp.nix index 0ad54f8..4b61e59 100644 --- a/home-manager/stvnliu/nixvim/lsp.nix +++ b/home-manager/stvnliu/nixvim/lsp.nix @@ -1,5 +1,7 @@ {...}: { plugins = { + lsp-signature.enable = true; + lsp-status.enable = true; lsp = { enable = true; servers = { @@ -29,6 +31,9 @@ }; }; + # Haskell + hls.enable = true; + # For TypeScript ts_ls.enable = true; }; diff --git a/home-manager/stvnliu/packages/util-programs.nix b/home-manager/stvnliu/packages/util-programs.nix index d15c88f..f65843f 100644 --- a/home-manager/stvnliu/packages/util-programs.nix +++ b/home-manager/stvnliu/packages/util-programs.nix @@ -15,5 +15,7 @@ tmux ranger lazygit + + transmission_4-gtk ]; } diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 493300c..91ceba0 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -64,6 +64,11 @@ hardware.bluetooth = { enable = true; powerOnBoot = true; + settings = { + General = { + Disable = "Headset"; + }; + }; }; specialisation = { in-china.configuration = { @@ -109,6 +114,8 @@ zed-editor libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtgraphicaleffects + blender + #inputs.hyprswitch.packages.x86_64-linux.default ]; # turned off because timedatectl doesn't like it time.hardwareClockInLocalTime = false; |