chore: update flake & niri blur

This commit is contained in:
danny 2026-03-06 17:06:53 +08:00
parent 601dfb9217
commit 98b4f598f8
36 changed files with 516 additions and 317 deletions

View file

@ -83,10 +83,7 @@ in
hostName = hostname;
https = https;
datadir = lib.mkIf (datadir != null) datadir;
phpExtraExtensions =
allEx: with allEx; [
imagick
];
enableImagemagick = true;
extraApps = {
inherit (config.services.nextcloud.package.packages.apps)
@ -132,6 +129,7 @@ in
"OC\\Preview\\HEIC"
"OC\\Preview\\SVG"
"OC\\Preview\\FONT"
"OC\\Preview\\Movie"
];
};
};

View file

@ -108,9 +108,40 @@ in
};
};
blur = {
passes = 3;
offset = 3;
noise = 0.02;
saturation = 1.5;
};
debug = {
honor-xdg-activation-with-invalid-serial = [ ];
};
layer-rules = [
{
matches = [
{ namespace = "^noctalia-overview*"; }
];
place-within-backdrop = true;
}
{
matches = [
{ namespace = "^noctalia-background-.*$"; }
];
background-effect = {
blur = true;
};
}
];
window-rules = [
# Global
{
background-effect = {
blur = true;
};
geometry-corner-radius =
let
round = wmCfg.border.radius + 0.0;
@ -122,9 +153,17 @@ in
top-right = round;
};
clip-to-geometry = true;
opacity = 1.0;
opacity = 0.8;
draw-border-with-background = false;
}
# non transparent
{
matches = [
{ app-id = "^(com.mitchellh.ghostty)$"; }
{ app-id = "^(zen-twilight)$"; }
];
opacity = 1.0;
}
# Float
{
matches = [

View file

@ -54,7 +54,22 @@ lib.checkListOfEnum "Nvidia Prime Mode" validModes [ nvidia-mode ] {
nvidia.nvidiaSettings = true;
nvidia.dynamicBoost.enable = true;
nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
nvidia.package =
let
base = config.boot.kernelPackages.nvidiaPackages.latest;
cachyos-nvidia-patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/master/nvidia/nvidia-utils/kernel-6.19.patch";
sha256 = "sha256-YuJjSUXE6jYSuZySYGnWSNG5sfVei7vvxDcHx3K+IN4=";
};
driverAttr = if config.hardware.nvidia.open then "open" else "bin";
in
base
// {
${driverAttr} = base.${driverAttr}.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [ cachyos-nvidia-patch ];
});
};
nvidia.prime =
(

View file

@ -25,5 +25,5 @@ in
];
# Disable man cache
documentation.man.generateCaches = mkForce false;
documentation.man.cache.enable = mkForce false;
}

View file

@ -130,6 +130,15 @@ in
id = "NotificationHistory";
showUnreadBadge = true;
}
{
deviceNativePath = "__default__";
displayMode = "graphic";
hideIfIdle = false;
hideIfNotDetected = true;
id = "Battery";
showNoctaliaPerformance = true;
showPowerProfiles = true;
}
{
colorizeDistroLogo = false;
colorizeSystemIcon = "primary";

View file

@ -59,6 +59,7 @@ in
programs.noctalia-shell = {
enable = true;
systemd.enable = true;
colors = mkForce { };
settings = {
settingsVersion = 26;
appLauncher = {
@ -126,7 +127,7 @@ in
};
controlCenter = import ./controlCenter.nix;
dock = {
backgroundOpacity = 1.0;
backgroundOpacity = mkForce 1.0;
colorizeIcons = false;
displayMode = "auto_hide";
enabled = false;
@ -159,6 +160,8 @@ in
shadowOffsetY = 3;
showHibernateOnLockScreen = false;
showScreenCorners = true;
lockScreenAnimation = true;
lockScreenCountdownDuration = 3000;
};
hooks = {
enabled = false;
@ -190,7 +193,8 @@ in
manualSunset = "18:30";
};
notifications = {
backgroundOpacity = 1.0;
enableMarkdown = true;
backgroundOpacity = mkForce 1.00;
criticalUrgencyDuration = 15;
enableKeyboardLayoutToast = true;
enabled = true;
@ -204,7 +208,7 @@ in
};
osd = {
autoHideMs = 1500;
backgroundOpacity = 1.0;
backgroundOpacity = mkForce 0.55;
enabled = true;
enabledTypes = [
0
@ -249,7 +253,7 @@ in
hideWallpaperFilenames = true;
monitorDirectories = [
];
overviewEnabled = false;
overviewEnabled = true;
panelPosition = "follow_bar";
randomEnabled = false;
randomIntervalSec = 300;

View file

@ -1,5 +1,5 @@
{
countdownDuration = 10000;
countdownDuration = 3000;
enableCountdown = true;
position = "bottom_center";
powerOptions = [

View file

@ -12,6 +12,18 @@ in
};
};
home-manager.sharedModules = [
{
sops = {
defaultSopsFile = defaultSopsFile;
age = {
keyFile = ageKeyFile;
};
};
}
];
environment.variables = {
SOPS_AGE_KEY_FILE = ageKeyFile;
};

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
wineWowPackages.waylandFull # 32-bit & 64-bit
wineWow64Packages.waylandFull
winetricks
];
}