Compare commits
11 Commits
bbd84a0903
...
c49f782e11
| Author | SHA1 | Date | |
|---|---|---|---|
|
c49f782e11
|
|||
|
fd9ee227a6
|
|||
|
55cb613dfe
|
|||
|
5709bf861a
|
|||
|
296312e960
|
|||
| 03f0969ad3 | |||
| efe001f4da | |||
|
9d30ab07fa
|
|||
|
b0c9f8dabf
|
|||
|
d4b24ba000
|
|||
|
f78513db44
|
Generated
+27
-27
@@ -7,11 +7,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772290697,
|
"lastModified": 1774186997,
|
||||||
"narHash": "sha256-MyLNx13P+pv1RszO1rMd3144NEeU/oU4iL+xOTpRoaU=",
|
"narHash": "sha256-hyNVlhAqmwcBPl7XRkxbGcMt1BfCOdvuEfBDUf0k8Oo=",
|
||||||
"owner": "ezKEa",
|
"owner": "ezKEa",
|
||||||
"repo": "aagl-gtk-on-nix",
|
"repo": "aagl-gtk-on-nix",
|
||||||
"rev": "dcb53a4cb4cb09ef7f08328428ba559be5b9f01b",
|
"rev": "546e95f7ec74892a31f883a10b1723c35f2c2edd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -313,11 +313,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773681856,
|
"lastModified": 1774647770,
|
||||||
"narHash": "sha256-+bRqxoFCJFO9ZTFhcCkzNXbDT3b8AEk88fyjB7Is6eo=",
|
"narHash": "sha256-UNNi14XiqRWWjO8ykbFwA5wRwx7EscsC+GItOVpuGjc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "57d5560ee92a424fb71fde800acd6ed2c725dfce",
|
"rev": "02371c05a04a2876cf92e2d67a259e8f87399068",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -710,11 +710,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773610124,
|
"lastModified": 1774388614,
|
||||||
"narHash": "sha256-EpC7ELOKmb+xXaqpK5ZRpJ5g9fxxg6tWny7/rUBfrwk=",
|
"narHash": "sha256-tFwzTI0DdDzovdE9+Ras6CUss0yn8P9XV4Ja6RjA+nU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9fe1300f4360e13f39d6d1d006e54fd5093e9ad5",
|
"rev": "1073dad219cb244572b74da2b20c7fe39cb3fa9e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -774,11 +774,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773646010,
|
"lastModified": 1774386573,
|
||||||
"narHash": "sha256-iYrs97hS7p5u4lQzuNWzuALGIOdkPXvjz7bviiBjUu8=",
|
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5b2c2d84341b2afb5647081c1386a80d7a8d8605",
|
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -790,11 +790,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773507054,
|
"lastModified": 1773840656,
|
||||||
"narHash": "sha256-Q8U5VXgrcxmCxPtCCJCIZkcAX3FCZwGh1GNVIXxMND0=",
|
"narHash": "sha256-9tpvMGFteZnd3gRQZFlRCohVpqooygFuy9yjuyRL2C0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e80236013dc8b77aa49ca90e7a12d86f5d8d64c9",
|
"rev": "9cf7092bdd603554bd8b63c216e8943cf9b12512",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -903,11 +903,11 @@
|
|||||||
"russia-blocked-geoip": {
|
"russia-blocked-geoip": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773677447,
|
"lastModified": 1774691120,
|
||||||
"narHash": "sha256-jo3BJ7iHaicSyrljzIOQu6Ce4ALfpZSgYVNFFcZuMq0=",
|
"narHash": "sha256-iy2Uvqrr/7nOLznDNdyV5T5aee7Y+3nMNmoGIjpeUFE=",
|
||||||
"owner": "runetfreedom",
|
"owner": "runetfreedom",
|
||||||
"repo": "russia-blocked-geoip",
|
"repo": "russia-blocked-geoip",
|
||||||
"rev": "f6fa2c8e8fb5d29ba674cd809e58a4b25c99e9bf",
|
"rev": "433641f6807cdaa56c731125b5a367da512987e4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -961,11 +961,11 @@
|
|||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773550941,
|
"lastModified": 1774303811,
|
||||||
"narHash": "sha256-wa/++bL2QeMUreNFBZEWluQfOYB0MnQIeGNMuaX9sfs=",
|
"narHash": "sha256-fhG4JAcLgjKwt+XHbjs8brpWnyKUfU4LikLm3s0Q/ic=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "c469b6885f0dcd5c7c56bd935a0f08dbcd9e79e1",
|
"rev": "614e256310e0a4f8a9ccae3fa80c11844fba7042",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -993,11 +993,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772296853,
|
"lastModified": 1774124764,
|
||||||
"narHash": "sha256-pAtzPsgHRKw/2Kv8HgAjSJg450FDldHPWsP3AKG/Xj0=",
|
"narHash": "sha256-Poz9WTjiRlqZIf197CrMMJfTifZhrZpbHFv0eU1Nhtg=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "c4b8e80a1020e09a1f081ad0f98ce804a6e85acf",
|
"rev": "e31c79f571c5595a155f84b9d77ce53a84745494",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1180,11 +1180,11 @@
|
|||||||
"rust-overlay": "rust-overlay_2"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773638943,
|
"lastModified": 1774567340,
|
||||||
"narHash": "sha256-TgGuoRB28Q7IeHupfLZ/NFeztWgXS8H0HkPMy5Neb4c=",
|
"narHash": "sha256-skKD1hvAvilKkK406RgNl6X/YJgkSsoZmtHmdfeoyWI=",
|
||||||
"owner": "sxyazi",
|
"owner": "sxyazi",
|
||||||
"repo": "yazi",
|
"repo": "yazi",
|
||||||
"rev": "de01a56ac5a566ecb4804659a5ecb413a9e3734f",
|
"rev": "935eb6b2989f8a7ce219a2a71a539365c8dccfbb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
|
|||||||
|
{ pkgs, lib, ... }: {
|
||||||
|
wayland.windowManager.hyprland = let
|
||||||
|
wallpaper = pkgs.fetchurl {
|
||||||
|
name = "miku_wallpaper.jpg";
|
||||||
|
url = "https://c.lair.moe/pub/miku_wallpaper.jpeg?raw";
|
||||||
|
hash = "sha256-inK4X5KzQk5FHwDw2DYy43nm7XtXlC6I0S1PkYUv+3w=";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
settings = {
|
||||||
|
exec-once = [
|
||||||
|
"${lib.getExe pkgs.swww} img -o eDP-1 ${wallpaper}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
host.laptop = true;
|
host.laptop = true;
|
||||||
|
host.nvidia.prime.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.dbgate ];
|
environment.systemPackages = [ pkgs.dbgate ];
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-1
@@ -7,7 +7,23 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
host.laptop = lib.mkEnableOption "laptop mode";
|
host = {
|
||||||
|
laptop = lib.mkEnableOption "laptop mode";
|
||||||
|
|
||||||
|
nvidia.prime = {
|
||||||
|
enable = lib.mkEnableOption "NVIDIA PRIME offload for hybrid graphics";
|
||||||
|
intelBusId = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "PCI:0:2:0";
|
||||||
|
description = "Intel/iGPU Bus ID used by NVIDIA PRIME.";
|
||||||
|
};
|
||||||
|
nvidiaBusId = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "PCI:1:0:0";
|
||||||
|
description = "NVIDIA dGPU Bus ID used by NVIDIA PRIME.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
+27
-10
@@ -1,6 +1,16 @@
|
|||||||
{ config, pkgs-stable, lib, ... }: {
|
{ config, pkgs-stable, lib, ... }: let
|
||||||
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
primeCfg = config.host.nvidia.prime;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
isPrimeOffload = primeCfg.enable;
|
||||||
|
in {
|
||||||
|
boot = {
|
||||||
|
kernelParams = [ "nvidia-drm.modeset=1" ];
|
||||||
|
initrd.kernelModules = lib.optionals isPrimeOffload [ "i915" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers =
|
||||||
|
if isPrimeOffload
|
||||||
|
then [ "modesetting" "nvidia" ]
|
||||||
|
else [ "nvidia" ];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics = {
|
||||||
@@ -11,7 +21,7 @@
|
|||||||
intel-media-driver
|
intel-media-driver
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
];
|
];
|
||||||
extraPackages32 = with pkgs-stable.pkgsi686Linux; [nvidia-vaapi-driver intel-media-driver];
|
extraPackages32 = with pkgs-stable.pkgsi686Linux; [ nvidia-vaapi-driver intel-media-driver ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
@@ -24,21 +34,28 @@
|
|||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
prime = lib.optionalAttrs config.host.laptop {
|
prime = lib.optionalAttrs isPrimeOffload {
|
||||||
intelBusId = "PCI:0:2:0";
|
offload = {
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
intelBusId = primeCfg.intelBusId;
|
||||||
|
nvidiaBusId = primeCfg.nvidiaBusId;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
__GL_VRR_ALLOWED = 1;
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
NIXOS_OZONE_WL = 1;
|
||||||
|
} // lib.optionalAttrs isPrimeOffload {
|
||||||
|
LIBVA_DRIVER_NAME = "iHD";
|
||||||
|
} // lib.optionalAttrs (!isPrimeOffload) {
|
||||||
WLR_NO_HARDWARE_CURSORS = 1;
|
WLR_NO_HARDWARE_CURSORS = 1;
|
||||||
WLR_DRM_NO_ATOMIC = 1;
|
WLR_DRM_NO_ATOMIC = 1;
|
||||||
GBM_BACKEND = "nvidia-drm";
|
GBM_BACKEND = "nvidia-drm";
|
||||||
LIBVA_DRIVER_NAME = "nvidia";
|
LIBVA_DRIVER_NAME = "nvidia";
|
||||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||||
__GL_VRR_ALLOWED = 1;
|
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
|
||||||
NIXOS_OZONE_WL = 1;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment = {
|
environment = {
|
||||||
V2RAYA_LOG_FILE = "/var/log/v2raya/v2raya.log";
|
V2RAYA_LOG_FILE = "/var/log/v2raya/v2raya.log";
|
||||||
|
V2RAYA_V2RAY_BIN = pkgs.lib.getExe pkgs.xray;
|
||||||
V2RAY_LOCATION_ASSET = "/etc/v2raya";
|
V2RAY_LOCATION_ASSET = "/etc/v2raya";
|
||||||
XRAY_LOCATION_ASSET = "/etc/v2raya";
|
XRAY_LOCATION_ASSET = "/etc/v2raya";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
./user/qt.nix
|
./user/qt.nix
|
||||||
./user/sops.nix
|
./user/sops.nix
|
||||||
./user/ssh.nix
|
./user/ssh.nix
|
||||||
./user/waybar.nix
|
|
||||||
./user/yazi.nix
|
./user/yazi.nix
|
||||||
./user/zsh.nix
|
./user/zsh.nix
|
||||||
|
|
||||||
|
|||||||
@@ -1,140 +0,0 @@
|
|||||||
{ osConfig, config, pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
font-awesome
|
|
||||||
nerd-fonts.symbols-only
|
|
||||||
playerctl
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
systemd.enable = true;
|
|
||||||
|
|
||||||
settings.mainBar = {
|
|
||||||
modules-left = [
|
|
||||||
"hyprland/workspaces"
|
|
||||||
"hyprland/language"
|
|
||||||
"keyboard-state"
|
|
||||||
];
|
|
||||||
|
|
||||||
modules-center = [
|
|
||||||
"mpris"
|
|
||||||
];
|
|
||||||
|
|
||||||
modules-right = [
|
|
||||||
"tray"
|
|
||||||
"group/system"
|
|
||||||
"pulseaudio"
|
|
||||||
"battery"
|
|
||||||
"clock"
|
|
||||||
];
|
|
||||||
|
|
||||||
clock = {
|
|
||||||
tooltip = false;
|
|
||||||
interval = 5;
|
|
||||||
format = "{:L%d %b - %H:%M %a}";
|
|
||||||
};
|
|
||||||
|
|
||||||
pulseaudio = {
|
|
||||||
format = "{icon} {volume}%";
|
|
||||||
format-icons = {
|
|
||||||
headphone = "";
|
|
||||||
hands-free = "";
|
|
||||||
headset = "";
|
|
||||||
phone = "";
|
|
||||||
phone-muted = "";
|
|
||||||
portable = "";
|
|
||||||
car = "";
|
|
||||||
default = ["" ""];
|
|
||||||
};
|
|
||||||
on-click = "ghostty --title=pulsemixer -e pulsemixer";
|
|
||||||
};
|
|
||||||
|
|
||||||
mpris = {
|
|
||||||
format = "{dynamic}";
|
|
||||||
dynamic-len = if osConfig.host.laptop then 32 else 64;
|
|
||||||
dynamic-order = [ "title" "artist" "album" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
battery = {
|
|
||||||
interval = 5;
|
|
||||||
states = {
|
|
||||||
warning = 30;
|
|
||||||
critical = 15;
|
|
||||||
};
|
|
||||||
format = "{icon} {capacity}%";
|
|
||||||
format-icons = {
|
|
||||||
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
||||||
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"keyboard-state" = {
|
|
||||||
capslock = true;
|
|
||||||
format = "{icon}";
|
|
||||||
format-icons = {
|
|
||||||
locked = "CAPS";
|
|
||||||
unlocked = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"hyprland/language" = {
|
|
||||||
format-en = "en";
|
|
||||||
format-ru = "ru";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
"group/system" = {
|
|
||||||
orientation = "inherit";
|
|
||||||
drawer = {
|
|
||||||
transition-duration = 500;
|
|
||||||
transition-left-to-right = false;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
"network"
|
|
||||||
"custom/mem"
|
|
||||||
"cpu"
|
|
||||||
"temperature"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
network = {
|
|
||||||
format = "{ifname}";
|
|
||||||
format-wifi = " {essid} ({signalStrength}%)";
|
|
||||||
format-ethernet = "{ifname}";
|
|
||||||
format-disconnected = "";
|
|
||||||
tooltip-format = "{ipaddr}";
|
|
||||||
max-length = 50;
|
|
||||||
on-click = "ghostty --title=nmtui -e nmtui";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/weather" = {
|
|
||||||
format = "{}";
|
|
||||||
tooltip = true;
|
|
||||||
interval = 1800;
|
|
||||||
exec = "python3 $HOME/.config/waybar/scripts/wttr.py";
|
|
||||||
return-type = "json";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/mem" = {
|
|
||||||
format = "{} ";
|
|
||||||
interval = 3;
|
|
||||||
exec = "free -h | awk '/Mem:/{printf $3}'";
|
|
||||||
tooltip = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
cpu = {
|
|
||||||
interval = 2;
|
|
||||||
format = "{usage}% ";
|
|
||||||
min-length = 6;
|
|
||||||
};
|
|
||||||
|
|
||||||
temperature = {
|
|
||||||
hwmon-path = "/sys/class/hwmon/hwmon5/temp1_input";
|
|
||||||
critical-threshold = 80;
|
|
||||||
format = "{temperatureC}°C {icon}";
|
|
||||||
format-icons = ["" "" "" "" ""];
|
|
||||||
tooltip = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
+212
-33
@@ -1,35 +1,214 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ osConfig, config, pkgs, lib, ... }: {
|
||||||
programs.waybar.settings.mainBar.spacing = 4;
|
home.packages = with pkgs; [
|
||||||
programs.waybar.style = let
|
font-awesome
|
||||||
|
nerd-fonts.symbols-only
|
||||||
|
playerctl
|
||||||
|
cava
|
||||||
|
pulsemixer
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
|
||||||
|
settings.mainBar = {
|
||||||
|
modules-center = [
|
||||||
|
"group/left"
|
||||||
|
"group/center"
|
||||||
|
"group/right"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
"group/left" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
|
"hyprland/workspaces"
|
||||||
|
"custom/sep-left"
|
||||||
|
"hyprland/language"
|
||||||
|
"keyboard-state"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"group/center" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
|
"cava"
|
||||||
|
"mpris"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"group/right" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
|
"tray"
|
||||||
|
"custom/sep-left"
|
||||||
|
"group/system"
|
||||||
|
"custom/sep-left"
|
||||||
|
"pulseaudio"
|
||||||
|
"custom/sep-left"
|
||||||
|
"battery"
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
cava = {
|
||||||
|
bars = 9;
|
||||||
|
bar_delimiter = 0;
|
||||||
|
stereo = false;
|
||||||
|
input_delay = 0;
|
||||||
|
format-icons = [" " "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"];
|
||||||
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
tooltip = false;
|
||||||
|
interval = 5;
|
||||||
|
format = "{:L%d %b - %H:%M %a}";
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio = {
|
||||||
|
format = "{icon} {volume}%";
|
||||||
|
format-icons = {
|
||||||
|
headphone = "";
|
||||||
|
hands-free = "";
|
||||||
|
headset = "";
|
||||||
|
phone = "";
|
||||||
|
phone-muted = "";
|
||||||
|
portable = "";
|
||||||
|
car = "";
|
||||||
|
default = ["" ""];
|
||||||
|
};
|
||||||
|
on-click = "ghostty --title=pulsemixer -e pulsemixer";
|
||||||
|
};
|
||||||
|
|
||||||
|
mpris = {
|
||||||
|
format = "{dynamic}";
|
||||||
|
dynamic-len = if osConfig.host.laptop then 16 else 32;
|
||||||
|
dynamic-order = [ "title" "artist" "album" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
interval = 5;
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{icon} {capacity}% | ";
|
||||||
|
format-icons = {
|
||||||
|
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
|
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/sep-left" = {
|
||||||
|
format = " | ";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"keyboard-state" = {
|
||||||
|
capslock = true;
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
locked = "CAPS";
|
||||||
|
unlocked = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"hyprland/language" = {
|
||||||
|
format-en = "en";
|
||||||
|
format-ru = "ru";
|
||||||
|
};
|
||||||
|
|
||||||
|
"group/system" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
drawer = {
|
||||||
|
transition-duration = 500;
|
||||||
|
transition-left-to-right = false;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
"network"
|
||||||
|
"custom/mem"
|
||||||
|
"cpu"
|
||||||
|
"temperature"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
network = {
|
||||||
|
format = "{ifname}";
|
||||||
|
format-wifi = " {essid} ({signalStrength}%)";
|
||||||
|
format-ethernet = "{ifname}";
|
||||||
|
format-disconnected = "";
|
||||||
|
tooltip-format = "{ipaddr}";
|
||||||
|
max-length = 50;
|
||||||
|
on-click = "ghostty --title=nmtui -e nmtui";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/weather" = {
|
||||||
|
format = "{}";
|
||||||
|
tooltip = true;
|
||||||
|
interval = 1800;
|
||||||
|
exec = "python3 $HOME/.config/waybar/scripts/wttr.py";
|
||||||
|
return-type = "json";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/mem" = {
|
||||||
|
format = "{} ";
|
||||||
|
interval = 3;
|
||||||
|
exec = "free -h | awk '/Mem:/{printf $3}'";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu = {
|
||||||
|
interval = 2;
|
||||||
|
format = "{usage}% ";
|
||||||
|
min-length = 6;
|
||||||
|
};
|
||||||
|
|
||||||
|
temperature = {
|
||||||
|
hwmon-path = "/sys/class/hwmon/hwmon5/temp1_input";
|
||||||
|
critical-threshold = 80;
|
||||||
|
format = "{temperatureC}°C {icon}";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
style = let
|
||||||
colors = config.lib.stylix.colors.withHashtag;
|
colors = config.lib.stylix.colors.withHashtag;
|
||||||
accent = colors.base0E;
|
accent = colors.base0E;
|
||||||
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: ${colors.base00}80;
|
background: transparent;
|
||||||
color: ${colors.base05};
|
color: ${colors.base05};
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
|
& > * { padding: 0 0 6px 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpris,
|
.modules-center {
|
||||||
#pulseaudio,
|
background: ${colors.base01}CC;
|
||||||
#network,
|
border-radius: 12px;
|
||||||
#battery,
|
padding: 10px;
|
||||||
#cpu,
|
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
|
||||||
#temperature,
|
|
||||||
#custom-mem,
|
|
||||||
#clock {
|
|
||||||
background: ${colors.base01};
|
|
||||||
padding: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#left,
|
||||||
|
#right,
|
||||||
|
#center {
|
||||||
|
background: ${colors.base02};
|
||||||
|
padding: 0 2px;
|
||||||
|
margin: 0 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
#left { margin-left: 0; }
|
||||||
|
#right { margin-right: 0; }
|
||||||
|
|
||||||
|
#clock { padding-right: 10px; }
|
||||||
|
|
||||||
|
#cava { padding: 0 10px; }
|
||||||
|
|
||||||
#language { padding: 8px; }
|
#language { padding: 8px; }
|
||||||
|
|
||||||
#workspaces,
|
|
||||||
#tray {
|
|
||||||
background: ${colors.base01};
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
color: ${colors.base05};
|
color: ${colors.base05};
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
@@ -37,52 +216,51 @@
|
|||||||
border: 1pt solid transparent;
|
border: 1pt solid transparent;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
|
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: ${accent};
|
background: ${accent};
|
||||||
color: ${colors.base00};
|
color: ${colors.base00};
|
||||||
min-width: 30px;
|
min-width: 25px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: ${accent};
|
border-color: ${accent};
|
||||||
background: ${colors.base02};
|
background: ${colors.base03};
|
||||||
color: ${accent};
|
color: ${accent};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpris {
|
#mpris {
|
||||||
border-radius: 0 0 20px 20px;
|
border-radius: 8px;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
&.playing {
|
&.playing {
|
||||||
border: 3px solid ${accent};
|
border: 2px solid ${accent};
|
||||||
border-top-color: transparent;
|
padding: 2px;
|
||||||
padding: calc(10px - 3px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
widget {
|
widget {
|
||||||
border: 1pt solid transparent;
|
border: 1pt solid transparent;
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
& > image { padding: 8px; }
|
& > image { padding: 8px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .passive { border-color: ${colors.base02}; }
|
& > .passive { border-color: ${colors.base03}; }
|
||||||
& > .needs-attention { border-color: ${colors.base09}; }
|
& > .needs-attention { border-color: ${colors.base09}; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
&.muted {
|
&.muted {
|
||||||
background: ${colors.base08};
|
background: ${colors.base08};
|
||||||
color: ${colors.base00};
|
color: ${colors.base01};
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: ${colors.base08};
|
color: ${colors.base08};
|
||||||
background: ${colors.base02};
|
background: ${colors.base03};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -139,4 +317,5 @@
|
|||||||
nativeBuildInputs = [ pkgs.dart-sass ];
|
nativeBuildInputs = [ pkgs.dart-sass ];
|
||||||
} "sass ${scssFile} $out";
|
} "sass ${scssFile} $out";
|
||||||
in builtins.readFile cssFile;
|
in builtins.readFile cssFile;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -142,9 +142,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
gtk4.extraConfig = {
|
gtk4 = {
|
||||||
|
theme = null;
|
||||||
|
extraConfig = {
|
||||||
gtk-application-prefer-dark-theme = true;
|
gtk-application-prefer-dark-theme = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
gtk-application-prefer-dark-theme = true;
|
gtk-application-prefer-dark-theme = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,157 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ osConfig, config, pkgs, lib, ... }: {
|
||||||
programs.waybar.settings.mainBar.spacing = 8;
|
home.packages = with pkgs; [
|
||||||
programs.waybar.style = let
|
font-awesome
|
||||||
|
nerd-fonts.symbols-only
|
||||||
|
playerctl
|
||||||
|
cava
|
||||||
|
pulsemixer
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
|
||||||
|
settings.mainBar = {
|
||||||
|
spacing = 8;
|
||||||
|
|
||||||
|
modules-left = [
|
||||||
|
"hyprland/workspaces"
|
||||||
|
"hyprland/language"
|
||||||
|
"keyboard-state"
|
||||||
|
"cava"
|
||||||
|
];
|
||||||
|
|
||||||
|
modules-center = [
|
||||||
|
"mpris"
|
||||||
|
];
|
||||||
|
|
||||||
|
modules-right = [
|
||||||
|
"tray"
|
||||||
|
"group/system"
|
||||||
|
"pulseaudio"
|
||||||
|
"battery"
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
|
||||||
|
cava = {
|
||||||
|
bars = 14;
|
||||||
|
sleep_timer = 5;
|
||||||
|
hide_on_silence = true;
|
||||||
|
bar_delimiter = 0;
|
||||||
|
input_delay = 0;
|
||||||
|
format-icons = [" " "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"];
|
||||||
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
tooltip = false;
|
||||||
|
interval = 5;
|
||||||
|
format = "{:L%d %b - %H:%M %a}";
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio = {
|
||||||
|
format = "{icon} {volume}%";
|
||||||
|
format-icons = {
|
||||||
|
headphone = "";
|
||||||
|
hands-free = "";
|
||||||
|
headset = "";
|
||||||
|
phone = "";
|
||||||
|
phone-muted = "";
|
||||||
|
portable = "";
|
||||||
|
car = "";
|
||||||
|
default = ["" ""];
|
||||||
|
};
|
||||||
|
on-click = "ghostty --title=pulsemixer -e pulsemixer";
|
||||||
|
};
|
||||||
|
|
||||||
|
mpris = {
|
||||||
|
format = "{dynamic}";
|
||||||
|
dynamic-len = if osConfig.host.laptop then 32 else 64;
|
||||||
|
dynamic-order = [ "title" "artist" "album" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
interval = 5;
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{icon} {capacity}%";
|
||||||
|
format-icons = {
|
||||||
|
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
|
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"keyboard-state" = {
|
||||||
|
capslock = true;
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
locked = "CAPS";
|
||||||
|
unlocked = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"hyprland/language" = {
|
||||||
|
format-en = "en";
|
||||||
|
format-ru = "ru";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
"group/system" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
drawer = {
|
||||||
|
transition-duration = 500;
|
||||||
|
transition-left-to-right = false;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
"network"
|
||||||
|
"custom/mem"
|
||||||
|
"cpu"
|
||||||
|
"temperature"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
network = {
|
||||||
|
format = "{ifname}";
|
||||||
|
format-wifi = " {essid} ({signalStrength}%)";
|
||||||
|
format-ethernet = "{ifname}";
|
||||||
|
format-disconnected = "";
|
||||||
|
tooltip-format = "{ipaddr}";
|
||||||
|
max-length = 50;
|
||||||
|
on-click = "ghostty --title=nmtui -e nmtui";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/weather" = {
|
||||||
|
format = "{}";
|
||||||
|
tooltip = true;
|
||||||
|
interval = 1800;
|
||||||
|
exec = "python3 $HOME/.config/waybar/scripts/wttr.py";
|
||||||
|
return-type = "json";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/mem" = {
|
||||||
|
format = "{} ";
|
||||||
|
interval = 3;
|
||||||
|
exec = "free -h | awk '/Mem:/{printf $3}'";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu = {
|
||||||
|
interval = 2;
|
||||||
|
format = "{usage}% ";
|
||||||
|
min-length = 6;
|
||||||
|
};
|
||||||
|
|
||||||
|
temperature = {
|
||||||
|
hwmon-path = "/sys/class/hwmon/hwmon5/temp1_input";
|
||||||
|
critical-threshold = 80;
|
||||||
|
format = "{temperatureC}°C {icon}";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
style = let
|
||||||
colors = config.lib.stylix.colors.withHashtag;
|
colors = config.lib.stylix.colors.withHashtag;
|
||||||
radius = "6px";
|
radius = "6px";
|
||||||
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
||||||
@@ -14,6 +165,7 @@
|
|||||||
& > * { padding: 8px; }
|
& > * { padding: 8px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cava,
|
||||||
#language,
|
#language,
|
||||||
#mpris,
|
#mpris,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
@@ -138,6 +290,7 @@
|
|||||||
nativeBuildInputs = [ pkgs.dart-sass ];
|
nativeBuildInputs = [ pkgs.dart-sass ];
|
||||||
} "sass ${scssFile} $out";
|
} "sass ${scssFile} $out";
|
||||||
in builtins.readFile cssFile;
|
in builtins.readFile cssFile;
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.layerrule = [
|
wayland.windowManager.hyprland.settings.layerrule = [
|
||||||
"blur on, match:namespace waybar"
|
"blur on, match:namespace waybar"
|
||||||
|
|||||||
Reference in New Issue
Block a user