mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
update system
This commit is contained in:
@@ -34,7 +34,9 @@
|
||||
./shell/flameshot.nix
|
||||
./shell/gnome-keyring.nix
|
||||
./shell/hyprpicker.nix
|
||||
./shell/kde-connect.nix
|
||||
./shell/kitty.nix
|
||||
./shell/swaync.nix
|
||||
./shell/walker.nix
|
||||
./shell/waybar.nix
|
||||
|
||||
|
||||
@@ -49,12 +49,16 @@ in
|
||||
DXVK_HDR = "1";
|
||||
};
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
general.layout = "master";
|
||||
general = {
|
||||
layout = "master";
|
||||
allow_tearing = true;
|
||||
};
|
||||
master = {
|
||||
orientation = "center";
|
||||
slave_count_for_center_master = 0;
|
||||
mfact = 0.4;
|
||||
};
|
||||
render.direct_scanout = 1;
|
||||
monitor = [
|
||||
"DP-3,3840x2160@144,0x0,1,bitdepth,10"
|
||||
"DP-3,addreserved,340,0,0,0"
|
||||
@@ -63,7 +67,7 @@ in
|
||||
misc.vrr = 2; # VA suffers from VRR flicker
|
||||
cursor = {
|
||||
min_refresh_rate = 48;
|
||||
no_break_fs_vrr = true;
|
||||
no_break_fs_vrr = 1;
|
||||
};
|
||||
experimental = {
|
||||
xx_color_management_v4 = true;
|
||||
|
||||
28
modules/nixos/shell/kde-connect.nix
Normal file
28
modules/nixos/shell/kde-connect.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.kde-connect;
|
||||
in
|
||||
{
|
||||
options.shell.components.kde-connect = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured kde connect setup");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username}.services.kdeconnect.enable = true;
|
||||
networking.firewall = rec {
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = allowedTCPPortRanges;
|
||||
};
|
||||
};
|
||||
}
|
||||
65
modules/nixos/shell/swaync.nix
Normal file
65
modules/nixos/shell/swaync.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.swaync;
|
||||
in
|
||||
{
|
||||
options.shell.components.swaync = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured notification center");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
settings = {
|
||||
positionX = "center";
|
||||
positionY = "top";
|
||||
fit-to-screen = false;
|
||||
control-center-width = 600;
|
||||
control-center-height = 800;
|
||||
control-center-margin-top = 2;
|
||||
control-center-margin-bottom = 2;
|
||||
control-center-margin-right = 1;
|
||||
control-center-margin-left = 0;
|
||||
notification-window-width = 400;
|
||||
notification-icon-size = 48;
|
||||
notification-body-image-height = 160;
|
||||
notification-body-image-width = 200;
|
||||
image-visibility = "when-available";
|
||||
};
|
||||
};
|
||||
programs.waybar.settings.mainBar = {
|
||||
modules-center = lib.mkAfter [
|
||||
"custom/notification"
|
||||
];
|
||||
|
||||
"custom/notification" = {
|
||||
tooltip = false;
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
notification = "";
|
||||
none = "";
|
||||
dnd-notification = "";
|
||||
dnd-none = "";
|
||||
inhibited-notification = "";
|
||||
inhibited-none = "";
|
||||
dnd-inhibited-notification = "";
|
||||
dnd-inhibited-none = "";
|
||||
};
|
||||
return-type = "json";
|
||||
exec-if = "which swaync-client";
|
||||
exec = "swaync-client -swb";
|
||||
on-click = "swaync-client -t -sw";
|
||||
on-click-right = "swaync-client -d -sw";
|
||||
escape = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -34,10 +34,24 @@ in
|
||||
"privacy"
|
||||
"gamemode"
|
||||
"tray"
|
||||
"pulseaudio"
|
||||
"custom/brightness"
|
||||
"custom/theme"
|
||||
];
|
||||
|
||||
"pulseaudio" = {
|
||||
format = "{icon} {volume}%";
|
||||
format-icons = {
|
||||
"alsa_output.usb-Turtle_Beach_Turtle_Beach_Stealth_700_G2_MAX-01.iec958-stereo" = "";
|
||||
"alsa_output.pci-0000_0a_00.4.analog-stereo" = "";
|
||||
"alsa_output.pci-0000_08_00.1.hdmi-stereo-extra4" = "";
|
||||
"alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2018_11_12_79383-00.analog-stereo" =
|
||||
"";
|
||||
"default" = "";
|
||||
};
|
||||
on-click = "pavucontrol --tab=3";
|
||||
};
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
format = "{windows}";
|
||||
window-rewrite = {
|
||||
@@ -58,6 +72,8 @@ in
|
||||
exec = pkgs.writeShellScript "waybar-theme" ''
|
||||
if [ $(theme mode) = "dark" ]; then
|
||||
echo '{"text": "", "tooltip": "Switch to light theme"}'
|
||||
elif [ $(theme mode) = "auto" ]; then
|
||||
echo '{"text": "", "tooltip": "Switch to dark theme"}'
|
||||
else
|
||||
echo '{"text": "", "tooltip": "Switch to dark theme"}'
|
||||
fi
|
||||
@@ -65,6 +81,8 @@ in
|
||||
exec-if = "sleep 1";
|
||||
interval = "once";
|
||||
on-click = "theme toggle";
|
||||
on-click-right = "theme auto";
|
||||
on-click-middle = "theme wallpaper";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user