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, pkgs,
lib, lib,
... ...
}: { }: let
monitorMaxBrightness = "255";
monitorMinBrightness = "32";
in {
# Type definitions for nix variables used in this configuration # Type definitions for nix variables used in this configuration
options = with lib; options = with lib;
with types; { with types; {
@ -29,11 +32,12 @@
myDisplayName = "Zhongheng Liu"; myDisplayName = "Zhongheng Liu";
myEmail = "z.liu@outlook.com.gr"; myEmail = "z.liu@outlook.com.gr";
specialisation."powersave".configuration = { specialisation."powersave".configuration = {
myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s 64"]; myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}"];
}; };
myConfigLocation = "/home/${myUserName}/nix-conf"; myConfigLocation = "/home/${myUserName}/nix-conf";
desktopFontFullName = "JetBrainsMono Nerd Font"; desktopFontFullName = "JetBrainsMono Nerd Font";
myAutostartCommands = [ myAutostartCommands = [
"${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMaxBrightness}"
"fcitx5" "fcitx5"
# "${pkgs.foot}/bin/foot --server -f \"${desktopFontFullName}:size=12\" -o colors.alpha=0.85" # "${pkgs.foot}/bin/foot --server -f \"${desktopFontFullName}:size=12\" -o colors.alpha=0.85"
"${pkgs.udiskie}/bin/udiskie" "${pkgs.udiskie}/bin/udiskie"

View file

@ -72,7 +72,10 @@
programs = { programs = {
obs-studio = { obs-studio = {
enable = true; enable = true;
plugins = [pkgs.obs-studio-plugins.wlrobs]; plugins = with pkgs.obs-studio-plugins; [
wlrobs
input-overlay
];
}; };
home-manager.enable = true; home-manager.enable = true;
firefox = { firefox = {

View file

@ -1,5 +1,7 @@
{...}: { {...}: {
plugins = { plugins = {
lsp-signature.enable = true;
lsp-status.enable = true;
lsp = { lsp = {
enable = true; enable = true;
servers = { servers = {
@ -29,6 +31,9 @@
}; };
}; };
# Haskell
hls.enable = true;
# For TypeScript # For TypeScript
ts_ls.enable = true; ts_ls.enable = true;
}; };

View file

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

View file

@ -64,6 +64,11 @@
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
powerOnBoot = true; powerOnBoot = true;
settings = {
General = {
Disable = "Headset";
};
};
}; };
specialisation = { specialisation = {
in-china.configuration = { in-china.configuration = {
@ -109,6 +114,8 @@
zed-editor zed-editor
libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtquickcontrols2
libsForQt5.qt5.qtgraphicaleffects libsForQt5.qt5.qtgraphicaleffects
blender
#inputs.hyprswitch.packages.x86_64-linux.default
]; ];
# turned off because timedatectl doesn't like it # turned off because timedatectl doesn't like it
time.hardwareClockInLocalTime = false; time.hardwareClockInLocalTime = false;