Compare commits
19 commits
ea75affaac
...
ef743497fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
ef743497fd |
|||
|
f31403df40 |
|||
|
578f23fea0 |
|||
|
a2a60cc81c |
|||
|
c5dcfce75f |
|||
|
c4eae904f3 |
|||
|
9403b98754 |
|||
|
b3e6f7f175 |
|||
|
a112c46355 |
|||
|
46cd9eec30 |
|||
|
7b6e3a2deb |
|||
|
edb0bb4528 |
|||
|
30b103d349 |
|||
|
9be05afa2d |
|||
|
118b190aba |
|||
|
15f796401e |
|||
|
1b3c7412ae |
|||
|
1a0012bbf3 |
|||
|
0395c66547 |
17 changed files with 424 additions and 403 deletions
50
flake.lock
generated
50
flake.lock
generated
|
|
@ -269,8 +269,12 @@
|
|||
},
|
||||
"niri": {
|
||||
"inputs": {
|
||||
"niri-stable": "niri-stable",
|
||||
"niri-unstable": "niri-unstable",
|
||||
"niri-stable": [
|
||||
"niri-blur"
|
||||
],
|
||||
"niri-unstable": [
|
||||
"niri-blur"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
|
|
@ -281,48 +285,33 @@
|
|||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1771514840,
|
||||
"narHash": "sha256-t3WbZvwoDj/75YDX/nwkZuxanZLZaWr9meSfKswaN6g=",
|
||||
"owner": "sodiboo",
|
||||
"lastModified": 1771682768,
|
||||
"narHash": "sha256-RJ9RVJSAktCgWiqLDCjYmx9KgMuLaszUrI28k92Pa2I=",
|
||||
"owner": "sckova",
|
||||
"repo": "niri-flake",
|
||||
"rev": "4f69ab280e9bb34e2c0b67fdfa6f0978a170ef56",
|
||||
"rev": "383bd9d32706b163807b05983418069b2e692310",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "sodiboo",
|
||||
"owner": "sckova",
|
||||
"ref": "feat/blur",
|
||||
"repo": "niri-flake",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"niri-stable": {
|
||||
"niri-blur": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1756556321,
|
||||
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
|
||||
"owner": "YaLTeR",
|
||||
"lastModified": 1771672342,
|
||||
"narHash": "sha256-52CxMRH2kVGpsPBiZM+996b6i/3XkmOrySm5zqwWc+o=",
|
||||
"owner": "niri-wm",
|
||||
"repo": "niri",
|
||||
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
|
||||
"rev": "86f42d1ed9ab787c52ace073e0b3218e26530d25",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "YaLTeR",
|
||||
"ref": "v25.08",
|
||||
"repo": "niri",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1771305475,
|
||||
"narHash": "sha256-lqweVTwHhYc+9T33cysp38gVwxaibGJHriOPZXWyhCY=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "a2a52911757cb3b497db9407592f9b4c439571ea",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "YaLTeR",
|
||||
"owner": "niri-wm",
|
||||
"ref": "wip/branch",
|
||||
"repo": "niri",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -555,6 +544,7 @@
|
|||
"catppuccin-discord": "catppuccin-discord",
|
||||
"home-manager": "home-manager",
|
||||
"niri": "niri",
|
||||
"niri-blur": "niri-blur",
|
||||
"nix-cachyos-kernel": "nix-cachyos-kernel",
|
||||
"nixpkgs": [
|
||||
"nixpkgs-unstable"
|
||||
|
|
|
|||
22
flake.nix
22
flake.nix
|
|
@ -44,11 +44,16 @@
|
|||
};
|
||||
|
||||
niri = {
|
||||
url = "github:sodiboo/niri-flake";
|
||||
url = "github:sckova/niri-flake/feat/blur";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
|
||||
# inputs.niri-stable.follows = "niri-blur";
|
||||
# inputs.niri-unstable.follows = "niri-blur";
|
||||
inputs.niri-stable.follows = "niri-blur";
|
||||
inputs.niri-unstable.follows = "niri-blur";
|
||||
};
|
||||
|
||||
niri-blur = {
|
||||
url = "github:niri-wm/niri/wip/branch";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
# niri-blur = {
|
||||
|
|
@ -215,6 +220,7 @@
|
|||
}
|
||||
./system
|
||||
./system/searxng
|
||||
./system/torrenting
|
||||
./system/widevine
|
||||
./system/shell/fish.nix
|
||||
./system/tailscale
|
||||
|
|
@ -306,14 +312,15 @@
|
|||
{ nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ]; }
|
||||
];
|
||||
};
|
||||
|
||||
alien =
|
||||
mkNixosSystem {
|
||||
alien = mkNixosSystem {
|
||||
hostname = "alien";
|
||||
system = "x86_64-linux";
|
||||
extraModules = [
|
||||
{ nixpkgs.overlays = [ nix-cachyos-kernel.overlays.pinned ]; }
|
||||
{
|
||||
nixpkgs.overlays = [ nix-cachyos-kernel.overlays.pinned ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
// nixpkgs.lib.genAttrs supportedSystems (
|
||||
system:
|
||||
|
|
@ -322,7 +329,6 @@
|
|||
inherit system;
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
peach = mkHomeConfig {
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@
|
|||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||
"browser.newtabpage.activity-stream.showWeather" = false;
|
||||
"browser.download.autoHideButton" = false;
|
||||
"browser.startup.homepage" = "http://localhost:8080/";
|
||||
"browser.startup.homepage" = "http://localhost:5364/";
|
||||
|
||||
# Disable Firefox's machine learning (AI) features
|
||||
"browser.ml.enable" = false;
|
||||
|
|
@ -369,7 +369,7 @@
|
|||
|
||||
searxng = {
|
||||
name = "SearXNG";
|
||||
urls = [ { template = "http://localhost:8080/search?q={searchTerms}"; } ];
|
||||
urls = [ { template = "http://localhost:5364/search?q={searchTerms}"; } ];
|
||||
icon = searchIcon;
|
||||
definedAliases = [ "@go" ];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
.browserContainer {
|
||||
/*.browserContainer {
|
||||
border-radius: 8px !important;
|
||||
margin: 6px !important;
|
||||
background-color: transparent !important;
|
||||
|
|
@ -22,4 +22,4 @@
|
|||
|
||||
browser {
|
||||
border-radius: 8px !important;
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
libreoffice-qt-fresh
|
||||
# nur.repos.forkprince.helium-nightly
|
||||
chromium
|
||||
qbittorrent
|
||||
nautilus
|
||||
fractal
|
||||
tuba
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [ openmw ];
|
||||
sessionVariables = {
|
||||
SDL_VIDEO_DRIVER = "wayland";
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [ openmw ];
|
||||
home.sessionVariables.SDL_VIDEO_DRIVER = "wayland";
|
||||
|
||||
programs.firefox.profiles.default.search.engines.uesp = {
|
||||
name = "Unofficial Elder Scrolls Pages";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
colors = {
|
||||
scheme = "catppuccin-latte";
|
||||
scheme = "pnevma";
|
||||
accent = "base09";
|
||||
};
|
||||
|
||||
|
|
@ -19,17 +18,26 @@
|
|||
moonlight-qt
|
||||
];
|
||||
|
||||
# https://github.com/YaLTeR/niri/issues/2330#issuecomment-3256864777
|
||||
programs.niri.settings.debug = {
|
||||
render-drm-device = "/dev/dri/card2";
|
||||
};
|
||||
|
||||
programs.noctalia-shell.settings.bar = {
|
||||
programs = {
|
||||
noctalia-shell.settings.bar = {
|
||||
position = "top";
|
||||
density = "spacious";
|
||||
};
|
||||
|
||||
programs.plasma = lib.mkDefault {
|
||||
niri.settings.outputs."eDP-1" = {
|
||||
scale = 1.5;
|
||||
mode = {
|
||||
width = 3024;
|
||||
height = 1964;
|
||||
refresh = 60.000;
|
||||
};
|
||||
position = {
|
||||
x = 272;
|
||||
y = 1440;
|
||||
};
|
||||
};
|
||||
|
||||
plasma = lib.mkDefault {
|
||||
input.touchpads = [
|
||||
{
|
||||
name = "Apple MTP multi-touch";
|
||||
|
|
@ -48,4 +56,5 @@
|
|||
org_kde_powerdevil.Sleep = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
home.sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
# this makes electron apps work per the wiki
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
gtk = {
|
||||
|
|
|
|||
|
|
@ -28,16 +28,14 @@
|
|||
Description = "Mount Synology NAS with Rclone and Home Manager.";
|
||||
After = [ "tailscaled.service" ];
|
||||
Wants = [ "tailscaled.service" ];
|
||||
StartLimitBurst = 5;
|
||||
StartLimitIntervalSec = "1m";
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
# ExecStartPre = "${pkgs.writeShellScript "synology-prep" ''
|
||||
# if mountpoint -q %h/Synology; then
|
||||
# /run/wrappers/bin/fusermount -uz %h/Synology
|
||||
# fi
|
||||
# ${pkgs.coreutils}/bin/mkdir -p %h/Synology
|
||||
# ''}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "1m";
|
||||
ExecStart = "${pkgs.writeShellScript "synology-mount" ''
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
|
@ -65,49 +63,4 @@
|
|||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
# systemd.user.services.synology-prefill = {
|
||||
# Unit = {
|
||||
# Description = "Prefill Synology NAS rclone cache";
|
||||
# After = [ "synology-mount.service" ];
|
||||
# Wants = [ "synology-mount.service" ];
|
||||
# };
|
||||
|
||||
# Service = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.writeShellScript "synology-prefill" ''
|
||||
# #!/usr/bin/env bash
|
||||
# set -euo pipefail
|
||||
# ${pkgs.rclone}/bin/rclone rc vfs/refresh -v --fast-list recursive=true >/dev/null
|
||||
# ''}";
|
||||
# StandardOutput = "journal";
|
||||
# StandardError = "journal";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
|
||||
# Install = {
|
||||
# WantedBy = [ "default.target" ];
|
||||
# };
|
||||
# };
|
||||
|
||||
# systemd.user.services.input-leap = {
|
||||
# Unit = {
|
||||
# Description = "Autostart Input Leap";
|
||||
# After = [ "graphical-session.target" ];
|
||||
# };
|
||||
|
||||
# Service = {
|
||||
# Type = "oneshot";
|
||||
# RemainAfterExit = true;
|
||||
# PassEnvironment = "DISPLAY";
|
||||
# ExecStart = "${pkgs.writeShellScript "input-leap-start" ''
|
||||
# sleep 5
|
||||
# ${pkgs.input-leap}/bin/input-leap
|
||||
# ''}";
|
||||
# };
|
||||
|
||||
# Install = {
|
||||
# WantedBy = [ "graphical-session.target" ];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
home.sessionVariables.EDITOR = lib.mkForce "kitty nvim";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.qtdeclarative
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
@ -17,7 +16,7 @@
|
|||
XCURSOR_THEME = config.userOptions.cursor.name;
|
||||
XCURSOR_SIZE = toString config.userOptions.cursor.size;
|
||||
};
|
||||
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
||||
screenshot-path = "~/Pictures/Screenshots/%a %b %e %Y @%l:%M %p.png";
|
||||
hotkey-overlay.skip-at-startup = true;
|
||||
prefer-no-csd = true;
|
||||
gestures.hot-corners.enable = false;
|
||||
|
|
@ -29,7 +28,6 @@
|
|||
input = {
|
||||
focus-follows-mouse.enable = true;
|
||||
focus-follows-mouse.max-scroll-amount = "0%";
|
||||
warp-mouse-to-focus.enable = true;
|
||||
mod-key = "Super";
|
||||
keyboard = {
|
||||
numlock = false;
|
||||
|
|
@ -50,13 +48,6 @@
|
|||
};
|
||||
};
|
||||
outputs = {
|
||||
"eDP-1" = {
|
||||
scale = 1.5;
|
||||
position = {
|
||||
x = 272;
|
||||
y = 1440;
|
||||
};
|
||||
};
|
||||
"HDMI-A-1" = {
|
||||
mode = {
|
||||
width = 3840;
|
||||
|
|
@ -84,17 +75,13 @@
|
|||
};
|
||||
cursor = {
|
||||
hide-when-typing = false;
|
||||
# hide-after-inactive-ms = 10000;
|
||||
size = config.userOptions.cursor.size;
|
||||
theme = config.userOptions.cursor.name;
|
||||
};
|
||||
layout = {
|
||||
gaps = 4;
|
||||
# background-color = base10;
|
||||
background-color = "transparent";
|
||||
default-column-width = {
|
||||
proportion = 0.5;
|
||||
};
|
||||
default-column-width.proportion = 0.5;
|
||||
preset-column-widths = [
|
||||
{ proportion = 4.0 / 12.0; }
|
||||
{ proportion = 6.0 / 12.0; }
|
||||
|
|
@ -103,16 +90,16 @@
|
|||
border = {
|
||||
enable = true;
|
||||
width = 2;
|
||||
active.color = config.scheme.withHashtag.${config.colors.accent};
|
||||
inactive.color = base01;
|
||||
urgent.color = base12;
|
||||
active.color = config.scheme.withHashtag.${config.colors.accent} + "E6";
|
||||
inactive.color = base01 + "E6";
|
||||
urgent.color = base12 + "E6";
|
||||
};
|
||||
focus-ring = {
|
||||
enable = false;
|
||||
width = 2;
|
||||
active.color = config.scheme.withHashtag.${config.colors.accent};
|
||||
inactive.color = base01;
|
||||
urgent.color = base12;
|
||||
active.color = config.scheme.withHashtag.${config.colors.accent} + "E6";
|
||||
inactive.color = base01 + "E6";
|
||||
urgent.color = base12 + "E6";
|
||||
};
|
||||
shadow = {
|
||||
enable = true;
|
||||
|
|
@ -122,12 +109,6 @@
|
|||
softness = 30;
|
||||
color = base11 + "BF";
|
||||
};
|
||||
# blur = {
|
||||
# enable = true;
|
||||
# passes = 4;
|
||||
# radius = 4;
|
||||
# noise = 0.1;
|
||||
# };
|
||||
};
|
||||
window-rules = [
|
||||
{
|
||||
|
|
@ -138,7 +119,14 @@
|
|||
bottom-right = 8.0;
|
||||
};
|
||||
clip-to-geometry = true;
|
||||
opacity = 1.0;
|
||||
opacity = 0.90;
|
||||
background-effect = {
|
||||
xray = false;
|
||||
blur = true;
|
||||
noise = 0.05;
|
||||
saturation = 1;
|
||||
};
|
||||
draw-border-with-background = false;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
|
|
@ -159,9 +147,20 @@
|
|||
{
|
||||
app-id = "vesktop$";
|
||||
}
|
||||
{
|
||||
app-id = "org.gnome.Nautilus$";
|
||||
}
|
||||
];
|
||||
block-out-from = "screen-capture";
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
is-active = false;
|
||||
}
|
||||
];
|
||||
opacity = 0.90;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
|
|
@ -173,17 +172,64 @@
|
|||
title = "Minecraft";
|
||||
}
|
||||
];
|
||||
open-maximized = true;
|
||||
open-maximized-to-edges = true;
|
||||
open-focused = true;
|
||||
opacity = 1.00;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "mpv";
|
||||
}
|
||||
{
|
||||
app-id = "firefox";
|
||||
title = "Picture-in-Picture";
|
||||
}
|
||||
];
|
||||
opacity = 1.0;
|
||||
}
|
||||
{
|
||||
# Kitty Fastfetch window
|
||||
matches = [
|
||||
{
|
||||
app-id = "kitty";
|
||||
title = "^fastfetch$";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
baba-is-float = true;
|
||||
min-width = 960;
|
||||
min-height = 480;
|
||||
max-width = 960;
|
||||
max-height = 480;
|
||||
}
|
||||
];
|
||||
layer-rules = [
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
namespace = "^wpaperd.*";
|
||||
matches = [ { namespace = "noctalia-bar-content-.*$"; } ];
|
||||
background-effect = {
|
||||
xray = false;
|
||||
blur = true;
|
||||
noise = 0.05;
|
||||
saturation = 1;
|
||||
};
|
||||
}
|
||||
];
|
||||
{
|
||||
matches = [ { namespace = "noctalia-bar-exclusion-top-.*$"; } ];
|
||||
place-within-backdrop = true;
|
||||
}
|
||||
{
|
||||
matches = [ { namespace = "^launcher$"; } ];
|
||||
opacity = 0.90;
|
||||
background-effect = {
|
||||
xray = false;
|
||||
blur = true;
|
||||
noise = 0.05;
|
||||
saturation = 1;
|
||||
};
|
||||
}
|
||||
{
|
||||
matches = [ { namespace = "^wallpaper$"; } ];
|
||||
place-within-backdrop = true;
|
||||
}
|
||||
];
|
||||
|
|
@ -194,6 +240,10 @@
|
|||
action.spawn = [ "kitty" ];
|
||||
hotkey-overlay.title = "Open a Terminal: kitty";
|
||||
};
|
||||
"Mod+Shift+T" = {
|
||||
action.spawn-sh = [ "kitty --title fastfetch sh -c 'fastfetch; sleep 10'" ];
|
||||
hotkey-overlay.title = "Open a Terminal with Fastfetch";
|
||||
};
|
||||
"Mod+Space" = {
|
||||
action.spawn = [ "fuzzel" ];
|
||||
hotkey-overlay.title = "Run an Application: Noctalia app launcher";
|
||||
|
|
@ -342,29 +392,13 @@
|
|||
allow-when-locked = true;
|
||||
};
|
||||
|
||||
"XF86Sleep" = {
|
||||
action.power-off-monitors = { };
|
||||
};
|
||||
"XF86Sleep".action.power-off-monitors = { };
|
||||
|
||||
"XF86Search" = {
|
||||
action.spawn = [
|
||||
"noctalia-shell"
|
||||
"ipc"
|
||||
"call"
|
||||
"launcher"
|
||||
"toggle"
|
||||
];
|
||||
allow-when-locked = true;
|
||||
};
|
||||
"XF86Search".action.spawn = [ "fuzzel" ];
|
||||
|
||||
"XF86LaunchA" = {
|
||||
action.spawn = [
|
||||
"niri"
|
||||
"msg"
|
||||
"action"
|
||||
"toggle-overview"
|
||||
];
|
||||
allow-when-locked = true;
|
||||
action.toggle-overview = { };
|
||||
repeat = false;
|
||||
};
|
||||
|
||||
"Mod+O" = {
|
||||
|
|
@ -492,18 +526,15 @@
|
|||
"Mod+Ctrl+Shift+F".action.fullscreen-window = { };
|
||||
|
||||
"Mod+C".action.center-column = { };
|
||||
|
||||
"Mod+Ctrl+C".action.center-visible-columns = { };
|
||||
|
||||
"Mod+Minus".action.set-column-width = "-10%";
|
||||
"Mod+Equal".action.set-column-width = "+10%";
|
||||
|
||||
"Mod+Shift+Minus".action.set-window-height = "-10%";
|
||||
"Mod+Shift+Equal".action.set-window-height = "+10%";
|
||||
|
||||
"Mod+Ctrl+Minus".action.set-column-width = "-0.25%";
|
||||
"Mod+Ctrl+Equal".action.set-column-width = "+0.25%";
|
||||
|
||||
"Mod+Ctrl+Shift+Minus".action.set-window-height = "-0.25%";
|
||||
"Mod+Ctrl+Shift+Equal".action.set-window-height = "+0.25%";
|
||||
|
||||
|
|
@ -512,18 +543,9 @@
|
|||
|
||||
"Mod+W".action.toggle-column-tabbed-display = { };
|
||||
|
||||
"Print".action.screenshot = {
|
||||
show-pointer = false;
|
||||
};
|
||||
"Mod+Shift+S".action.screenshot = {
|
||||
show-pointer = false;
|
||||
};
|
||||
"Ctrl+Print".action.screenshot-screen = {
|
||||
show-pointer = false;
|
||||
};
|
||||
"Alt+Print".action.screenshot-window = {
|
||||
show-pointer = false;
|
||||
};
|
||||
"Mod+Shift+S".action.screenshot.show-pointer = false;
|
||||
"Ctrl+Shift+S".action.screenshot-screen.show-pointer = false;
|
||||
"Alt+Shift+S".action.screenshot-window.show-pointer = false;
|
||||
|
||||
"Mod+Escape" = {
|
||||
action.toggle-keyboard-shortcuts-inhibit = { };
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
bar = {
|
||||
autoHideDelay = 500;
|
||||
autoShowDelay = 150;
|
||||
backgroundOpacity = 1;
|
||||
backgroundOpacity = 0.90;
|
||||
monitors = [ ];
|
||||
showCapsule = true;
|
||||
barType = "simple";
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
outerCorners = false;
|
||||
screenOverrides = [ ];
|
||||
showOutline = false;
|
||||
useSeparateOpacity = false;
|
||||
useSeparateOpacity = true;
|
||||
widgets = {
|
||||
center = [ ];
|
||||
left = [
|
||||
|
|
@ -206,7 +206,7 @@
|
|||
deviceNativePath = "__default__";
|
||||
displayMode = "icon-hover";
|
||||
hideIfIdle = false;
|
||||
hideIfNotDetected = false;
|
||||
hideIfNotDetected = true;
|
||||
id = "Battery";
|
||||
showNoctaliaPerformance = false;
|
||||
showPowerProfiles = true;
|
||||
|
|
@ -613,8 +613,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "niri.service" ];
|
||||
};
|
||||
Install.WantedBy = [ "niri.service" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,78 +4,104 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
wpaperd
|
||||
];
|
||||
|
||||
home.file.".config/wpaperd/config.toml" = {
|
||||
text = ''
|
||||
[default]
|
||||
mode = "center"
|
||||
[any]
|
||||
path = "/home/${config.userOptions.username}/.local/share/wallpaper/daily.jpg"
|
||||
systemd.user.services.wbg-daemon = {
|
||||
Unit.Description = "Wallpaper service using wbg (daemon)";
|
||||
Service.ExecStart = ''
|
||||
${pkgs.wbg}/bin/wbg -s \
|
||||
%h/.local/share/wallpaper/daily-colored.jpg
|
||||
'';
|
||||
force = true;
|
||||
};
|
||||
|
||||
systemd.user.services.wpaperd = {
|
||||
Unit = {
|
||||
Description = "Modern wallpaper daemon for Wayland";
|
||||
PartOf = [ "niri.service" ];
|
||||
Requires = [ "niri.service" ];
|
||||
After = [ "niri.service" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.wpaperd}/bin/wpaperd";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "niri.service" ];
|
||||
};
|
||||
Install.WantedBy = [ "niri.service" ];
|
||||
};
|
||||
|
||||
systemd.user.services.bing-wallpaper = {
|
||||
Unit = {
|
||||
Description = "Download and set Bing wallpaper of the day";
|
||||
After = [ "network-online.target" ];
|
||||
Wants = [ "network-online.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = pkgs.writeShellScript "bing-wallpaper" ''
|
||||
OUT="''${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper/daily.jpg"
|
||||
Unit.Description = "Download and set Bing wallpaper of the day";
|
||||
Unit.StartLimitBurst = 6;
|
||||
Unit.StartLimitIntervalSec = "10m";
|
||||
Service.Restart = "on-failure";
|
||||
Service.RestartSec = "10s";
|
||||
Service.Type = "oneshot";
|
||||
Service.ExecStart = pkgs.lib.getExe (
|
||||
pkgs.writeShellApplication {
|
||||
name = "bing-wallpaper";
|
||||
runtimeInputs = with pkgs; [
|
||||
wget
|
||||
jq
|
||||
coreutils
|
||||
libnotify
|
||||
];
|
||||
text = ''
|
||||
OUT="$HOME/.local/share/wallpaper/daily.jpg"
|
||||
API=$(wget -qO- "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&mkt=en-US&n=1")
|
||||
BASE=$(echo "$API" | jq -r '.images[0].urlbase')
|
||||
TITLE=$(echo "$API" | jq -r '.images[0].title')
|
||||
|
||||
API_RESP=$(${pkgs.wget}/bin/wget -qO- "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&mkt=en-US&n=1") || exit 1
|
||||
mkdir -p "$HOME/.local/share/wallpaper"
|
||||
wget -qO "$OUT" "https://www.bing.com''${BASE}_UHD.jpg"
|
||||
|
||||
URL_BASE=$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'urlbase":"[^"]*' | cut -d '"' -f 3)
|
||||
TITLE=$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'title":"[^"]*' | cut -d '"' -f 3)
|
||||
|
||||
${pkgs.coreutils}/bin/mkdir -p "$(dirname "$OUT")"
|
||||
${pkgs.wget}/bin/wget -qO "$OUT" "https://www.bing.com$URL_BASE\_UHD.jpg" || \
|
||||
${pkgs.wget}/bin/wget -qO "$OUT" "https://www.bing.com$(echo "$API_RESP" | ${pkgs.gnugrep}/bin/grep -oP 'url":"[^"]*' | cut -d '"' -f 3)"
|
||||
|
||||
${pkgs.libnotify}/bin/notify-send \
|
||||
-a "Bing Wallpaper Service" \
|
||||
notify-send \
|
||||
-a "Wallpaper of the day" \
|
||||
-u low \
|
||||
-i preferences-desktop-wallpaper \
|
||||
"$TITLE"
|
||||
'';
|
||||
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart wpaperd.service";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "niri.service" ];
|
||||
};
|
||||
}
|
||||
);
|
||||
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user start gowall-convert.service";
|
||||
Install.WantedBy = [ "niri.service" ];
|
||||
};
|
||||
|
||||
systemd.user.timers.bing-wallpaper = {
|
||||
Unit = {
|
||||
Description = "Run bing wallpaper retrieval daily";
|
||||
};
|
||||
Timer = {
|
||||
OnCalendar = "*-*-* 10:00:00 GMT";
|
||||
Persistent = true;
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
Unit.Description = "Run bing wallpaper retrieval daily";
|
||||
Timer.OnCalendar = "*-*-* 10:00:00 GMT";
|
||||
Timer.Persistent = true;
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.gowall-convert = {
|
||||
Unit.Description = "Convert a wallpaper to the system color scheme";
|
||||
Unit.StartLimitBurst = 6;
|
||||
Unit.StartLimitIntervalSec = "10m";
|
||||
Service.Restart = "on-failure";
|
||||
Service.RestartSec = "10s";
|
||||
Service.Type = "oneshot";
|
||||
Service.ExecStart = ''
|
||||
${pkgs.gowall}/bin/gowall convert \
|
||||
%h/.local/share/wallpaper/daily.jpg \
|
||||
--output %h/.local/share/wallpaper/daily-colored.jpg \
|
||||
-t nix
|
||||
'';
|
||||
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart wbg-daemon.service";
|
||||
};
|
||||
|
||||
home.file.".config/gowall/config.yml".text = with config.scheme.withHashtag; ''
|
||||
themes:
|
||||
- name: "nix"
|
||||
colors:
|
||||
- "${base06}"
|
||||
- "${base0F}"
|
||||
- "${base17}"
|
||||
- "${base0E}"
|
||||
- "${base08}"
|
||||
- "${base12}"
|
||||
- "${base09}"
|
||||
- "${base0A}"
|
||||
- "${base0B}"
|
||||
- "${base0C}"
|
||||
- "${base15}"
|
||||
- "${base16}"
|
||||
- "${base0D}"
|
||||
- "${base07}"
|
||||
- "${base05}"
|
||||
- "${base07}"
|
||||
- "${base0D}"
|
||||
- "${base0D}"
|
||||
- "${base04}"
|
||||
- "${base04}"
|
||||
- "${base04}"
|
||||
- "${base03}"
|
||||
- "${base02}"
|
||||
- "${base00}"
|
||||
- "${base01}"
|
||||
- "${base11}"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,28 +2,16 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
# this makes electron apps work per the wiki
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
boot = {
|
||||
plymouth = {
|
||||
enable = true;
|
||||
logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";
|
||||
};
|
||||
|
||||
plymouth.enable = true;
|
||||
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";
|
||||
loader = {
|
||||
timeout = 3;
|
||||
# systemd-boot = {
|
||||
# enable = true;
|
||||
# consoleMode = lib.mkForce "auto";
|
||||
# configurationLimit = 10;
|
||||
# };
|
||||
limine = {
|
||||
enable = true;
|
||||
maxGenerations = 10;
|
||||
|
|
@ -40,7 +28,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
# efi.canTouchEfiVariables = true;
|
||||
};
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
|
|
@ -55,37 +42,16 @@
|
|||
initrd.verbose = false;
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
# Enable OpenGL
|
||||
hardware.graphics = {
|
||||
programs = {
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
package = pkgs.niri-unstable;
|
||||
};
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
security.pam.services.niri.enableGnomeKeyring = true;
|
||||
programs.dconf.enable = true;
|
||||
|
||||
programs.dconf.profiles.user = {
|
||||
niri.enable = true;
|
||||
niri.package = pkgs.niri-unstable;
|
||||
dconf.enable = true;
|
||||
dconf.profiles.user = {
|
||||
databases = [
|
||||
{
|
||||
# breaks user-level indirect config of dconf
|
||||
|
|
@ -118,25 +84,24 @@
|
|||
];
|
||||
};
|
||||
|
||||
aerothemeplasma = {
|
||||
enable = true;
|
||||
plasma.enable = true;
|
||||
fonts.enable = false;
|
||||
plymouth.enable = false;
|
||||
sddm.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
# displayManager = {
|
||||
# gdm.enable = true;
|
||||
# defaultSession = "niri";
|
||||
# aerothemeplasma = {
|
||||
# enable = true;
|
||||
# plasma.enable = true;
|
||||
# fonts.enable = false;
|
||||
# plymouth.enable = false;
|
||||
# sddm.enable = true;
|
||||
# };
|
||||
|
||||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
defaultSession = "aerothemeplasma";
|
||||
sddm.wayland.enable = true;
|
||||
defaultSession = "niri";
|
||||
};
|
||||
|
||||
gnome.gnome-keyring.enable = true;
|
||||
libinput.enable = true;
|
||||
printing.enable = true;
|
||||
pipewire = {
|
||||
|
|
@ -147,33 +112,37 @@
|
|||
};
|
||||
udisks2.enable = true;
|
||||
gvfs.enable = true;
|
||||
|
||||
upower.enable = true;
|
||||
power-profiles-daemon.enable = true;
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
firefoxpwa
|
||||
distrobox
|
||||
];
|
||||
};
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
security.pam.services.niri.enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
documentation.man = {
|
||||
enable = true;
|
||||
generateCaches = false;
|
||||
networking.networkmanager.enable = true;
|
||||
documentation.man.enable = true;
|
||||
documentation.man.generateCaches = false;
|
||||
hardware.graphics.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
time.timeZone = "America/New_York";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ catppuccin, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
home-manager.users.sckova = {
|
||||
imports = [ catppuccin.homeModules.catppuccin ];
|
||||
imports = [ ];
|
||||
};
|
||||
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
pkgs.runCommand "gen-key" { buildInputs = [ pkgs.openssl ]; } "openssl rand -hex 32 > $out"
|
||||
)
|
||||
);
|
||||
port = 8080;
|
||||
port = 5364;
|
||||
bind_address = "127.0.0.1";
|
||||
};
|
||||
|
||||
|
|
|
|||
53
system/torrenting/default.nix
Normal file
53
system/torrenting/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
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