Compare commits
No commits in common. "581526011bfbb11e36ca22430249cad9615977aa" and "dde21dfb810605dfd8544d4543ee6d1a85f31c1d" have entirely different histories.
581526011b
...
dde21dfb81
10 changed files with 64 additions and 200 deletions
62
flake.lock
generated
62
flake.lock
generated
|
|
@ -40,28 +40,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"awww": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-overlay": "rust-overlay"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1770895252,
|
|
||||||
"narHash": "sha256-TUGZVDcC5xsrWVnpBNosAG1cTy+aWchCWXPyeLZdnGM=",
|
|
||||||
"ref": "refs/heads/main",
|
|
||||||
"rev": "2c86d41d07471f518e24f5cd1f586e4d2a32d12c",
|
|
||||||
"revCount": 1331,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://codeberg.org/LGFae/awww.git"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://codeberg.org/LGFae/awww.git"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"base16": {
|
"base16": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fromYaml": "fromYaml"
|
"fromYaml": "fromYaml"
|
||||||
|
|
@ -160,22 +138,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
"flake-compat_2": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1761588595,
|
|
||||||
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_3": {
|
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767039857,
|
"lastModified": 1767039857,
|
||||||
|
|
@ -369,7 +331,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"cachyos-kernel": "cachyos-kernel",
|
"cachyos-kernel": "cachyos-kernel",
|
||||||
"cachyos-kernel-patches": "cachyos-kernel-patches",
|
"cachyos-kernel-patches": "cachyos-kernel-patches",
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
|
|
@ -589,7 +551,6 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aerothemeplasma-nix": "aerothemeplasma-nix",
|
"aerothemeplasma-nix": "aerothemeplasma-nix",
|
||||||
"apple-silicon": "apple-silicon",
|
"apple-silicon": "apple-silicon",
|
||||||
"awww": "awww",
|
|
||||||
"base16": "base16",
|
"base16": "base16",
|
||||||
"base16-discord": "base16-discord",
|
"base16-discord": "base16-discord",
|
||||||
"catppuccin-discord": "catppuccin-discord",
|
"catppuccin-discord": "catppuccin-discord",
|
||||||
|
|
@ -610,27 +571,6 @@
|
||||||
"tt-schemes": "tt-schemes"
|
"tt-schemes": "tt-schemes"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"awww",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1764038373,
|
|
||||||
"narHash": "sha256-M6w2wNBRelcavoDAyFL2iO4NeWknD40ASkH1S3C0YGM=",
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"rev": "ab3536fe850211a96673c6ffb2cb88aab8071cc9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
|
||||||
|
|
@ -81,11 +81,6 @@
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
awww = {
|
|
||||||
url = "git+https://codeberg.org/LGFae/awww.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
openmw = {
|
openmw = {
|
||||||
url = "gitlab:OpenMW/openmw/01bcd6a6369fe461caaf900354967b4751aede7a";
|
url = "gitlab:OpenMW/openmw/01bcd6a6369fe461caaf900354967b4751aede7a";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
@ -114,7 +109,6 @@
|
||||||
nur,
|
nur,
|
||||||
nixvim,
|
nixvim,
|
||||||
apple-silicon,
|
apple-silicon,
|
||||||
awww,
|
|
||||||
openmw,
|
openmw,
|
||||||
catppuccin-discord,
|
catppuccin-discord,
|
||||||
...
|
...
|
||||||
|
|
@ -158,7 +152,6 @@
|
||||||
niri.overlays.niri
|
niri.overlays.niri
|
||||||
noctalia.overlays.default
|
noctalia.overlays.default
|
||||||
nur.overlays.default
|
nur.overlays.default
|
||||||
awww.overlays.default
|
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
openmw-git = openmw;
|
openmw-git = openmw;
|
||||||
catppuccin-discord-git = catppuccin-discord;
|
catppuccin-discord-git = catppuccin-discord;
|
||||||
|
|
@ -222,7 +215,6 @@
|
||||||
}
|
}
|
||||||
./system
|
./system
|
||||||
./system/searxng
|
./system/searxng
|
||||||
./system/torrenting
|
|
||||||
./system/widevine
|
./system/widevine
|
||||||
./system/shell/fish.nix
|
./system/shell/fish.nix
|
||||||
./system/tailscale
|
./system/tailscale
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
"browser.newtabpage.activity-stream.showWeather" = false;
|
"browser.newtabpage.activity-stream.showWeather" = false;
|
||||||
"browser.download.autoHideButton" = false;
|
"browser.download.autoHideButton" = false;
|
||||||
"browser.startup.homepage" = "http://localhost:5364/";
|
"browser.startup.homepage" = "http://localhost:8080/";
|
||||||
|
|
||||||
# Disable Firefox's machine learning (AI) features
|
# Disable Firefox's machine learning (AI) features
|
||||||
"browser.ml.enable" = false;
|
"browser.ml.enable" = false;
|
||||||
|
|
@ -369,7 +369,7 @@
|
||||||
|
|
||||||
searxng = {
|
searxng = {
|
||||||
name = "SearXNG";
|
name = "SearXNG";
|
||||||
urls = [ { template = "http://localhost:5364/search?q={searchTerms}"; } ];
|
urls = [ { template = "http://localhost:8080/search?q={searchTerms}"; } ];
|
||||||
icon = searchIcon;
|
icon = searchIcon;
|
||||||
definedAliases = [ "@go" ];
|
definedAliases = [ "@go" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
libreoffice-qt-fresh
|
libreoffice-qt-fresh
|
||||||
# nur.repos.forkprince.helium-nightly
|
# nur.repos.forkprince.helium-nightly
|
||||||
chromium
|
chromium
|
||||||
|
qbittorrent
|
||||||
nautilus
|
nautilus
|
||||||
fractal
|
fractal
|
||||||
tuba
|
tuba
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
colors = {
|
colors = {
|
||||||
scheme = "catppuccin-mocha";
|
scheme = "catppuccin-latte";
|
||||||
accent = "base09";
|
accent = "base09";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
input = {
|
input = {
|
||||||
focus-follows-mouse.enable = true;
|
focus-follows-mouse.enable = true;
|
||||||
focus-follows-mouse.max-scroll-amount = "0%";
|
focus-follows-mouse.max-scroll-amount = "0%";
|
||||||
|
warp-mouse-to-focus.enable = true;
|
||||||
mod-key = "Super";
|
mod-key = "Super";
|
||||||
keyboard = {
|
keyboard = {
|
||||||
numlock = false;
|
numlock = false;
|
||||||
|
|
@ -186,14 +187,6 @@
|
||||||
open-maximized = true;
|
open-maximized = true;
|
||||||
open-focused = true;
|
open-focused = true;
|
||||||
}
|
}
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
{
|
|
||||||
app-id = "mpv";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
opacity = 1.0;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
layer-rules = [
|
layer-rules = [
|
||||||
{
|
{
|
||||||
|
|
@ -202,7 +195,7 @@
|
||||||
namespace = "^wpaperd.*";
|
namespace = "^wpaperd.*";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
namespace = "^awww-daemon";
|
namespace = "^mpvpaper";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
place-within-backdrop = true;
|
place-within-backdrop = true;
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
bar = {
|
bar = {
|
||||||
autoHideDelay = 500;
|
autoHideDelay = 500;
|
||||||
autoShowDelay = 150;
|
autoShowDelay = 150;
|
||||||
backgroundOpacity = 0.975;
|
backgroundOpacity = 1;
|
||||||
monitors = [ ];
|
monitors = [ ];
|
||||||
showCapsule = true;
|
showCapsule = true;
|
||||||
barType = "simple";
|
barType = "simple";
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
outerCorners = false;
|
outerCorners = false;
|
||||||
screenOverrides = [ ];
|
screenOverrides = [ ];
|
||||||
showOutline = false;
|
showOutline = false;
|
||||||
useSeparateOpacity = true;
|
useSeparateOpacity = false;
|
||||||
widgets = {
|
widgets = {
|
||||||
center = [ ];
|
center = [ ];
|
||||||
left = [
|
left = [
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
deviceNativePath = "__default__";
|
deviceNativePath = "__default__";
|
||||||
displayMode = "icon-hover";
|
displayMode = "icon-hover";
|
||||||
hideIfIdle = false;
|
hideIfIdle = false;
|
||||||
hideIfNotDetected = true;
|
hideIfNotDetected = false;
|
||||||
id = "Battery";
|
id = "Battery";
|
||||||
showNoctaliaPerformance = false;
|
showNoctaliaPerformance = false;
|
||||||
showPowerProfiles = true;
|
showPowerProfiles = true;
|
||||||
|
|
|
||||||
|
|
@ -3,77 +3,68 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
systemd.user.services.awww-daemon = {
|
systemd.user.services.mpvpaper = {
|
||||||
Unit.Description = "Wallpaper service using awww (daemon)";
|
Unit = {
|
||||||
Service.ExecStart = "${pkgs.awww}/bin/awww-daemon";
|
Description = "Modern wallpaper daemon for Wayland";
|
||||||
Unit.After = [ "graphical-session.target" ];
|
PartOf = [ "niri.service" ];
|
||||||
Unit.PartOf = [ "graphical-session.target" ];
|
Requires = [ "niri.service" ];
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
After = [ "niri.service" ];
|
||||||
};
|
};
|
||||||
|
Service = {
|
||||||
systemd.user.services.awww-setter = {
|
ExecStart = ''
|
||||||
Unit.Description = "Wallpaper service using awww (setter)";
|
${pkgs.mpvpaper}/bin/mpvpaper '*' \
|
||||||
Unit.Requires = [ "awww-daemon.service" ];
|
'/home/sckova/.local/share/wallpaper/daily.jpg' \
|
||||||
Unit.After = [ "awww-daemon.service" ];
|
-o '--keep-open=always --save-position-on-quit' \
|
||||||
Service.Type = "oneshot";
|
'';
|
||||||
Service.ExecStart = ''
|
};
|
||||||
${pkgs.awww}/bin/awww img \
|
Install = {
|
||||||
%h/.local/share/wallpaper/daily.jpg \
|
WantedBy = [ "niri.service" ];
|
||||||
--transition-step 2 \
|
};
|
||||||
--transition-fps 60
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.bing-wallpaper = {
|
systemd.user.services.bing-wallpaper = {
|
||||||
Unit.Description = "Download and set Bing wallpaper of the day";
|
Unit = {
|
||||||
Unit.StartLimitBurst = 5;
|
Description = "Download and set Bing wallpaper of the day";
|
||||||
Unit.StartLimitIntervalSec = "10m";
|
After = [ "network-online.target" ];
|
||||||
Service.Restart = "on-failure";
|
Wants = [ "network-online.target" ];
|
||||||
Service.RestartSec = "1m";
|
};
|
||||||
Service.Type = "oneshot";
|
Service = {
|
||||||
Service.ExecStart = pkgs.lib.getExe (
|
Type = "oneshot";
|
||||||
pkgs.writeShellApplication {
|
ExecStart = pkgs.writeShellScript "bing-wallpaper" ''
|
||||||
name = "bing-wallpaper";
|
OUT="''${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper/daily.jpg"
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
wget
|
|
||||||
jq
|
|
||||||
coreutils
|
|
||||||
libnotify
|
|
||||||
];
|
|
||||||
text = ''
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
OUT_DIR="''${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper"
|
API_RESP=$(${pkgs.wget}/bin/wget -qO- "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&mkt=en-US&n=1") || exit 1
|
||||||
OUT_FILE="$OUT_DIR/daily.jpg"
|
|
||||||
|
|
||||||
API_URL="https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&mkt=en-US&n=1"
|
URL_BASE=$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'urlbase":"[^"]*' | cut -d '"' -f 3)
|
||||||
API_RESP=$(wget -qO- "$API_URL")
|
TITLE=$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'title":"[^"]*' | cut -d '"' -f 3)
|
||||||
|
|
||||||
URL_BASE=$(echo "$API_RESP" | jq -r '.images[0].urlbase')
|
${pkgs.coreutils}/bin/mkdir -p "$(dirname "$OUT")"
|
||||||
URL_FALLBACK=$(echo "$API_RESP" | jq -r '.images[0].url')
|
${pkgs.wget}/bin/wget -qO "$OUT" "https://www.bing.com$URL_BASE\_UHD.jpg" || \
|
||||||
TITLE=$(echo "$API_RESP" | jq -r '.images[0].title')
|
${pkgs.wget}/bin/wget -qO "$OUT" "https://www.bing.com$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'url":"[^"]*' | cut -d '"' -f 3)"
|
||||||
|
|
||||||
mkdir -p "$OUT_DIR"
|
${pkgs.libnotify}/bin/notify-send \
|
||||||
|
-a "Bing Wallpaper Service" \
|
||||||
if ! wget -qO "$OUT_FILE" "https://www.bing.com''${URL_BASE}_UHD.jpg"; then
|
-u low \
|
||||||
wget -qO "$OUT_FILE" "https://www.bing.com$URL_FALLBACK"
|
-i preferences-desktop-wallpaper \
|
||||||
fi
|
"$TITLE"
|
||||||
|
'';
|
||||||
notify-send \
|
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart mpvpaper.service";
|
||||||
-a "wallpaper of the day" \
|
};
|
||||||
-u low \
|
Install = {
|
||||||
-i preferences-desktop-wallpaper \
|
WantedBy = [ "niri.service" ];
|
||||||
"$TITLE"
|
};
|
||||||
'';
|
|
||||||
}
|
|
||||||
);
|
|
||||||
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart awww-setter.service";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.timers.bing-wallpaper = {
|
systemd.user.timers.bing-wallpaper = {
|
||||||
Unit.Description = "Run bing wallpaper retrieval daily";
|
Unit = {
|
||||||
Timer.OnCalendar = "*-*-* 10:00:00 GMT";
|
Description = "Run bing wallpaper retrieval daily";
|
||||||
Timer.Persistent = true;
|
};
|
||||||
Install.WantedBy = [ "timers.target" ];
|
Timer = {
|
||||||
|
OnCalendar = "*-*-* 10:00:00 GMT";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
pkgs.runCommand "gen-key" { buildInputs = [ pkgs.openssl ]; } "openssl rand -hex 32 > $out"
|
pkgs.runCommand "gen-key" { buildInputs = [ pkgs.openssl ]; } "openssl rand -hex 32 > $out"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
port = 5364;
|
port = 8080;
|
||||||
bind_address = "127.0.0.1";
|
bind_address = "127.0.0.1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
users.users.sckova.extraGroups = [ "qbittorrent" ];
|
|
||||||
services = {
|
|
||||||
qbittorrent = {
|
|
||||||
enable = true;
|
|
||||||
serverConfig = {
|
|
||||||
Preferences = {
|
|
||||||
Advanced.useSystemIconTheme = true;
|
|
||||||
General = {
|
|
||||||
CloseToTray = false;
|
|
||||||
CloseToTrayNotified = true;
|
|
||||||
ExitConfirm = false;
|
|
||||||
Locale = "en";
|
|
||||||
};
|
|
||||||
WebUI = {
|
|
||||||
Address = "*";
|
|
||||||
Enabled = true;
|
|
||||||
Port = 9697;
|
|
||||||
UseUPnP = false;
|
|
||||||
};
|
|
||||||
BitTorrent = {
|
|
||||||
SessionGlobalDLSpeedLimit = 0;
|
|
||||||
GlobalUPSpeedLimit = 0;
|
|
||||||
Port = 42578;
|
|
||||||
QueueingSystemEnabled = false;
|
|
||||||
SSL.Port = 63114;
|
|
||||||
StartPaused = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
flaresolverr = {
|
|
||||||
enable = true;
|
|
||||||
port = 8191;
|
|
||||||
};
|
|
||||||
prowlarr = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
server = {
|
|
||||||
urlbase = "localhost";
|
|
||||||
port = 9696;
|
|
||||||
bindaddress = "*";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue