feat: some config refining and blender

This commit is contained in:
Zhongheng Liu 2024-11-21 18:39:35 +02:00
commit 78d5115aac
Signed by: steven
GPG key ID: DC8F48E7B4C40905
5 changed files with 24 additions and 3 deletions

View file

@ -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"

View file

@ -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 = {

View file

@ -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;
};

View file

@ -15,5 +15,7 @@
tmux
ranger
lazygit
transmission_4-gtk
];
}

View file

@ -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;