Compare commits
85 Commits
20afc8836f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
cec5ec5493
|
|||
|
5833dff19e
|
|||
|
7b4c2df7af
|
|||
|
1643f30906
|
|||
|
79c617cc91
|
|||
|
474a8badf4
|
|||
|
17368396cf
|
|||
|
e61b989cc0
|
|||
|
1f79a64804
|
|||
|
fbfc7236a1
|
|||
|
35c1419b4d
|
|||
|
2903639dc0
|
|||
|
c3c767df44
|
|||
|
8757503465
|
|||
|
69ae299cc1
|
|||
|
f010ff758a
|
|||
|
769f0a2487
|
|||
|
0d3521466c
|
|||
|
9582b05b43
|
|||
|
4421fe8bad
|
|||
|
4396c6b84f
|
|||
|
517dd2c077
|
|||
|
a03410bee7
|
|||
|
f28fdfabca
|
|||
|
a9c55ead9b
|
|||
|
3b4a02a08a
|
|||
|
59c55886a3
|
|||
|
195a821b86
|
|||
|
b294789609
|
|||
|
dad0f892dc
|
|||
|
6cd1020c18
|
|||
|
bdb2f39716
|
|||
|
dffb768411
|
|||
|
4871f3ef05
|
|||
|
aa2c3f218a
|
|||
|
f32a7f59a1
|
|||
|
a6c24c1f81
|
|||
|
2c9f10dad5
|
|||
|
dc02fc5ac2
|
|||
|
41415c944b
|
|||
|
f44863c4e6
|
|||
|
d7b6d097e9
|
|||
|
402db869d4
|
|||
|
f4f429e619
|
|||
|
cc43c758c5
|
|||
|
82079f2079
|
|||
|
4ab5dc57fc
|
|||
|
829f959ce3
|
|||
|
7d9d6c5c6d
|
|||
|
d03f6592d1
|
|||
|
54a9cc34fe
|
|||
|
1ceed08cbf
|
|||
|
91b774d9e6
|
|||
|
6020e99197
|
|||
|
0980fe5297
|
|||
|
84d93f3968
|
|||
|
281d53d7bc
|
|||
|
a557a639a4
|
|||
|
13aec0311a
|
|||
|
428b96ff07
|
|||
|
a27dc9859b
|
|||
|
a9a7115774
|
|||
|
df93b8f1f4
|
|||
|
28d0196a25
|
|||
|
67e4951f7d
|
|||
|
3f69658e49
|
|||
|
ab039be574
|
|||
|
dcd3293ee8
|
|||
|
5a2bd01894
|
|||
|
9824a769c1
|
|||
|
c3863c568f
|
|||
|
da4297c3d9
|
|||
|
39e608fac8
|
|||
|
dbb39fa40f
|
|||
|
2777ad7823
|
|||
|
7f98459009
|
|||
|
a98912e252
|
|||
|
248379a9cd
|
|||
|
e3c58ee2bf
|
|||
|
a3178137d3
|
|||
|
9d96d54d48
|
|||
|
2c44e6cee2
|
|||
|
e174d547a7
|
|||
|
359cf544a9
|
|||
|
0b6ebd9c85
|
12
README.md
12
README.md
@ -1,6 +1,6 @@
|
|||||||
# NixOS Configuration
|
# NixOS Configuration
|
||||||
|
|
||||||
Modular NixOS configuration, using Hyprland for a lightweight desktop.
|
Modular NixOS configuration, using Hyprland (yikes) or Niri for a tiling/scrolling desktop.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -10,7 +10,10 @@ Modular NixOS configuration, using Hyprland for a lightweight desktop.
|
|||||||
<img src="/Btop.png" width="33%" />
|
<img src="/Btop.png" width="33%" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
|
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
|
||||||
|
Alternatively, use `nh os switch` or `nh os boot`.
|
||||||
|
|
||||||
## NixFlake/system
|
## NixFlake/system
|
||||||
|
|
||||||
@ -19,6 +22,7 @@ Contains all the system configurations.
|
|||||||
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
|
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
|
||||||
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
|
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
|
||||||
- System modules are located in `NixFlake/system/modules`
|
- System modules are located in `NixFlake/system/modules`
|
||||||
|
- Hosted services are located in `NixFlake/system/services`
|
||||||
|
|
||||||
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
||||||
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
||||||
@ -41,6 +45,6 @@ Each derivation is loaded into `NixFlake/derivations/default.nix`.
|
|||||||
|
|
||||||
## NixFlake/overlays
|
## NixFlake/overlays
|
||||||
|
|
||||||
Contains (not at the moment) all overlays.
|
Contains all overlays, e.g. package version overrides.
|
||||||
The `NixFlake/overlays/default.nix` imports all of the overlays and all of the derivations.
|
The `NixFlake/overlays/default.nix` imports all overlays and all derivations.
|
||||||
It is then imported by the toplevel `NixFlake/flake.nix`, to make everything available to the system/home configurations.
|
It is then imported by the top-level `NixFlake/flake.nix`, to make everything available to the system/home configurations.
|
||||||
|
|||||||
BIN
config/face.jpeg
Normal file
BIN
config/face.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
807
flake.lock
generated
807
flake.lock
generated
File diff suppressed because it is too large
Load Diff
41
flake.nix
41
flake.nix
@ -49,6 +49,38 @@
|
|||||||
# https://github.com/thiagokokada/nix-alien#user-content-nixos-installation-with-flakes
|
# https://github.com/thiagokokada/nix-alien#user-content-nixos-installation-with-flakes
|
||||||
# nix-alien.inputs.nixpkgs.follows = "nixpkgs";
|
# nix-alien.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# Niri
|
||||||
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
niri.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# Quickshell
|
||||||
|
quickshell.url = "github:quickshell-mirror/quickshell";
|
||||||
|
quickshell.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# Noctalia shell
|
||||||
|
noctalia.url = "github:noctalia-dev/noctalia-shell";
|
||||||
|
noctalia.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# noctalia.inputs.quickshell.follows = "quickshell";
|
||||||
|
|
||||||
|
# Lol
|
||||||
|
waifu-cursors.url = "github:kagurazakei/waifu-cursors";
|
||||||
|
|
||||||
|
# Caelestia shell
|
||||||
|
caelestia.url = "github:caelestia-dots/shell";
|
||||||
|
caelestia.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
caelestia.inputs.quickshell.follows = "quickshell";
|
||||||
|
# caelestia-cli.url = "github:caelestia-dots/cli";
|
||||||
|
# caelestia-cli.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# DankMaterialShell
|
||||||
|
dgop.url = "github:AvengeMedia/dgop";
|
||||||
|
dgop.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# dms-cli.url = "github:AvengeMedia/danklinux";
|
||||||
|
# dms-cli.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
dankMaterialShell.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
|
dankMaterialShell.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
dankMaterialShell.inputs.dgop.follows = "dgop";
|
||||||
|
|
||||||
# Hyprland (use flake so plugins are not built from source)
|
# Hyprland (use flake so plugins are not built from source)
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -130,6 +162,7 @@
|
|||||||
in [
|
in [
|
||||||
inputs.devshell.overlays.default
|
inputs.devshell.overlays.default
|
||||||
inputs.nur.overlays.default
|
inputs.nur.overlays.default
|
||||||
|
inputs.niri.overlays.niri
|
||||||
# inputs.emacs-overlay.overlay
|
# inputs.emacs-overlay.overlay
|
||||||
|
|
||||||
# All my own overlays (derivations + modifications)
|
# All my own overlays (derivations + modifications)
|
||||||
@ -167,6 +200,10 @@
|
|||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.impermanence.nixosModules.impermanence
|
inputs.impermanence.nixosModules.impermanence
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
||||||
|
# We need the niri module also on the headless hosts
|
||||||
|
# so nix can parse the config (although it is disabled...)
|
||||||
|
inputs.niri.nixosModules.niri # This also imports the HM module
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
# Local shell for NixFlake directory
|
# Local shell for NixFlake directory
|
||||||
@ -202,9 +239,7 @@
|
|||||||
hostname = "nixtop";
|
hostname = "nixtop";
|
||||||
username = "christoph";
|
username = "christoph";
|
||||||
headless = false;
|
headless = false;
|
||||||
extraModules =
|
extraModules = [] ++ commonModules;
|
||||||
[]
|
|
||||||
++ commonModules;
|
|
||||||
};
|
};
|
||||||
servenix = mylib.nixos.mkNixosConfigWithHomeManagerModule {
|
servenix = mylib.nixos.mkNixosConfigWithHomeManagerModule {
|
||||||
inherit system mylib publicKeys;
|
inherit system mylib publicKeys;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,161 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
headless,
|
|
||||||
}: {
|
|
||||||
enable = !headless;
|
|
||||||
dunst.enable = !config.modules.hyprpanel.enable; # Disable for hyprpanel
|
|
||||||
bars.enable = false;
|
|
||||||
dynamicCursor.enable = false;
|
|
||||||
trails.enable = true;
|
|
||||||
hyprspace.enable = false; # Always broken
|
|
||||||
|
|
||||||
keybindings = {
|
|
||||||
main-mod = "SUPER";
|
|
||||||
|
|
||||||
bindings = {
|
|
||||||
"$mainMod, t" = ["exec, kitty"];
|
|
||||||
"$mainMod, e" = ["exec, kitty --title=Yazi yazi"];
|
|
||||||
"$mainMod, n" = ["exec, neovide"];
|
|
||||||
# "$mainMod, r" = ["exec, kitty --title=Rmpc rmpc"];
|
|
||||||
"$mainMod CTRL, n" = ["exec, kitty --title=Navi navi"];
|
|
||||||
"$mainMod SHIFT, n" = ["exec, neovide ${config.paths.dotfiles}/navi/christoph.cheat"];
|
|
||||||
"$mainMod SHIFT, f" = ["exec, neovide ${config.paths.dotfiles}/flake.nix"];
|
|
||||||
|
|
||||||
"$mainMod, p" = ["exec, hyprpicker --autocopy --format=hex"];
|
|
||||||
"$mainMod, s" = ["exec, grim -g \"$(slurp)\""];
|
|
||||||
"$mainMod CTRL, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
|
|
||||||
"$mainMod SHIFT, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
|
|
||||||
|
|
||||||
", XF86AudioRaiseVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"];
|
|
||||||
", XF86AudioLowerVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"];
|
|
||||||
", XF86AudioPlay" = ["exec, playerctl play-pause"];
|
|
||||||
", XF86AudioPrev" = ["exec, playerctl previous"];
|
|
||||||
", XF86AudioNext" = ["exec, playerctl next"];
|
|
||||||
|
|
||||||
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
|
|
||||||
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
|
|
||||||
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 5750"];
|
|
||||||
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
|
|
||||||
|
|
||||||
"CTRL ALT, f" = let
|
|
||||||
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
|
|
||||||
grep = "${pkgs.gnugrep}/bin/grep";
|
|
||||||
awk = "${pkgs.gawk}/bin/gawk";
|
|
||||||
notify = "${pkgs.libnotify}/bin/notify-send";
|
|
||||||
|
|
||||||
toggleMouseFocus = pkgs.writeScriptBin "hypr-toggle-mouse-focus" ''
|
|
||||||
CURRENT=$(${hyprctl} getoption input:follow_mouse | ${grep} int | ${awk} -F' ' '{print $2}')
|
|
||||||
|
|
||||||
if [[ "$CURRENT" == "1" ]]; then
|
|
||||||
${hyprctl} keyword input:follow_mouse 0
|
|
||||||
${notify} "Disabled Mouse Focus!"
|
|
||||||
else
|
|
||||||
${hyprctl} keyword input:follow_mouse 1
|
|
||||||
${notify} "Enabled Mouse Focus!"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in ["exec, ${toggleMouseFocus}/bin/hypr-toggle-mouse-focus"];
|
|
||||||
|
|
||||||
# "CTRL ALT, t" = ["exec, bash -c 'systemctl --user restart hyprpanel.service'"];
|
|
||||||
};
|
|
||||||
|
|
||||||
ws-bindings = {
|
|
||||||
# "<Workspace>" = "<Key>";
|
|
||||||
"1" = "1";
|
|
||||||
"2" = "2";
|
|
||||||
"3" = "3";
|
|
||||||
"4" = "4";
|
|
||||||
"5" = "5";
|
|
||||||
"6" = "6";
|
|
||||||
"7" = "7";
|
|
||||||
"8" = "8";
|
|
||||||
"9" = "9";
|
|
||||||
"10" = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
special-ws-bindings = {
|
|
||||||
"ferdium" = "x";
|
|
||||||
"msty" = "z";
|
|
||||||
"btop" = "b";
|
|
||||||
"rmpc" = "r";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
autostart = {
|
|
||||||
immediate = [
|
|
||||||
"kitty --hold fastfetch"
|
|
||||||
"zeal"
|
|
||||||
"nextcloud --background"
|
|
||||||
"protonvpn-app"
|
|
||||||
|
|
||||||
# "kdeconnect-indicator" # started by services.kdeconnect.indicator
|
|
||||||
];
|
|
||||||
|
|
||||||
delayed = [
|
|
||||||
"keepassxc" # The tray doesn't work when started too early
|
|
||||||
];
|
|
||||||
|
|
||||||
special-silent = {
|
|
||||||
"ferdium" = ["ferdium"];
|
|
||||||
"msty" = ["msty"];
|
|
||||||
"btop" = ["kitty --title=Btop btop"];
|
|
||||||
"rmpc" = ["kitty --title=Rmpc rmpc"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
windowrules = [
|
|
||||||
# Fix jetbrains tooltip flicker
|
|
||||||
"float,class:^(jetbrains-.*)$,title:^(win[0-9]+)$"
|
|
||||||
"nofocus,class:^(jetbrains-.*)$,title:^(win[0-9]+)$"
|
|
||||||
];
|
|
||||||
|
|
||||||
workspacerules = {
|
|
||||||
"1" = [];
|
|
||||||
"2" = ["Zotero" "neovide" "code-url-handler"];
|
|
||||||
"3" = ["obsidian"];
|
|
||||||
"4" = ["firefox" "Google-chrome" "chromium-browser" "org.qutebrowser.qutebrowser"];
|
|
||||||
"5" = ["steam"];
|
|
||||||
"6" = ["steam_app_(.+)"];
|
|
||||||
"7" = ["signal"];
|
|
||||||
"8" = ["tidal-hifi"];
|
|
||||||
"9" = ["discord"];
|
|
||||||
"10" = ["python3"];
|
|
||||||
};
|
|
||||||
|
|
||||||
floating = [
|
|
||||||
{class = "org.kde.polkit-kde-authentication-agent-1";}
|
|
||||||
{
|
|
||||||
class = "thunar";
|
|
||||||
title = "File Operation Progress";
|
|
||||||
}
|
|
||||||
{class = "ffplay";}
|
|
||||||
{class = "Unity";}
|
|
||||||
];
|
|
||||||
|
|
||||||
transparent-opacity = "0.75";
|
|
||||||
|
|
||||||
transparent = [
|
|
||||||
"kitty"
|
|
||||||
"Alacritty"
|
|
||||||
"discord"
|
|
||||||
"signal"
|
|
||||||
"vesktop"
|
|
||||||
"Spotify"
|
|
||||||
"tidal-hifi"
|
|
||||||
"obsidian"
|
|
||||||
"firefox"
|
|
||||||
"org.qutebrowser.qutebrowser"
|
|
||||||
"jetbrains-clion"
|
|
||||||
"jetbrains-idea"
|
|
||||||
"jetbrains-pycharm"
|
|
||||||
"jetbrains-rustrover"
|
|
||||||
"jetbrains-rider"
|
|
||||||
"jetbrains-webstorm"
|
|
||||||
"code-url-handler"
|
|
||||||
"neovide"
|
|
||||||
"steam"
|
|
||||||
"ferdium"
|
|
||||||
"Msty"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -140,6 +140,8 @@
|
|||||||
makemkv
|
makemkv
|
||||||
lrcget
|
lrcget
|
||||||
msty
|
msty
|
||||||
|
# jellyfin-media-player # CVE, can't install
|
||||||
|
jellyfin-mpv-shim
|
||||||
|
|
||||||
steam-devices-udev-rules
|
steam-devices-udev-rules
|
||||||
];
|
];
|
||||||
@ -219,6 +221,14 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
overrides = {
|
overrides = {
|
||||||
|
"org.prismlauncher.PrismLauncher".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"${config.home.homeDirectory}/Downloads"
|
||||||
|
|
||||||
|
"/tmp" # To allow temporary world folder creation for datapack installation
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"com.valvesoftware.Steam".Context = {
|
"com.valvesoftware.Steam".Context = {
|
||||||
filesystems = [
|
filesystems = [
|
||||||
"${config.home.homeDirectory}/Games"
|
"${config.home.homeDirectory}/Games"
|
||||||
|
|||||||
@ -17,20 +17,20 @@ in {
|
|||||||
|
|
||||||
# AGS libs go here
|
# AGS libs go here
|
||||||
extraPackages = [
|
extraPackages = [
|
||||||
inputs.ags.packages.${pkgs.system}.apps
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.apps
|
||||||
inputs.ags.packages.${pkgs.system}.auth
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.auth
|
||||||
inputs.ags.packages.${pkgs.system}.battery
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.battery
|
||||||
inputs.ags.packages.${pkgs.system}.bluetooth
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.bluetooth
|
||||||
inputs.ags.packages.${pkgs.system}.cava
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.cava
|
||||||
# inputs.ags.packages.${pkgs.system}.greet
|
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.greet
|
||||||
inputs.ags.packages.${pkgs.system}.hyprland
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
|
||||||
inputs.ags.packages.${pkgs.system}.mpris
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.mpris
|
||||||
inputs.ags.packages.${pkgs.system}.network
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.network
|
||||||
inputs.ags.packages.${pkgs.system}.notifd
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.notifd
|
||||||
# inputs.ags.packages.${pkgs.system}.powerprofiles
|
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.powerprofiles
|
||||||
# inputs.ags.packages.${pkgs.system}.river
|
# inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.river
|
||||||
inputs.ags.packages.${pkgs.system}.tray
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.tray
|
||||||
inputs.ags.packages.${pkgs.system}.wireplumber
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.wireplumber
|
||||||
];
|
];
|
||||||
|
|
||||||
# This should symlink but doesn't, it copies the files :/
|
# This should symlink but doesn't, it copies the files :/
|
||||||
@ -40,7 +40,7 @@ in {
|
|||||||
# The ags module doesn't expose the "astal" cli tool or extraPackages
|
# The ags module doesn't expose the "astal" cli tool or extraPackages
|
||||||
home.packages =
|
home.packages =
|
||||||
[
|
[
|
||||||
inputs.ags.packages.${pkgs.system}.io
|
inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}.io
|
||||||
]
|
]
|
||||||
++ config.programs.ags.extraPackages;
|
++ config.programs.ags.extraPackages;
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,8 @@ in {
|
|||||||
"edit" # edit metadata in text editor
|
"edit" # edit metadata in text editor
|
||||||
"fetchart" # pickup local cover art or search online
|
"fetchart" # pickup local cover art or search online
|
||||||
"fish" # beet fish generates ~/.config/fish/completions file
|
"fish" # beet fish generates ~/.config/fish/completions file
|
||||||
"lyrics" # fetch song lyrics
|
# "lyrics" # fetch song lyrics
|
||||||
|
"musicbrainz" # auto tagger data source
|
||||||
"replaygain" # write replaygain tags for automatic loudness adjustments
|
"replaygain" # write replaygain tags for automatic loudness adjustments
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -59,10 +60,10 @@ in {
|
|||||||
sources = "filesystem coverart itunes amazon albumart"; # sources are queried in this order
|
sources = "filesystem coverart itunes amazon albumart"; # sources are queried in this order
|
||||||
};
|
};
|
||||||
|
|
||||||
lyrics = {
|
# lyrics = {
|
||||||
auto = "yes"; # only embeds lyrics into metadata, needed for jellyfin but useless for rmpc
|
# auto = "yes"; # only embeds lyrics into metadata, needed for jellyfin but useless for rmpc
|
||||||
synced = "yes"; # prefer synced lyrics if provided
|
# synced = "yes"; # prefer synced lyrics if provided
|
||||||
};
|
# };
|
||||||
|
|
||||||
replaygain = {
|
replaygain = {
|
||||||
auto = "yes"; # analyze on import automatically
|
auto = "yes"; # analyze on import automatically
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (config.modules) color;
|
inherit (config.modules) color;
|
||||||
in {
|
in {
|
||||||
options.modules.color = import ./options.nix {inherit lib mylib;};
|
options.modules.color = import ./options.nix {inherit lib mylib pkgs;};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
home.packages = let
|
home.packages = let
|
||||||
@ -50,10 +50,13 @@ in {
|
|||||||
|> builtins.concatStringsSep "\n")
|
|> builtins.concatStringsSep "\n")
|
||||||
''echo ${lib.concatStrings (lib.replicate 20 "=")}''
|
''echo ${lib.concatStrings (lib.replicate 20 "=")}''
|
||||||
]);
|
]);
|
||||||
in [
|
in
|
||||||
applyColors
|
[
|
||||||
printNixColors
|
applyColors
|
||||||
];
|
printNixColors
|
||||||
|
]
|
||||||
|
++ (lib.optionals color.installPackages [color.iconPackage color.cursorPackage])
|
||||||
|
++ (lib.optionals color.installPackages color.extraPackages);
|
||||||
|
|
||||||
# This module sets its own options to the values specified in a colorscheme file.
|
# This module sets its own options to the values specified in a colorscheme file.
|
||||||
modules.color = let
|
modules.color = let
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
colorKeys = [
|
colorKeys = [
|
||||||
@ -50,6 +51,54 @@ in rec {
|
|||||||
default = "JetBrainsMono Nerd Font Mono";
|
default = "JetBrainsMono Nerd Font Mono";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cursor = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "The cursor to use";
|
||||||
|
example = "Bibata-Modern-Classic";
|
||||||
|
default = "Bibata-Modern-Classic";
|
||||||
|
};
|
||||||
|
|
||||||
|
cursorSize = lib.mkOption {
|
||||||
|
type = lib.types.int;
|
||||||
|
description = "The cursor size";
|
||||||
|
example = 24;
|
||||||
|
default = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
cursorPackage = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
description = "The cursor package";
|
||||||
|
example = pkgs.bibata-cursors;
|
||||||
|
default = pkgs.bibata-cursors;
|
||||||
|
};
|
||||||
|
|
||||||
|
iconTheme = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "The icon theme to use";
|
||||||
|
example = "Papirus";
|
||||||
|
default = "Papirus";
|
||||||
|
};
|
||||||
|
|
||||||
|
iconPackage = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
description = "The icon theme package";
|
||||||
|
example = pkgs.papirus-icon-theme;
|
||||||
|
default = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
|
||||||
|
extraPackages = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.package;
|
||||||
|
description = "Extra packages to install";
|
||||||
|
example = ''
|
||||||
|
[
|
||||||
|
pkgs.bibata-cursors
|
||||||
|
]
|
||||||
|
'';
|
||||||
|
default = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
installPackages = lib.mkEnableOption "Install cursor and icon themes";
|
||||||
|
|
||||||
# This option is set automatically
|
# This option is set automatically
|
||||||
wallpapers = let
|
wallpapers = let
|
||||||
# Collect all the available wallpapers.
|
# Collect all the available wallpapers.
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
./lazygit
|
./lazygit
|
||||||
./mpd
|
./mpd
|
||||||
./neovim
|
./neovim
|
||||||
|
./niri
|
||||||
./nnn
|
./nnn
|
||||||
./paths
|
./paths
|
||||||
./qutebrowser
|
./qutebrowser
|
||||||
@ -31,6 +32,11 @@
|
|||||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
inputs.textfox.homeManagerModules.default
|
inputs.textfox.homeManagerModules.default
|
||||||
|
# inputs.niri.homeModules.niri # Imported by system module
|
||||||
|
inputs.noctalia.homeModules.default
|
||||||
|
inputs.caelestia.homeManagerModules.default
|
||||||
|
inputs.dankMaterialShell.homeModules.dankMaterialShell.default
|
||||||
|
inputs.dankMaterialShell.homeModules.dankMaterialShell.niri
|
||||||
|
|
||||||
# NOTE: Do NOT use this, use the system module (the HM module has to rely on fuse)
|
# NOTE: Do NOT use this, use the system module (the HM module has to rely on fuse)
|
||||||
# inputs.impermanence.homeManagerModules.impermanence
|
# inputs.impermanence.homeManagerModules.impermanence
|
||||||
|
|||||||
@ -12,8 +12,11 @@ in {
|
|||||||
config = lib.mkIf docs.enable {
|
config = lib.mkIf docs.enable {
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
texliveFull
|
|
||||||
inkscape
|
inkscape
|
||||||
|
|
||||||
|
texliveFull # TODO: LaTeX packages
|
||||||
|
|
||||||
|
typst # TODO: Typst packages
|
||||||
];
|
];
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
}:
|
}:
|
||||||
builtins.concatLists [
|
builtins.concatLists [
|
||||||
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
|
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
|
||||||
|
(lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel
|
||||||
|
(lib.optionals hyprland.caelestia.enable ["caelestia shell"]) # Panel/Shell # TODO: Crashes on startup
|
||||||
[
|
[
|
||||||
# Start clipboard management
|
# Start clipboard management
|
||||||
"wl-paste -t text --watch clipman store --no-persist"
|
"wl-paste -t text --watch clipman store --no-persist"
|
||||||
|
|||||||
516
home/modules/hyprland/caelestia.nix
Normal file
516
home/modules/hyprland/caelestia.nix
Normal file
@ -0,0 +1,516 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
hyprland,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
enable = hyprland.caelestia.enable;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = false; # Start from hyprland autostart
|
||||||
|
target = "graphical-session.target";
|
||||||
|
environment = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
appearance = {
|
||||||
|
anim = {durations = {scale = 1;};};
|
||||||
|
font = {
|
||||||
|
family = {
|
||||||
|
clock = "Rubik";
|
||||||
|
material = "Material Symbols Rounded";
|
||||||
|
mono = color.font;
|
||||||
|
sans = color.font;
|
||||||
|
};
|
||||||
|
size = {scale = 1;};
|
||||||
|
};
|
||||||
|
|
||||||
|
padding = {scale = 1;};
|
||||||
|
rounding = {scale = 1;};
|
||||||
|
spacing = {scale = 1;};
|
||||||
|
|
||||||
|
transparency = {
|
||||||
|
base = 0.85;
|
||||||
|
enabled = false;
|
||||||
|
layers = 0.4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
background = {
|
||||||
|
desktopClock = {enabled = false;};
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
# Lags when visible on both monitors (different refresh rates?)
|
||||||
|
visualiser = {
|
||||||
|
autoHide = true;
|
||||||
|
blur = true;
|
||||||
|
enabled = false;
|
||||||
|
rounding = 1;
|
||||||
|
spacing = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
bar = {
|
||||||
|
clock = {showIcon = true;};
|
||||||
|
dragThreshold = 20;
|
||||||
|
|
||||||
|
entries = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "logo";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "workspaces";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "spacer";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "activeWindow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "spacer";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "clock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "tray";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "statusIcons";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "power";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
persistent = true;
|
||||||
|
|
||||||
|
popouts = {
|
||||||
|
activeWindow = true;
|
||||||
|
statusIcons = true;
|
||||||
|
tray = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrollActions = {
|
||||||
|
brightness = false;
|
||||||
|
volume = true;
|
||||||
|
workspaces = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
showOnHover = true;
|
||||||
|
|
||||||
|
status = {
|
||||||
|
showAudio = true;
|
||||||
|
showBattery = false;
|
||||||
|
showBluetooth = true;
|
||||||
|
showKbLayout = false;
|
||||||
|
showLockStatus = true;
|
||||||
|
showMicrophone = false;
|
||||||
|
showNetwork = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tray = {
|
||||||
|
background = true;
|
||||||
|
compact = false;
|
||||||
|
iconSubs = [];
|
||||||
|
recolour = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
workspaces = {
|
||||||
|
activeIndicator = true;
|
||||||
|
activeLabel = "";
|
||||||
|
activeTrail = true;
|
||||||
|
label = " ";
|
||||||
|
occupiedBg = false;
|
||||||
|
occupiedLabel = "";
|
||||||
|
perMonitorWorkspaces = false;
|
||||||
|
showWindows = false;
|
||||||
|
shown = 10;
|
||||||
|
|
||||||
|
# Pick them here: https://fonts.google.com/icons
|
||||||
|
specialWorkspaceIcons = [
|
||||||
|
{
|
||||||
|
icon = "music_note";
|
||||||
|
name = "rmpc";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "memory";
|
||||||
|
name = "btop";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "mark_chat_unread";
|
||||||
|
name = "ferdium";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "network_intelligence";
|
||||||
|
name = "msty";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
border = {
|
||||||
|
rounding = 25;
|
||||||
|
thickness = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
dashboard = {
|
||||||
|
dragThreshold = 50;
|
||||||
|
enabled = true;
|
||||||
|
mediaUpdateInterval = 500;
|
||||||
|
showOnHover = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
general = {
|
||||||
|
apps = {
|
||||||
|
audio = ["kitty" "--title=NcpaMixer" "-e" "ncpamixer"];
|
||||||
|
explorer = ["kitty" "--title=Yazi" "-e" "yazi"];
|
||||||
|
playback = ["mpv"];
|
||||||
|
terminal = ["kitty"];
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
criticalLevel = 3;
|
||||||
|
warnLevels = [
|
||||||
|
{
|
||||||
|
icon = "battery_android_frame_2";
|
||||||
|
level = 20;
|
||||||
|
message = "You might want to plug in a charger";
|
||||||
|
title = "Low battery";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "battery_android_frame_1";
|
||||||
|
level = 10;
|
||||||
|
message = "You should probably plug in a charger <b>now</b>";
|
||||||
|
title = "Did you see the previous message?";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
critical = true;
|
||||||
|
icon = "battery_android_alert";
|
||||||
|
level = 5;
|
||||||
|
message = "PLUG THE CHARGER RIGHT NOW!!";
|
||||||
|
title = "Critical battery level";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
idle = {
|
||||||
|
inhibitWhenAudio = true;
|
||||||
|
lockBeforeSleep = true;
|
||||||
|
timeouts = [
|
||||||
|
{
|
||||||
|
idleAction = "lock";
|
||||||
|
timeout = 600;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
# idleAction = "dpms off";
|
||||||
|
# returnAction = "dpms on";
|
||||||
|
idleAction = "echo 'idle'";
|
||||||
|
returnAction = "echo 'return'";
|
||||||
|
timeout = 10000;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
# idleAction = ["systemctl" "suspend-then-hibernate"];
|
||||||
|
idleAction = ["echo" "'idle'"];
|
||||||
|
timeout = 20000;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
launcher = {
|
||||||
|
actionPrefix = ">";
|
||||||
|
actions = [
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "calc"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Do simple math equations (powered by Qalc)";
|
||||||
|
enabled = true;
|
||||||
|
icon = "calculate";
|
||||||
|
name = "Calculator";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "scheme"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current colour scheme";
|
||||||
|
enabled = true;
|
||||||
|
icon = "palette";
|
||||||
|
name = "Scheme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "wallpaper"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current wallpaper";
|
||||||
|
enabled = true;
|
||||||
|
icon = "image";
|
||||||
|
name = "Wallpaper";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "variant"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current scheme variant";
|
||||||
|
enabled = true;
|
||||||
|
icon = "colors";
|
||||||
|
name = "Variant";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "transparency"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change shell transparency";
|
||||||
|
enabled = false;
|
||||||
|
icon = "opacity";
|
||||||
|
name = "Transparency";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["caelestia" "wallpaper" "-r"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Switch to a random wallpaper";
|
||||||
|
enabled = false;
|
||||||
|
icon = "casino";
|
||||||
|
name = "Random";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["setMode" "light"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the scheme to light mode";
|
||||||
|
enabled = true;
|
||||||
|
icon = "light_mode";
|
||||||
|
name = "Light";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["setMode" "dark"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the scheme to dark mode";
|
||||||
|
enabled = true;
|
||||||
|
icon = "dark_mode";
|
||||||
|
name = "Dark";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "poweroff"];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Shutdown the system";
|
||||||
|
enabled = true;
|
||||||
|
icon = "power_settings_new";
|
||||||
|
name = "Shutdown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "reboot"];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Reboot the system";
|
||||||
|
enabled = true;
|
||||||
|
icon = "cached";
|
||||||
|
name = "Reboot";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["loginctl" "terminate-user" ""];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Log out of the current session";
|
||||||
|
enabled = true;
|
||||||
|
icon = "exit_to_app";
|
||||||
|
name = "Logout";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["loginctl" "lock-session"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Lock the current session";
|
||||||
|
enabled = true;
|
||||||
|
icon = "lock";
|
||||||
|
name = "Lock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "suspend-then-hibernate"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Suspend then hibernate";
|
||||||
|
enabled = false;
|
||||||
|
icon = "bedtime";
|
||||||
|
name = "Sleep";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
dragThreshold = 50;
|
||||||
|
enableDangerousActions = true;
|
||||||
|
hiddenApps = [];
|
||||||
|
maxShown = 7;
|
||||||
|
maxWallpapers = 9;
|
||||||
|
showOnHover = false;
|
||||||
|
specialPrefix = "@";
|
||||||
|
useFuzzy = {
|
||||||
|
actions = false;
|
||||||
|
apps = false;
|
||||||
|
schemes = false;
|
||||||
|
variants = false;
|
||||||
|
wallpapers = false;
|
||||||
|
};
|
||||||
|
vimKeybinds = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
lock = {recolourLogo = false;};
|
||||||
|
|
||||||
|
notifs = {
|
||||||
|
actionOnClick = false;
|
||||||
|
clearThreshold = 0.3;
|
||||||
|
defaultExpireTimeout = 5000;
|
||||||
|
expandThreshold = 20;
|
||||||
|
expire = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
osd = {
|
||||||
|
enableBrightness = false;
|
||||||
|
enableMicrophone = true;
|
||||||
|
enabled = true;
|
||||||
|
hideDelay = 2000;
|
||||||
|
};
|
||||||
|
|
||||||
|
paths = {
|
||||||
|
mediaGif = "root:/assets/bongocat.gif";
|
||||||
|
sessionGif = "root:/assets/kurukuru.gif";
|
||||||
|
wallpaperDir = "~/NixFlake/wallpapers";
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
audioIncrement = 0.1;
|
||||||
|
defaultPlayer = "MPD";
|
||||||
|
gpuType = "";
|
||||||
|
maxVolume = 1;
|
||||||
|
playerAliases = [
|
||||||
|
{
|
||||||
|
from = "com.github.th_ch.youtube_music";
|
||||||
|
to = "YT Music";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
smartScheme = true;
|
||||||
|
useFahrenheit = false;
|
||||||
|
useTwelveHourClock = false;
|
||||||
|
visualiserBars = 45;
|
||||||
|
weatherLocation = "Dortmund, Germany";
|
||||||
|
};
|
||||||
|
|
||||||
|
session = {
|
||||||
|
commands = {
|
||||||
|
hibernate = ["systemctl" "hibernate"];
|
||||||
|
logout = ["loginctl" "terminate-user" ""];
|
||||||
|
reboot = ["systemctl" "reboot"];
|
||||||
|
shutdown = ["systemctl" "poweroff"];
|
||||||
|
};
|
||||||
|
dragThreshold = 30;
|
||||||
|
enabled = true;
|
||||||
|
vimKeybinds = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
sidebar = {
|
||||||
|
dragThreshold = 80;
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
utilities = {
|
||||||
|
enabled = true;
|
||||||
|
maxToasts = 4;
|
||||||
|
toasts = {
|
||||||
|
audioInputChanged = true;
|
||||||
|
audioOutputChanged = true;
|
||||||
|
capsLockChanged = true;
|
||||||
|
chargingChanged = true;
|
||||||
|
configLoaded = true;
|
||||||
|
dndChanged = true;
|
||||||
|
gameModeChanged = true;
|
||||||
|
kbLayoutChanged = false;
|
||||||
|
nowPlaying = false;
|
||||||
|
numLockChanged = true;
|
||||||
|
vpnChanged = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
vpn = {
|
||||||
|
enabled = false;
|
||||||
|
provider = [
|
||||||
|
{
|
||||||
|
displayName = "Wireguard (Your VPN)";
|
||||||
|
interface = "your-connection-name";
|
||||||
|
name = "wireguard";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cli = {
|
||||||
|
enable = hyprland.caelestia.enable;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
record = {extraArgs = [];};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
enableBtop = false;
|
||||||
|
enableDiscord = false;
|
||||||
|
enableFuzzel = false;
|
||||||
|
enableGtk = false;
|
||||||
|
enableHypr = false;
|
||||||
|
enableQt = false;
|
||||||
|
enableSpicetify = false;
|
||||||
|
enableTerm = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
toggles = {
|
||||||
|
communication = {
|
||||||
|
discord = {
|
||||||
|
command = ["discord"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "discord";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
whatsapp = {
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "whatsapp";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
music = {
|
||||||
|
feishin = {
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "feishin";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
spotify = {
|
||||||
|
command = ["spicetify" "watch" "-s"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "Spotify";} {initialTitle = "Spotify";} {initialTitle = "Spotify Free";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sysmon = {
|
||||||
|
btop = {
|
||||||
|
command = ["kitty" "--title" "Btop" "-e" "btop"];
|
||||||
|
enable = false;
|
||||||
|
match = [
|
||||||
|
{
|
||||||
|
class = "btop";
|
||||||
|
title = "Btop";
|
||||||
|
workspace = {name = "special:sysmon";};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
todo = {
|
||||||
|
todoist = {
|
||||||
|
command = ["todoist"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "Todoist";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
wallpaper = {postHook = "echo $WALLPAPER_PATH";};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -34,21 +34,29 @@ in {
|
|||||||
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
||||||
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
assertion = hyprland.hyprpanel.enable != hyprland.caelestia.enable;
|
||||||
|
message = "Can't enable Hyprpanel and Caelestia at the same time!";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme.package = pkgs.papirus-icon-theme;
|
iconTheme.package = lib.mkDefault color.iconPackage;
|
||||||
iconTheme.name = "Papirus";
|
iconTheme.name = color.iconTheme;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = {
|
||||||
|
hyprpanel.enable = hyprland.hyprpanel.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = lib.mkDefault true;
|
||||||
x11.enable = true;
|
x11.enable = lib.mkDefault true;
|
||||||
package = pkgs.bibata-cursors;
|
package = lib.mkDefault color.cursorPackage;
|
||||||
name = "Bibata-Modern-Classic";
|
name = color.cursor;
|
||||||
size = 24;
|
size = color.cursorSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@ -113,33 +121,29 @@ in {
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
|
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
|
||||||
|
caelestia = import ./caelestia.nix {inherit config hyprland color;};
|
||||||
# TODO: IMV shouldn't be part of the hyprland module
|
|
||||||
imv = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
options = {
|
|
||||||
background = "${color.hex.base}";
|
|
||||||
overlay = true;
|
|
||||||
overlay_font = "${color.font}:12";
|
|
||||||
overlay_background_color = "${color.hex.accent}";
|
|
||||||
overlay_text_color = "${color.hex.accentText}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# TODO: Dunst shouldn't be part of the hyprland module
|
|
||||||
dunst = import ./dunst.nix {inherit pkgs config hyprland color;};
|
dunst = import ./dunst.nix {inherit pkgs config hyprland color;};
|
||||||
hypridle = import ./hypridle.nix {inherit config hyprland color;};
|
hypridle = import ./hypridle.nix {inherit config hyprland color;};
|
||||||
hyprpaper = import ./hyprpaper.nix {inherit config hyprland color;};
|
hyprpaper = import ./hyprpaper.nix {inherit config hyprland color;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Make sure the units only start when using Hyprland
|
||||||
|
systemd.user.services.dunst.Unit.After = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.dunst.Unit.PartOf = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|
||||||
systemd.enable = true; # Enable hyprland-session.target
|
systemd.enable = true; # Enable hyprland-session.target
|
||||||
systemd.variables = ["--all"]; # Import PATH into systemd
|
systemd.variables = ["--all"]; # Import PATH into systemd
|
||||||
@ -148,16 +152,16 @@ in {
|
|||||||
plugins = builtins.concatLists [
|
plugins = builtins.concatLists [
|
||||||
(lib.optionals
|
(lib.optionals
|
||||||
hyprland.bars.enable
|
hyprland.bars.enable
|
||||||
[inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars])
|
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars])
|
||||||
(lib.optionals
|
(lib.optionals
|
||||||
hyprland.dynamicCursor.enable
|
hyprland.dynamicCursor.enable
|
||||||
[inputs.hypr-dynamic-cursors.packages.${pkgs.system}.hypr-dynamic-cursors])
|
[inputs.hypr-dynamic-cursors.packages.${pkgs.stdenv.hostPlatform.system}.hypr-dynamic-cursors])
|
||||||
(lib.optionals
|
(lib.optionals
|
||||||
hyprland.trails.enable
|
hyprland.trails.enable
|
||||||
[inputs.hyprland-plugins.packages.${pkgs.system}.hyprtrails])
|
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails])
|
||||||
(lib.optionals
|
(lib.optionals
|
||||||
hyprland.hyprspace.enable
|
hyprland.hyprspace.enable
|
||||||
[inputs.hyprspace.packages.${pkgs.system}.Hyprspace])
|
[inputs.hyprspace.packages.${pkgs.stdenv.hostPlatform.system}.Hyprspace])
|
||||||
];
|
];
|
||||||
|
|
||||||
settings = import ./settings.nix {
|
settings = import ./settings.nix {
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
}: {
|
}: {
|
||||||
enable = hyprland.dunst.enable;
|
enable = hyprland.dunst.enable;
|
||||||
|
|
||||||
iconTheme.package = pkgs.papirus-icon-theme;
|
iconTheme.package = color.iconPackage;
|
||||||
iconTheme.name = "Papirus";
|
iconTheme.name = color.iconTheme;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
hyprland,
|
hyprland,
|
||||||
color,
|
color,
|
||||||
}: {
|
}: {
|
||||||
enable = true;
|
enable = !hyprland.caelestia.enable;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
hyprland,
|
hyprland,
|
||||||
color,
|
color,
|
||||||
}: {
|
}: {
|
||||||
enable = true;
|
enable = !hyprland.caelestia.enable;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
|
|||||||
@ -6,14 +6,10 @@
|
|||||||
lib.mergeAttrsList [
|
lib.mergeAttrsList [
|
||||||
{
|
{
|
||||||
# Hyprland control
|
# Hyprland control
|
||||||
"$mainMod, a" = ["exec, rofi -drun-show-actions -show drun"];
|
|
||||||
"$mainMod, q" = ["killactive"];
|
"$mainMod, q" = ["killactive"];
|
||||||
"$mainMod, v" = ["togglefloating"];
|
"$mainMod, v" = ["togglefloating"];
|
||||||
"$mainMod, f" = ["fullscreen"];
|
"$mainMod, f" = ["fullscreen"];
|
||||||
"$mainMod, c" = ["exec, clipman pick --tool=rofi"];
|
|
||||||
"$mainMod SHIFT, l" = ["exec, loginctl lock-session"];
|
|
||||||
"$mainMod, tab" = ["workspace, previous"];
|
"$mainMod, tab" = ["workspace, previous"];
|
||||||
"ALT, tab" = ["exec, rofi -show window"];
|
|
||||||
# "$mainMod, g" = ["togglegroup"];
|
# "$mainMod, g" = ["togglegroup"];
|
||||||
# "ALT, tab" = ["changegroupactive"];
|
# "ALT, tab" = ["changegroupactive"];
|
||||||
|
|
||||||
|
|||||||
@ -5,11 +5,13 @@
|
|||||||
}: {
|
}: {
|
||||||
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
||||||
|
|
||||||
dunst.enable = lib.mkEnableOption "Enable dunst notification daemon";
|
dunst.enable = lib.mkEnableOption "Enable Dunst notification daemon";
|
||||||
bars.enable = lib.mkEnableOption "Enable window bars";
|
bars.enable = lib.mkEnableOption "Enable window bars";
|
||||||
dynamicCursor.enable = lib.mkEnableOption "Enable dynamic cursors";
|
dynamicCursor.enable = lib.mkEnableOption "Enable dynamic cursors";
|
||||||
trails.enable = lib.mkEnableOption "Enable dynamic window trails";
|
trails.enable = lib.mkEnableOption "Enable dynamic window trails";
|
||||||
hyprspace.enable = lib.mkEnableOption "Enable hyprspace workspace overview";
|
hyprspace.enable = lib.mkEnableOption "Enable Hyprspace workspace overview";
|
||||||
|
hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel";
|
||||||
|
caelestia.enable = lib.mkEnableOption "Enable Caelestia";
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
layout = lib.mkOption {
|
layout = lib.mkOption {
|
||||||
|
|||||||
@ -111,19 +111,19 @@
|
|||||||
|
|
||||||
windowrule = let
|
windowrule = let
|
||||||
mkWorkspaceRule = workspace: class:
|
mkWorkspaceRule = workspace: class:
|
||||||
"workspace ${workspace}, "
|
"match:class ^(${class})$, "
|
||||||
+ "class:^(${class})$";
|
+ "workspace ${workspace}";
|
||||||
mkWorkspaceRules = workspace: class-list:
|
mkWorkspaceRules = workspace: class-list:
|
||||||
builtins.map (mkWorkspaceRule workspace) class-list;
|
builtins.map (mkWorkspaceRule workspace) class-list;
|
||||||
|
|
||||||
mkFloatingRule = attrs:
|
mkFloatingRule = attrs:
|
||||||
"float"
|
(lib.optionalString (builtins.hasAttr "class" attrs) "match:class ^(${attrs.class})$, ")
|
||||||
+ (lib.optionalString (builtins.hasAttr "class" attrs) ", class:^(${attrs.class})$")
|
+ (lib.optionalString (builtins.hasAttr "title" attrs) "match:title ^(${attrs.title})$, ")
|
||||||
+ (lib.optionalString (builtins.hasAttr "title" attrs) ", title:^(${attrs.title})$");
|
+ "float 1";
|
||||||
|
|
||||||
mkTranslucentRule = class:
|
mkTranslucentRule = class:
|
||||||
"opacity ${hyprland.transparent-opacity} ${hyprland.transparent-opacity}, "
|
"match:class ^(${class})$, "
|
||||||
+ "class:^(${class})$";
|
+ "opacity ${hyprland.transparent-opacity} ${hyprland.transparent-opacity}";
|
||||||
in
|
in
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
(hyprland.workspacerules
|
(hyprland.workspacerules
|
||||||
@ -165,15 +165,15 @@
|
|||||||
# Because those are not windows, but layers,
|
# Because those are not windows, but layers,
|
||||||
# we have to blur them explicitly
|
# we have to blur them explicitly
|
||||||
layerrule = [
|
layerrule = [
|
||||||
"blur,rofi"
|
"match:class rofi, blur 1"
|
||||||
"ignorealpha 0.001,rofi" # Fix pixelated corners
|
# "match:class rofi, ignore_alpha 0.001" # Fix pixelated corners
|
||||||
"xray 0,rofi" # Render on top of other windows
|
# "match:class rofi, xray 0" # Render on top of other windows
|
||||||
"dimaround,rofi"
|
# "match:class rofi, dim_around 1"
|
||||||
|
|
||||||
"blur,waybar"
|
"match:class waybar, blur 1"
|
||||||
"blur,gtk4-layer-shell"
|
"match:class gtk4-layer-shell, blur 1"
|
||||||
"blur,bar-0"
|
"match:class bar-0, blur 1"
|
||||||
"blur,bar-1"
|
"match:class bar-1, blur 1"
|
||||||
];
|
];
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ in {
|
|||||||
config = lib.mkIf hyprpanel.enable {
|
config = lib.mkIf hyprpanel.enable {
|
||||||
programs.hyprpanel = {
|
programs.hyprpanel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = hyprpanel.systemd.enable;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
#
|
#
|
||||||
|
|||||||
@ -5,5 +5,6 @@
|
|||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; {
|
with mylib.modules; {
|
||||||
enable = mkEnableOption "hyprpanel";
|
enable = mkEnableOption "Enable Hyprpanel";
|
||||||
|
systemd.enable = mkEnableOption "Start using systemd";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
system,
|
system,
|
||||||
|
headless,
|
||||||
username,
|
username,
|
||||||
hostname,
|
hostname,
|
||||||
config,
|
config,
|
||||||
@ -27,13 +28,7 @@ in {
|
|||||||
builtins.concatLists [
|
builtins.concatLists [
|
||||||
(lib.optionals neovim.neovide [neovide])
|
(lib.optionals neovim.neovide [neovide])
|
||||||
|
|
||||||
[
|
(lib.optionals (!headless) [
|
||||||
(pkgs.ripgrep.override {withPCRE2 = true;})
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
lua54Packages.jsregexp # For tree-sitter
|
|
||||||
# nodejs_latest
|
|
||||||
|
|
||||||
# Language servers
|
# Language servers
|
||||||
clang-tools
|
clang-tools
|
||||||
clojure-lsp
|
clojure-lsp
|
||||||
@ -52,6 +47,7 @@ in {
|
|||||||
tailwindcss-language-server
|
tailwindcss-language-server
|
||||||
tex-fmt
|
tex-fmt
|
||||||
texlab
|
texlab
|
||||||
|
tinymist
|
||||||
typescript
|
typescript
|
||||||
vscode-langservers-extracted # includes nodejs
|
vscode-langservers-extracted # includes nodejs
|
||||||
|
|
||||||
@ -78,6 +74,15 @@ in {
|
|||||||
# nodePackages_latest.prettier # Use local install as plugins change per project
|
# nodePackages_latest.prettier # Use local install as plugins change per project
|
||||||
rustfmt
|
rustfmt
|
||||||
stylua
|
stylua
|
||||||
|
typstyle
|
||||||
|
])
|
||||||
|
|
||||||
|
[
|
||||||
|
(pkgs.ripgrep.override {withPCRE2 = true;})
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
lua54Packages.jsregexp # For tree-sitter
|
||||||
|
# nodejs_latest
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -512,9 +517,10 @@ in {
|
|||||||
nix = ["alejandra"];
|
nix = ["alejandra"];
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
qml = ["qmlformat"];
|
qml = ["qmlformat"];
|
||||||
|
rust = ["rustfmt"];
|
||||||
svelte = ["prettierd" "prettier"];
|
svelte = ["prettierd" "prettier"];
|
||||||
typescript = ["prettierd" "prettier"];
|
typescript = ["prettierd" "prettier"];
|
||||||
rust = ["rustfmt"];
|
typst = ["typstyle"];
|
||||||
};
|
};
|
||||||
|
|
||||||
default_format_opts = {
|
default_format_opts = {
|
||||||
@ -821,11 +827,10 @@ in {
|
|||||||
|
|
||||||
# NOTE: This entire thing is rough, I should rewrite...
|
# NOTE: This entire thing is rough, I should rewrite...
|
||||||
# TODO: Need to rewrite this once lspconfig 3.0 comes around
|
# TODO: Need to rewrite this once lspconfig 3.0 comes around
|
||||||
# TODO: LSP servers don't autostart anymore...
|
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
name = "lspconfig";
|
name = "lspconfig";
|
||||||
pkg = pkgs.vimPlugins.nvim-lspconfig;
|
pkg = pkgs.vimPlugins.nvim-lspconfig;
|
||||||
lazy = true;
|
lazy = false;
|
||||||
cmd = ["LspInfo"];
|
cmd = ["LspInfo"];
|
||||||
event = ["BufReadPost" "BufNewFile"];
|
event = ["BufReadPost" "BufNewFile"];
|
||||||
dependencies = [_lazydev];
|
dependencies = [_lazydev];
|
||||||
@ -939,6 +944,14 @@ in {
|
|||||||
{name = "svelte";}
|
{name = "svelte";}
|
||||||
{name = "tailwindcss";}
|
{name = "tailwindcss";}
|
||||||
{name = "texlab";}
|
{name = "texlab";}
|
||||||
|
{
|
||||||
|
name = "tinymist";
|
||||||
|
extraOptions.settings = {
|
||||||
|
formatterMode = "typstyle";
|
||||||
|
exportPdf = "onType";
|
||||||
|
semanticTokens = "disable";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
# {name = "jdtls";} # Don't set up when using nvim-jdtls
|
# {name = "jdtls";} # Don't set up when using nvim-jdtls
|
||||||
# {name = "rust_analyzer";} # Don't set up when using rustaceanvim
|
# {name = "rust_analyzer";} # Don't set up when using rustaceanvim
|
||||||
@ -987,10 +1000,12 @@ in {
|
|||||||
capabilities = __lspCapabilities(),
|
capabilities = __lspCapabilities(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Enable configured servers
|
||||||
for i, server in ipairs(${servers}) do
|
for i, server in ipairs(${servers}) do
|
||||||
if type(server) == "string" then
|
if type(server) == "string" then
|
||||||
-- require("lspconfig")[server].setup(__setup)
|
-- require("lspconfig")[server].setup(__setup)
|
||||||
vim.lsp.config(server, __setup)
|
vim.lsp.config(server, __setup)
|
||||||
|
vim.lsp.enable(server)
|
||||||
else
|
else
|
||||||
local options = server.extraOptions
|
local options = server.extraOptions
|
||||||
|
|
||||||
@ -1002,6 +1017,7 @@ in {
|
|||||||
|
|
||||||
-- require("lspconfig")[server.name].setup(options)
|
-- require("lspconfig")[server.name].setup(options)
|
||||||
vim.lsp.config(server.name, options)
|
vim.lsp.config(server.name, options)
|
||||||
|
vim.lsp.enable(server.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1499,6 +1515,8 @@ in {
|
|||||||
line_length = 1000;
|
line_length = 1000;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bufdelete.enabled = false;
|
||||||
|
|
||||||
dashboard = {
|
dashboard = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
||||||
@ -1560,11 +1578,24 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
debug.enabled = false;
|
||||||
|
dim.enabled = false;
|
||||||
|
|
||||||
explorer = {
|
explorer = {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
replace_netrw = false; # Use yazi for that
|
replace_netrw = false; # Use yazi for that
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gh.enabled = false;
|
||||||
|
git.enabled = false;
|
||||||
|
gitbrowse.enabled = false;
|
||||||
|
image.enabled = false;
|
||||||
|
indent.enabled = false;
|
||||||
|
input.enabled = false;
|
||||||
|
keymap.enabled = false;
|
||||||
|
layout.enabled = false;
|
||||||
|
lazygit.enabled = true;
|
||||||
|
|
||||||
notifier = {
|
notifier = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
};
|
};
|
||||||
@ -1597,6 +1628,20 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
profiler.enabled = false;
|
||||||
|
quickfile.enabled = false;
|
||||||
|
rename.enabled = false;
|
||||||
|
scope.enabled = false;
|
||||||
|
scratch.enabled = false;
|
||||||
|
scroll.enabled = false;
|
||||||
|
statuscolumn.enabled = false;
|
||||||
|
terminal.enabled = false;
|
||||||
|
toggle.enabled = false;
|
||||||
|
util.enabled = false;
|
||||||
|
win.enabled = false;
|
||||||
|
words.enabled = false;
|
||||||
|
zen.enabled = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1888,6 +1933,24 @@ in {
|
|||||||
config = mkDefaultConfig name;
|
config = mkDefaultConfig name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typst-preview = rec {
|
||||||
|
name = "typst-preview";
|
||||||
|
pkg = pkgs.vimPlugins.typst-preview-nvim;
|
||||||
|
lazy = true;
|
||||||
|
ft = ["typst"];
|
||||||
|
config = mkDefaultConfig name;
|
||||||
|
opts = {
|
||||||
|
dependencies_bin.__raw = ''
|
||||||
|
{
|
||||||
|
['tinymist'] = "${pkgs.tinymist}/bin/tinymist",
|
||||||
|
['websocat'] = "${pkgs.websocat}/bin/websocat"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
# open_cmd = "qutebrowser %s";
|
||||||
|
# open_cmd = "firefox %s -P typst-preview --class typst-preview";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
_promise = {
|
_promise = {
|
||||||
name = "promise";
|
name = "promise";
|
||||||
pkg = pkgs.vimPlugins.promise-async;
|
pkg = pkgs.vimPlugins.promise-async;
|
||||||
@ -2104,6 +2167,7 @@ in {
|
|||||||
trouble # Diagnostics window
|
trouble # Diagnostics window
|
||||||
ts-autotag # Automatic html tag insertion/updating
|
ts-autotag # Automatic html tag insertion/updating
|
||||||
typescript-tools # Typescript tsserver LSP
|
typescript-tools # Typescript tsserver LSP
|
||||||
|
typst-preview # Typst support
|
||||||
ufo # Code folding
|
ufo # Code folding
|
||||||
vimtex # LaTeX support
|
vimtex # LaTeX support
|
||||||
# wakatime # Time tracking
|
# wakatime # Time tracking
|
||||||
|
|||||||
482
home/modules/niri/dankMaterialShell.nix
Normal file
482
home/modules/niri/dankMaterialShell.nix
Normal file
@ -0,0 +1,482 @@
|
|||||||
|
{color}: {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = false;
|
||||||
|
restartIfChanged = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Deprecated
|
||||||
|
# enableClipboard = true;
|
||||||
|
# enableBrightnessControl = false;
|
||||||
|
# enableColorPicker = true;
|
||||||
|
# enableSystemSound = false;
|
||||||
|
|
||||||
|
enableSystemMonitoring = true;
|
||||||
|
enableVPN = true;
|
||||||
|
enableDynamicTheming = false;
|
||||||
|
enableAudioWavelength = true;
|
||||||
|
enableCalendarEvents = false;
|
||||||
|
|
||||||
|
niri = {
|
||||||
|
enableKeybinds = false;
|
||||||
|
enableSpawn = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# This is generated from the DMS settings dialog.
|
||||||
|
# Run: nix eval --impure --expr 'builtins.fromJSON (builtins.readFile ~/.config/DankMaterialShell/settings.json)'
|
||||||
|
default.settings = {
|
||||||
|
# Bar
|
||||||
|
barConfigs = [
|
||||||
|
{
|
||||||
|
# Widgets
|
||||||
|
leftWidgets = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "launcherButton";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "workspaceSwitcher";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
focusedWindowCompactMode = true;
|
||||||
|
id = "focusedWindow";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
centerWidgets = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "music";
|
||||||
|
mediaSize = 1;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
rightWidgets = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "cpuUsage";
|
||||||
|
minimumWidth = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "memUsage";
|
||||||
|
minimumWidth = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "diskUsage";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "clipboard";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "controlCenterButton";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "systemTray";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
clockCompactMode = true;
|
||||||
|
enabled = true;
|
||||||
|
id = "clock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "notificationButton";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
enabled = true;
|
||||||
|
id = "default";
|
||||||
|
name = "Main Bar";
|
||||||
|
|
||||||
|
# Behavior
|
||||||
|
autoHide = false;
|
||||||
|
autoHideDelay = 250;
|
||||||
|
maximizeDetection = true;
|
||||||
|
openOnOverview = false;
|
||||||
|
|
||||||
|
# Border
|
||||||
|
borderColor = "surfaceText";
|
||||||
|
borderEnabled = false;
|
||||||
|
borderOpacity = 1;
|
||||||
|
borderThickness = 2;
|
||||||
|
gothCornerRadiusOverride = false;
|
||||||
|
gothCornerRadiusValue = 12;
|
||||||
|
gothCornersEnabled = false;
|
||||||
|
|
||||||
|
# Styling
|
||||||
|
position = 0;
|
||||||
|
fontScale = 1.1;
|
||||||
|
bottomGap = 0;
|
||||||
|
innerPadding = 4;
|
||||||
|
noBackground = false;
|
||||||
|
popupGapsAuto = true;
|
||||||
|
popupGapsManual = 4;
|
||||||
|
spacing = 0;
|
||||||
|
transparency = 1;
|
||||||
|
widgetOutlineColor = "primary";
|
||||||
|
widgetOutlineEnabled = false;
|
||||||
|
widgetOutlineOpacity = 1;
|
||||||
|
widgetOutlineThickness = 2;
|
||||||
|
widgetTransparency = 1;
|
||||||
|
squareCorners = true;
|
||||||
|
screenPreferences = ["all"];
|
||||||
|
showOnLastDisplay = true;
|
||||||
|
visible = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# Power saving
|
||||||
|
acLockTimeout = 0;
|
||||||
|
acMonitorTimeout = 0;
|
||||||
|
acProfileName = "";
|
||||||
|
acSuspendBehavior = 0;
|
||||||
|
acSuspendTimeout = 0;
|
||||||
|
|
||||||
|
animationSpeed = 1;
|
||||||
|
|
||||||
|
# Launcher
|
||||||
|
appLauncherGridColumns = 4;
|
||||||
|
appLauncherViewMode = "list";
|
||||||
|
launchPrefix = "";
|
||||||
|
launcherLogoBrightness = 0.5;
|
||||||
|
launcherLogoColorInvertOnMode = false;
|
||||||
|
launcherLogoColorOverride = "";
|
||||||
|
launcherLogoContrast = 1;
|
||||||
|
launcherLogoCustomPath = "";
|
||||||
|
launcherLogoMode = "os";
|
||||||
|
launcherLogoSizeOffset = 0;
|
||||||
|
|
||||||
|
# Audio
|
||||||
|
audioInputDevicePins = {};
|
||||||
|
audioOutputDevicePins = {};
|
||||||
|
audioVisualizerEnabled = true;
|
||||||
|
|
||||||
|
# Battery
|
||||||
|
batteryLockTimeout = 0;
|
||||||
|
batteryMonitorTimeout = 0;
|
||||||
|
batteryProfileName = "";
|
||||||
|
batterySuspendBehavior = 0;
|
||||||
|
batterySuspendTimeout = 0;
|
||||||
|
|
||||||
|
# Wallpaper
|
||||||
|
blurWallpaperOnOverview = true;
|
||||||
|
blurredWallpaperLayer = false;
|
||||||
|
wallpaperFillMode = "Fill";
|
||||||
|
|
||||||
|
# Control center
|
||||||
|
controlCenterShowAudioIcon = true;
|
||||||
|
controlCenterShowBatteryIcon = false;
|
||||||
|
controlCenterShowBluetoothIcon = true;
|
||||||
|
controlCenterShowBrightnessIcon = false;
|
||||||
|
controlCenterShowMicIcon = true;
|
||||||
|
controlCenterShowNetworkIcon = true;
|
||||||
|
controlCenterShowPrinterIcon = false;
|
||||||
|
controlCenterShowVpnIcon = true;
|
||||||
|
controlCenterWidgets = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "volumeSlider";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "brightnessSlider";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "wifi";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "bluetooth";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "audioOutput";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "audioInput";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "nightMode";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "darkMode";
|
||||||
|
width = 50;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# Styling
|
||||||
|
cornerRadius = 10;
|
||||||
|
currentThemeName = "cat-mauve";
|
||||||
|
customAnimationDuration = 500;
|
||||||
|
fontFamily = "MonoLisa Normal";
|
||||||
|
monoFontFamily = "MonoLisa Normal";
|
||||||
|
fontScale = 1;
|
||||||
|
fontWeight = 500;
|
||||||
|
gtkThemingEnabled = false;
|
||||||
|
iconTheme = "System Default";
|
||||||
|
|
||||||
|
# Lock
|
||||||
|
fadeToLockEnabled = true;
|
||||||
|
fadeToLockGracePeriod = 5;
|
||||||
|
lockBeforeSuspend = false;
|
||||||
|
lockDateFormat = "yyyy-MM-dd";
|
||||||
|
lockScreenActiveMonitor = "all";
|
||||||
|
lockScreenInactiveColor = "#000000";
|
||||||
|
lockScreenShowDate = true;
|
||||||
|
lockScreenShowPasswordField = true;
|
||||||
|
lockScreenShowPowerActions = true;
|
||||||
|
lockScreenShowProfileImage = true;
|
||||||
|
lockScreenShowSystemIcons = true;
|
||||||
|
lockScreenShowTime = true;
|
||||||
|
loginctlLockIntegration = true;
|
||||||
|
|
||||||
|
# Notifications
|
||||||
|
notificationOverlayEnabled = false;
|
||||||
|
notificationPopupPosition = 0;
|
||||||
|
notificationTimeoutCritical = 0;
|
||||||
|
notificationTimeoutLow = 5000;
|
||||||
|
notificationTimeoutNormal = 5000;
|
||||||
|
|
||||||
|
# OSD
|
||||||
|
osdAlwaysShowValue = true;
|
||||||
|
osdAudioOutputEnabled = true;
|
||||||
|
osdBrightnessEnabled = true;
|
||||||
|
osdCapsLockEnabled = true;
|
||||||
|
osdIdleInhibitorEnabled = true;
|
||||||
|
osdMediaVolumeEnabled = true;
|
||||||
|
osdMicMuteEnabled = true;
|
||||||
|
osdPosition = 7;
|
||||||
|
osdPowerProfileEnabled = false;
|
||||||
|
osdVolumeEnabled = true;
|
||||||
|
|
||||||
|
# Power menu
|
||||||
|
powerActionConfirm = true;
|
||||||
|
powerActionHoldDuration = 0.5;
|
||||||
|
powerMenuActions = ["reboot" "logout" "poweroff" "lock" "restart"];
|
||||||
|
powerMenuDefaultAction = "poweroff";
|
||||||
|
powerMenuGridLayout = false;
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
focusedWindowCompactMode = false;
|
||||||
|
hideBrightnessSlider = false;
|
||||||
|
keyboardLayoutNameCompactMode = false;
|
||||||
|
modalDarkenBackground = true;
|
||||||
|
nightModeEnabled = false;
|
||||||
|
niriOverviewOverlayEnabled = true;
|
||||||
|
showBattery = false;
|
||||||
|
showCapsLockIndicator = false;
|
||||||
|
showClipboard = true;
|
||||||
|
showClock = true;
|
||||||
|
showControlCenterButton = true;
|
||||||
|
showCpuTemp = true;
|
||||||
|
showCpuUsage = true;
|
||||||
|
showDock = false;
|
||||||
|
showFocusedWindow = true;
|
||||||
|
showGpuTemp = false;
|
||||||
|
showLauncherButton = true;
|
||||||
|
showMemUsage = true;
|
||||||
|
showMusic = true;
|
||||||
|
showNotificationButton = true;
|
||||||
|
showOccupiedWorkspacesOnly = false;
|
||||||
|
showPrivacyButton = false;
|
||||||
|
showSystemTray = true;
|
||||||
|
showWorkspaceApps = false;
|
||||||
|
showWorkspaceIndex = false;
|
||||||
|
showWorkspacePadding = false;
|
||||||
|
showWorkspaceSwitcher = true;
|
||||||
|
soundNewNotification = true;
|
||||||
|
soundPluggedIn = true;
|
||||||
|
soundVolumeChanged = true;
|
||||||
|
soundsEnabled = false;
|
||||||
|
|
||||||
|
# Launcher
|
||||||
|
sortAppsAlphabetically = false;
|
||||||
|
spotlightCloseNiriOverview = true;
|
||||||
|
spotlightModalViewMode = "list";
|
||||||
|
|
||||||
|
# Clock
|
||||||
|
use24HourClock = true;
|
||||||
|
showSeconds = true;
|
||||||
|
clockCompactMode = false;
|
||||||
|
clockDateFormat = "yyyy-MM-dd";
|
||||||
|
|
||||||
|
# Media
|
||||||
|
waveProgressEnabled = true;
|
||||||
|
scrollTitleEnabled = true;
|
||||||
|
|
||||||
|
# Weather
|
||||||
|
showWeather = true;
|
||||||
|
useFahrenheit = false;
|
||||||
|
useAutoLocation = false;
|
||||||
|
weatherCoordinates = "51.5142273,7.4652789";
|
||||||
|
weatherEnabled = true;
|
||||||
|
weatherLocation = "Dortmund, Nordrhein-Westfalen";
|
||||||
|
|
||||||
|
# Workspaces
|
||||||
|
workspaceNameIcons = {};
|
||||||
|
workspaceScrolling = false;
|
||||||
|
workspacesPerMonitor = true;
|
||||||
|
|
||||||
|
# Dock
|
||||||
|
dockAutoHide = false;
|
||||||
|
dockBorderColor = "surfaceText";
|
||||||
|
dockBorderEnabled = false;
|
||||||
|
dockBorderOpacity = 1;
|
||||||
|
dockBorderThickness = 1;
|
||||||
|
dockBottomGap = 0;
|
||||||
|
dockGroupByApp = false;
|
||||||
|
dockIconSize = 40;
|
||||||
|
dockIndicatorStyle = "circle";
|
||||||
|
dockMargin = 0;
|
||||||
|
dockOpenOnOverview = false;
|
||||||
|
dockPosition = 1;
|
||||||
|
dockSpacing = 4;
|
||||||
|
dockTransparency = 1;
|
||||||
|
|
||||||
|
# Random shit
|
||||||
|
widgetBackgroundColor = "sc";
|
||||||
|
widgetColorMode = "default";
|
||||||
|
wifiNetworkPins = {};
|
||||||
|
brightnessDevicePins = {};
|
||||||
|
bluetoothDevicePins = {};
|
||||||
|
centeringMode = "index";
|
||||||
|
useSystemSoundTheme = false;
|
||||||
|
vpnLastConnected = "";
|
||||||
|
syncModeWithPortal = true;
|
||||||
|
terminalsAlwaysDark = false;
|
||||||
|
updaterCustomCommand = "";
|
||||||
|
updaterTerminalAdditionalParams = "";
|
||||||
|
updaterUseCustomCommand = false;
|
||||||
|
showOnLastDisplay = {};
|
||||||
|
dwlShowAllTags = false;
|
||||||
|
enableFprint = false;
|
||||||
|
enabledGpuPciIds = [];
|
||||||
|
customPowerActionHibernate = "";
|
||||||
|
customPowerActionLock = "";
|
||||||
|
customPowerActionLogout = "";
|
||||||
|
customPowerActionPowerOff = "";
|
||||||
|
customPowerActionReboot = "";
|
||||||
|
customPowerActionSuspend = "";
|
||||||
|
customThemeFile = "";
|
||||||
|
displayNameMode = "system";
|
||||||
|
matugenScheme = "scheme-tonal-spot";
|
||||||
|
matugenTargetMonitor = "";
|
||||||
|
matugenTemplateAlacritty = true;
|
||||||
|
matugenTemplateDgop = true;
|
||||||
|
matugenTemplateFirefox = true;
|
||||||
|
matugenTemplateFoot = true;
|
||||||
|
matugenTemplateGhostty = true;
|
||||||
|
matugenTemplateGtk = true;
|
||||||
|
matugenTemplateKcolorscheme = true;
|
||||||
|
matugenTemplateKitty = true;
|
||||||
|
matugenTemplateNiri = true;
|
||||||
|
matugenTemplatePywalfox = true;
|
||||||
|
matugenTemplateQt5ct = true;
|
||||||
|
matugenTemplateQt6ct = true;
|
||||||
|
matugenTemplateVesktop = true;
|
||||||
|
matugenTemplateVscode = true;
|
||||||
|
matugenTemplateWezterm = true;
|
||||||
|
notepadFontFamily = "";
|
||||||
|
notepadFontSize = 14;
|
||||||
|
notepadLastCustomTransparency = 0.7;
|
||||||
|
notepadShowLineNumbers = false;
|
||||||
|
notepadTransparencyOverride = -1;
|
||||||
|
notepadUseMonospace = true;
|
||||||
|
maxFprintTries = 15;
|
||||||
|
maxWorkspaceIcons = 3;
|
||||||
|
mediaSize = 1;
|
||||||
|
networkPreference = "auto";
|
||||||
|
selectedGpuIndex = 0;
|
||||||
|
popupTransparency = 1;
|
||||||
|
privacyShowCameraIcon = false;
|
||||||
|
privacyShowMicIcon = false;
|
||||||
|
privacyShowScreenShareIcon = false;
|
||||||
|
qtThemingEnabled = false;
|
||||||
|
runDmsMatugenTemplates = false;
|
||||||
|
runUserMatugenTemplates = false;
|
||||||
|
runningAppsCompactMode = true;
|
||||||
|
runningAppsCurrentWorkspace = false;
|
||||||
|
runningAppsGroupByApp = false;
|
||||||
|
screenPreferences = {};
|
||||||
|
|
||||||
|
configVersion = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
default.session = {
|
||||||
|
# Settings
|
||||||
|
doNotDisturb = false;
|
||||||
|
isLightMode = false;
|
||||||
|
weatherHourlyDetailed = true;
|
||||||
|
|
||||||
|
# Night
|
||||||
|
nightModeAutoEnabled = true;
|
||||||
|
nightModeAutoMode = "time";
|
||||||
|
nightModeEnabled = true;
|
||||||
|
nightModeEndHour = 6;
|
||||||
|
nightModeEndMinute = 0;
|
||||||
|
nightModeHighTemperature = 6500;
|
||||||
|
nightModeLocationProvider = "";
|
||||||
|
nightModeStartHour = 22;
|
||||||
|
nightModeStartMinute = 0;
|
||||||
|
nightModeTemperature = 5500;
|
||||||
|
nightModeUseIPLocation = false;
|
||||||
|
|
||||||
|
# Hardware
|
||||||
|
nonNvidiaGpuTempEnabled = false;
|
||||||
|
nvidiaGpuTempEnabled = false;
|
||||||
|
selectedGpuIndex = 0;
|
||||||
|
wifiDeviceOverride = "";
|
||||||
|
enabledGpuPciIds = [];
|
||||||
|
lastBrightnessDevice = "";
|
||||||
|
|
||||||
|
# Wallpapers
|
||||||
|
perModeWallpaper = false;
|
||||||
|
perMonitorWallpaper = false;
|
||||||
|
wallpaperCyclingEnabled = false;
|
||||||
|
wallpaperCyclingInterval = 300;
|
||||||
|
wallpaperCyclingMode = "interval";
|
||||||
|
wallpaperCyclingTime = "06:00";
|
||||||
|
wallpaperPath = "/home/christoph/NixFlake/wallpapers/Windows.jpg";
|
||||||
|
wallpaperPathDark = "";
|
||||||
|
wallpaperPathLight = "";
|
||||||
|
wallpaperTransition = "iris bloom";
|
||||||
|
|
||||||
|
# Random shit
|
||||||
|
includedTransitions = ["fade" "wipe" "disc" "stripes" "iris bloom" "pixelate" "portal"];
|
||||||
|
launchPrefix = "";
|
||||||
|
latitude = 0;
|
||||||
|
longitude = 0;
|
||||||
|
pinnedApps = [];
|
||||||
|
hiddenTrayIds = [];
|
||||||
|
recentColors = [];
|
||||||
|
showThirdPartyPlugins = true;
|
||||||
|
|
||||||
|
# Ultra random shit
|
||||||
|
monitorCyclingSettings = {};
|
||||||
|
monitorWallpapers = {};
|
||||||
|
monitorWallpapersDark = {};
|
||||||
|
monitorWallpapersLight = {};
|
||||||
|
brightnessExponentValues = {};
|
||||||
|
brightnessExponentialDevices = {};
|
||||||
|
brightnessUserSetValues = {};
|
||||||
|
|
||||||
|
configVersion = 1;
|
||||||
|
};
|
||||||
|
}
|
||||||
580
home/modules/niri/default.nix
Normal file
580
home/modules/niri/default.nix
Normal file
@ -0,0 +1,580 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.modules) niri color;
|
||||||
|
in {
|
||||||
|
options.modules.niri = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf niri.enable rec {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = nixosConfig.programs.niri.enable;
|
||||||
|
message = "Can't enable Niri config with Niri disabled!";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = !(programs.noctalia-shell.enable && programs.dankMaterialShell.enable);
|
||||||
|
message = "Can't enable Noctalia and DankMaterialShell at the same time!";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
iconTheme.package = color.iconPackage;
|
||||||
|
iconTheme.name = color.iconTheme;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Disable niri polkit if we use DMS, as it has its own
|
||||||
|
systemd.user.services.niri-flake-polkit = lib.mkForce {};
|
||||||
|
|
||||||
|
home = {
|
||||||
|
sessionVariables = {
|
||||||
|
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
|
||||||
|
GDK_BACKEND = "wayland"; # For screen sharing
|
||||||
|
};
|
||||||
|
|
||||||
|
pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
package = color.cursorPackage;
|
||||||
|
name = color.cursor;
|
||||||
|
size = color.cursorSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
xwayland-satellite
|
||||||
|
ncpamixer # Audio control
|
||||||
|
|
||||||
|
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
|
||||||
|
|
||||||
|
# In case we fallback to the default config
|
||||||
|
alacritty
|
||||||
|
fuzzel
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
# TODO: Those should be modules with their own options
|
||||||
|
noctalia-shell = import ./noctalia.nix {inherit color;};
|
||||||
|
dankMaterialShell = import ./dankMaterialShell.nix {inherit color;};
|
||||||
|
|
||||||
|
# TODO: Extract options
|
||||||
|
niri = {
|
||||||
|
# enable = true; # Enabled in system module
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
input = {
|
||||||
|
focus-follows-mouse = {
|
||||||
|
enable = true;
|
||||||
|
# max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus
|
||||||
|
};
|
||||||
|
|
||||||
|
keyboard = {
|
||||||
|
xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
options = "nodeadkeys";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
click-method = "clickfinger";
|
||||||
|
tap = true;
|
||||||
|
drag = true;
|
||||||
|
dwt = true;
|
||||||
|
natural-scroll = true;
|
||||||
|
scroll-method = "two-finger";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hotkey-overlay = {
|
||||||
|
hide-not-bound = true;
|
||||||
|
skip-at-startup = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars)
|
||||||
|
|
||||||
|
spawn-at-startup = [
|
||||||
|
# TODO: Depend on options
|
||||||
|
# {argv = ["noctalia-shell"];}
|
||||||
|
{argv = ["dms" "run"];}
|
||||||
|
|
||||||
|
{argv = ["kitty" "--hold" "fastfetch"];}
|
||||||
|
{argv = ["zeal"];}
|
||||||
|
{argv = ["protonvpn-app"];}
|
||||||
|
{argv = ["fcitx5"];}
|
||||||
|
{argv = ["jellyfin-mpv-shim"];}
|
||||||
|
|
||||||
|
{sh = "sleep 5s && nextcloud --background";}
|
||||||
|
{sh = "sleep 5s && keepassxc";}
|
||||||
|
];
|
||||||
|
|
||||||
|
workspaces = {
|
||||||
|
"1" = {open-on-output = "DP-1";};
|
||||||
|
"2" = {open-on-output = "DP-1";};
|
||||||
|
"3" = {open-on-output = "DP-1";};
|
||||||
|
"4" = {open-on-output = "DP-1";};
|
||||||
|
"5" = {open-on-output = "DP-1";};
|
||||||
|
"6" = {open-on-output = "DP-1";};
|
||||||
|
"7" = {open-on-output = "DP-1";};
|
||||||
|
"8" = {open-on-output = "DP-1";};
|
||||||
|
"9" = {open-on-output = "DP-1";};
|
||||||
|
"10" = {open-on-output = "DP-2";};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
"DP-1" = {
|
||||||
|
focus-at-startup = true;
|
||||||
|
mode = {
|
||||||
|
width = 3440;
|
||||||
|
height = 1440;
|
||||||
|
refresh = 164.999;
|
||||||
|
};
|
||||||
|
position = {
|
||||||
|
x = 1920;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"DP-2" = {
|
||||||
|
focus-at-startup = false;
|
||||||
|
mode = {
|
||||||
|
width = 1920;
|
||||||
|
height = 1080;
|
||||||
|
refresh = 60.0;
|
||||||
|
};
|
||||||
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
hide-when-typing = true;
|
||||||
|
theme = color.cursor;
|
||||||
|
size = color.cursorSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
layout = {
|
||||||
|
# This border is drawn INSIDE the window
|
||||||
|
border = {
|
||||||
|
enable = true;
|
||||||
|
width = 2;
|
||||||
|
active = {color = color.hex.accent;};
|
||||||
|
inactive = {color = color.hex.base;};
|
||||||
|
};
|
||||||
|
|
||||||
|
# This border is drawn OUTSIDE of the focused window
|
||||||
|
focus-ring = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Hint where a dragged window will be inserted
|
||||||
|
insert-hint = {
|
||||||
|
enable = true;
|
||||||
|
display = {color = color.hex.accentDim;};
|
||||||
|
};
|
||||||
|
|
||||||
|
always-center-single-column = true;
|
||||||
|
|
||||||
|
# Gaps between windows
|
||||||
|
gaps = 8;
|
||||||
|
|
||||||
|
# Gaps at screen borders
|
||||||
|
struts = {
|
||||||
|
# left = 8;
|
||||||
|
# right = 8;
|
||||||
|
top = 4; # Somehow the bar eclusivity doesn't work as expected
|
||||||
|
bottom = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
hot-corners = {enable = false;};
|
||||||
|
};
|
||||||
|
|
||||||
|
window-rules = [
|
||||||
|
# Rules for all windows
|
||||||
|
{
|
||||||
|
default-column-width.proportion = 0.5;
|
||||||
|
default-window-height.proportion = 1.0;
|
||||||
|
|
||||||
|
# Rounded corners
|
||||||
|
clip-to-geometry = true;
|
||||||
|
geometry-corner-radius = {
|
||||||
|
bottom-left = 8.0;
|
||||||
|
bottom-right = 8.0;
|
||||||
|
top-left = 8.0;
|
||||||
|
top-right = 8.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
# open-floating = false;
|
||||||
|
# open-focused = false;
|
||||||
|
# open-fullscreen = false;
|
||||||
|
# open-maximized = false;
|
||||||
|
|
||||||
|
# open-on-output = "DP-1";
|
||||||
|
# open-on-workspace = "2";
|
||||||
|
|
||||||
|
# opacity = 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rules for specific windows
|
||||||
|
{
|
||||||
|
matches = [{app-id = "Zotero";}];
|
||||||
|
open-on-workspace = "2";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "neovide";}];
|
||||||
|
open-on-workspace = "2";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "code-url-handler";}];
|
||||||
|
open-on-workspace = "2";
|
||||||
|
open-floating = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "obsidian";}];
|
||||||
|
open-on-workspace = "3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "firefox";}];
|
||||||
|
open-on-workspace = "4";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "Google-chrome";}];
|
||||||
|
open-on-workspace = "4";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "chromium-browser";}];
|
||||||
|
open-on-workspace = "4";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "org.qutebrowser.qutebrowser";}];
|
||||||
|
open-on-workspace = "4";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "steam";}];
|
||||||
|
open-on-workspace = "5";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "steam_app_(.+)";}];
|
||||||
|
open-on-workspace = "6";
|
||||||
|
open-floating = true;
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "signal";}];
|
||||||
|
open-on-workspace = "7";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "discord";}];
|
||||||
|
open-on-workspace = "9";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
layer-rules = [
|
||||||
|
{
|
||||||
|
# Set the overview wallpaper on the backdrop.
|
||||||
|
matches = [{namespace = "^noctalia-overview*";}];
|
||||||
|
place-within-backdrop = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
debug = {
|
||||||
|
# Allows notification actions and window activation from Noctalia.
|
||||||
|
honor-xdg-activation-with-invalid-serial = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: Only start hypr... stuff with hyprland, not systemd (hypridle, hyprpaper currently)
|
||||||
|
|
||||||
|
# TODO: Move values to config option and set in home/christoph/niri.nix
|
||||||
|
binds = with config.lib.niri.actions; {
|
||||||
|
# Applications
|
||||||
|
"Mod+T" = {
|
||||||
|
action = spawn "kitty";
|
||||||
|
hotkey-overlay = {title = "Spawn Kitty.";};
|
||||||
|
};
|
||||||
|
"Mod+E" = {
|
||||||
|
action = spawn "kitty" "--title=Yazi" "yazi";
|
||||||
|
hotkey-overlay = {title = "Spawn Yazi.";};
|
||||||
|
};
|
||||||
|
"Mod+B" = {
|
||||||
|
action = spawn "kitty" "--title=Btop" "btop";
|
||||||
|
hotkey-overlay = {title = "Spawn Btop.";};
|
||||||
|
};
|
||||||
|
"Mod+R" = {
|
||||||
|
action = spawn "kitty" "--title=Rmpc" "rmpc";
|
||||||
|
hotkey-overlay = {title = "Spawn Rmpc.";};
|
||||||
|
};
|
||||||
|
"Mod+N" = {
|
||||||
|
action = spawn "neovide";
|
||||||
|
hotkey-overlay = {title = "Spawn Neovide.";};
|
||||||
|
};
|
||||||
|
"Mod+Ctrl+N" = {
|
||||||
|
action = spawn "kitty" "--title=Navi" "navi";
|
||||||
|
hotkey-overlay = {title = "Call Navi for help.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+N" = {
|
||||||
|
action = spawn "neovide" "${config.paths.dotfiles}/navi/christoph.cheat";
|
||||||
|
hotkey-overlay = {title = "Edit the Navi cheats.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+F" = {
|
||||||
|
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
|
||||||
|
hotkey-overlay = {title = "Edit the NixFlake.";};
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: Enable with Noctalia option
|
||||||
|
# Noctalia
|
||||||
|
# "Mod+A" = {
|
||||||
|
# action = spawn "noctalia-shell" "ipc" "call" "launcher" "toggle";
|
||||||
|
# hotkey-overlay = {title = "Toggle the application launcher.";};
|
||||||
|
# };
|
||||||
|
# "Mod+Ctrl+L" = {
|
||||||
|
# action = spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock";
|
||||||
|
# hotkey-overlay = {title = "Lock the screen.";};
|
||||||
|
# };
|
||||||
|
# "Mod+W" = {
|
||||||
|
# action = spawn "noctalia-shell" "ipc" "call" "wallpaper" "toggle";
|
||||||
|
# hotkey-overlay = {title = "Toggle the wallpaper chooser.";};
|
||||||
|
# };
|
||||||
|
# "Mod+Escape" = {
|
||||||
|
# action = spawn "noctalia-shell" "ipc" "call" "sessionMenu" "toggle";
|
||||||
|
# hotkey-overlay = {title = "Toggle the session menu.";};
|
||||||
|
# };
|
||||||
|
|
||||||
|
# TODO: Enable with DMS option
|
||||||
|
# DankMaterialShell
|
||||||
|
"Mod+A" = {
|
||||||
|
action = spawn "dms" "ipc" "call" "spotlight" "toggle";
|
||||||
|
hotkey-overlay = {title = "Toggle the application launcher.";};
|
||||||
|
};
|
||||||
|
"Mod+Ctrl+L" = {
|
||||||
|
action = spawn "dms" "ipc" "call" "lock" "lock";
|
||||||
|
hotkey-overlay = {title = "Lock the screen.";};
|
||||||
|
};
|
||||||
|
"Mod+Escape" = {
|
||||||
|
action = spawn "dms" "ipc" "call" "powermenu" "toggle";
|
||||||
|
hotkey-overlay = {title = "Toggle the session menu.";};
|
||||||
|
};
|
||||||
|
"Mod+C" = {
|
||||||
|
action = spawn "dms" "ipc" "call" "clipboard" "toggle";
|
||||||
|
hotkey-overlay = {title = "Show clipboard history.";};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
"Mod+S" = {
|
||||||
|
action.screenshot-window = {write-to-disk = true;};
|
||||||
|
hotkey-overlay = {title = "Take a screenshot of the current window.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+S" = {
|
||||||
|
action.screenshot = {show-pointer = true;};
|
||||||
|
hotkey-overlay = {title = "Take a screenshot of a region.";};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Niri
|
||||||
|
"Mod+Shift+Slash" = {
|
||||||
|
action = show-hotkey-overlay;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Audio
|
||||||
|
"XF86AudioRaiseVolume" = {
|
||||||
|
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%+";
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"XF86AudioLowerVolume" = {
|
||||||
|
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%-";
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"XF86AudioPlay" = {
|
||||||
|
action = spawn "playerctl" "play-pause";
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"XF86AudioPrev" = {
|
||||||
|
action = spawn "playerctl" "previous";
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"XF86AudioNext" = {
|
||||||
|
action = spawn "playerctl" "next";
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Niri windows
|
||||||
|
"Mod+Q" = {
|
||||||
|
action = close-window;
|
||||||
|
hotkey-overlay = {title = "Close the current window.";};
|
||||||
|
};
|
||||||
|
"Mod+F" = {
|
||||||
|
action = fullscreen-window;
|
||||||
|
hotkey-overlay = {title = "Toggle between fullscreen and tiled window.";};
|
||||||
|
};
|
||||||
|
"Mod+Equal" = {
|
||||||
|
action = set-column-width "+10%";
|
||||||
|
hotkey-overlay = {title = "Increase column width";};
|
||||||
|
};
|
||||||
|
"Mod+Minus" = {
|
||||||
|
action = set-column-width "-10%";
|
||||||
|
hotkey-overlay = {title = "Decrease column width";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+M" = {
|
||||||
|
action = set-column-width "50%";
|
||||||
|
hotkey-overlay = {title = "Set column width to 50%";};
|
||||||
|
};
|
||||||
|
"Mod+M" = {
|
||||||
|
action = maximize-column;
|
||||||
|
hotkey-overlay = {title = "Maximize column.";};
|
||||||
|
};
|
||||||
|
"Mod+V" = {
|
||||||
|
action = toggle-window-floating;
|
||||||
|
hotkey-overlay = {title = "Toggle between floating and tiled window.";};
|
||||||
|
};
|
||||||
|
"Mod+O" = {
|
||||||
|
action = toggle-overview;
|
||||||
|
hotkey-overlay = {title = "Toggle overlay.";};
|
||||||
|
};
|
||||||
|
"Mod+H" = {
|
||||||
|
action = focus-column-or-monitor-left;
|
||||||
|
hotkey-overlay = {title = "Focus column on the left. Equivalent bindings for other directions.";};
|
||||||
|
};
|
||||||
|
"Mod+J" = {
|
||||||
|
action = focus-window-or-workspace-down;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+K" = {
|
||||||
|
action = focus-window-or-workspace-up;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+L" = {
|
||||||
|
action = focus-column-or-monitor-right;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+WheelScrollUp" = {
|
||||||
|
action = focus-column-left;
|
||||||
|
hotkey-overlay = {title = "Focus column on the left. Equivalent binding for other direction.";};
|
||||||
|
};
|
||||||
|
"Mod+WheelScrollDown" = {
|
||||||
|
action = focus-column-right;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+WheelScrollUp" = {
|
||||||
|
action = focus-workspace-up;
|
||||||
|
hotkey-overlay = {title = "Focus previous workspace. Equivalent binding for other direction.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+WheelScrollDown" = {
|
||||||
|
action = focus-workspace-down;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+H" = {
|
||||||
|
action = move-column-left-or-to-monitor-left;
|
||||||
|
hotkey-overlay = {title = "Move column to the left. Equivalent bindings for other directions.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+J" = {
|
||||||
|
action = move-window-down-or-to-workspace-down;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+K" = {
|
||||||
|
action = move-window-up-or-to-workspace-up;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+L" = {
|
||||||
|
action = move-column-right-or-to-monitor-right;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Niri workspaces
|
||||||
|
"Mod+1" = {
|
||||||
|
action = focus-workspace 1;
|
||||||
|
hotkey-overlay = {title = "Focus workspace 1. Equivalent bindings for other workspaces.";};
|
||||||
|
};
|
||||||
|
"Mod+2" = {
|
||||||
|
action = focus-workspace 2;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+3" = {
|
||||||
|
action = focus-workspace 3;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+4" = {
|
||||||
|
action = focus-workspace 4;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+5" = {
|
||||||
|
action = focus-workspace 5;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+6" = {
|
||||||
|
action = focus-workspace 6;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+7" = {
|
||||||
|
action = focus-workspace 7;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+8" = {
|
||||||
|
action = focus-workspace 8;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+9" = {
|
||||||
|
action = focus-workspace 9;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+0" = {
|
||||||
|
action = focus-workspace 10;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+1" = {
|
||||||
|
action.move-window-to-workspace = 1;
|
||||||
|
hotkey-overlay = {title = "Move current window to workspace 1. Equivalent bindings for other workspaces.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+2" = {
|
||||||
|
action.move-window-to-workspace = 2;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+3" = {
|
||||||
|
action.move-window-to-workspace = 3;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+4" = {
|
||||||
|
action.move-window-to-workspace = 4;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+5" = {
|
||||||
|
action.move-window-to-workspace = 5;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+6" = {
|
||||||
|
action.move-window-to-workspace = 6;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+7" = {
|
||||||
|
action.move-window-to-workspace = 7;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+8" = {
|
||||||
|
action.move-window-to-workspace = 8;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+9" = {
|
||||||
|
action.move-window-to-workspace = 9;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
"Mod+Shift+0" = {
|
||||||
|
action.move-window-to-workspace = 10;
|
||||||
|
hotkey-overlay = {hidden = true;};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
265
home/modules/niri/noctalia.nix
Normal file
265
home/modules/niri/noctalia.nix
Normal file
@ -0,0 +1,265 @@
|
|||||||
|
{color}: {
|
||||||
|
enable = false;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
# configure noctalia here; defaults will
|
||||||
|
# be deep merged with these attributes.
|
||||||
|
|
||||||
|
colorSchemes.predefinedScheme = "Catppuccin";
|
||||||
|
|
||||||
|
general = {
|
||||||
|
avatarImage = ../../../config/face.jpeg;
|
||||||
|
radiusRatio = 0.2;
|
||||||
|
showScreenCorners = false;
|
||||||
|
forceBlackScreenCorners = false;
|
||||||
|
dimDesktop = true;
|
||||||
|
scaleRatio = 1;
|
||||||
|
screenRadiusRatio = 1;
|
||||||
|
animationSpeed = 1;
|
||||||
|
animationDisabled = false;
|
||||||
|
compactLockScreen = false;
|
||||||
|
lockOnSuspend = true;
|
||||||
|
enableShadows = true;
|
||||||
|
shadowDirection = "bottom_right";
|
||||||
|
shadowOffsetX = 2;
|
||||||
|
shadowOffsetY = 3;
|
||||||
|
language = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
ui = {
|
||||||
|
fontDefault = color.font;
|
||||||
|
fontFixed = color.font;
|
||||||
|
tooltipsEnabled = true;
|
||||||
|
panelsAttachedToBar = true;
|
||||||
|
settingsPanelAttachTobar = true;
|
||||||
|
fontDefaultScale = 1;
|
||||||
|
fontFixedScale = 1;
|
||||||
|
settingsPanelAttachToBar = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
location = {
|
||||||
|
name = "Dortmund, Germany";
|
||||||
|
monthBeforeDay = true;
|
||||||
|
weatherEnabled = true;
|
||||||
|
useFahrenheit = false;
|
||||||
|
use12hourFormat = false;
|
||||||
|
showWeekNumberInCalendar = false;
|
||||||
|
showCalendarEvents = true;
|
||||||
|
showCalendarWeather = true;
|
||||||
|
analogClockInCalendar = false;
|
||||||
|
firstDayOfWeek = -1;
|
||||||
|
};
|
||||||
|
|
||||||
|
screenRecorder = {
|
||||||
|
directory = "~/Videos/Recordings";
|
||||||
|
frameRate = 60;
|
||||||
|
audioCodec = "aac";
|
||||||
|
videoCodec = "h265";
|
||||||
|
quality = "very_high";
|
||||||
|
colorRange = "limited";
|
||||||
|
showCursor = true;
|
||||||
|
audioSource = "default_output";
|
||||||
|
videoSource = "portal";
|
||||||
|
};
|
||||||
|
|
||||||
|
wallpaper = {
|
||||||
|
enabled = true;
|
||||||
|
overviewEnabled = true;
|
||||||
|
directory = "~/NixFlake/wallpapers";
|
||||||
|
enableMultiMonitorDirectories = false;
|
||||||
|
recursiveSearch = false;
|
||||||
|
setWallpaperOnAllMonitors = true;
|
||||||
|
defaultWallpaper = ../../../wallpapers/Windows.jpg;
|
||||||
|
fillMode = "crop";
|
||||||
|
fillColor = "#000000";
|
||||||
|
randomEnabled = false;
|
||||||
|
randomIntervalSec = 300;
|
||||||
|
transitionDuration = 1500;
|
||||||
|
transitionType = "random";
|
||||||
|
transitionEdgeSmoothness = 0.05;
|
||||||
|
monitors = [];
|
||||||
|
panelPosition = "follow_bar";
|
||||||
|
};
|
||||||
|
|
||||||
|
appLauncher = {
|
||||||
|
enableClipboardHistory = true;
|
||||||
|
position = "center";
|
||||||
|
backgroundOpacity = 1;
|
||||||
|
pinnedExecs = [];
|
||||||
|
useApp2Unit = false;
|
||||||
|
sortByMostUsed = true;
|
||||||
|
terminalCommand = "kitty -e";
|
||||||
|
customLaunchPrefixEnabled = false;
|
||||||
|
customLaunchPrefix = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
dock = {
|
||||||
|
enabled = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
network = {
|
||||||
|
wifiEnabled = true;
|
||||||
|
bluetoothEnabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
notifications = {
|
||||||
|
enabled = true;
|
||||||
|
monitors = [];
|
||||||
|
location = "top_right";
|
||||||
|
overlayLayer = true;
|
||||||
|
backgroundOpacity = 1;
|
||||||
|
respectExpireTimeout = false;
|
||||||
|
lowUrgencyDuration = 3;
|
||||||
|
normalUrgencyDuration = 8;
|
||||||
|
criticalUrgencyDuration = 15;
|
||||||
|
};
|
||||||
|
|
||||||
|
osd = {
|
||||||
|
enabled = true;
|
||||||
|
location = "top_right";
|
||||||
|
monitors = [];
|
||||||
|
autoHideMs = 2000;
|
||||||
|
overlayLayer = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
audio = {
|
||||||
|
volumeStep = 5;
|
||||||
|
volumeOverdrive = true;
|
||||||
|
cavaFrameRate = 30;
|
||||||
|
visualizerType = "linear";
|
||||||
|
visualizerQuality = "high";
|
||||||
|
mprisBlacklist = [];
|
||||||
|
preferredPlayer = "";
|
||||||
|
externalMixer = "kitty --title=Ncpamixer ncpamixer";
|
||||||
|
};
|
||||||
|
|
||||||
|
nightLight = {
|
||||||
|
enabled = false;
|
||||||
|
forced = false;
|
||||||
|
autoSchedule = true;
|
||||||
|
nightTemp = "5000";
|
||||||
|
dayTemp = "6500";
|
||||||
|
manualSunrise = "06:30";
|
||||||
|
manualSunset = "21:30";
|
||||||
|
};
|
||||||
|
|
||||||
|
sessionMenu = {
|
||||||
|
countdownDuration = 10000;
|
||||||
|
enableCountdown = true;
|
||||||
|
position = "center";
|
||||||
|
powerOptions = [
|
||||||
|
{
|
||||||
|
action = "lock";
|
||||||
|
enabled = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "suspend";
|
||||||
|
enabled = false;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "reboot";
|
||||||
|
enabled = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "logout";
|
||||||
|
enabled = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "shutdown";
|
||||||
|
enabled = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
showHeader = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
bar = {
|
||||||
|
density = "default";
|
||||||
|
position = "top";
|
||||||
|
showCapsule = false;
|
||||||
|
outerCorners = false;
|
||||||
|
exclusive = true;
|
||||||
|
backgroundOpacity = 1;
|
||||||
|
monitors = [];
|
||||||
|
floating = false;
|
||||||
|
marginVertical = 0.25;
|
||||||
|
marginHorizontal = 0.25;
|
||||||
|
|
||||||
|
widgets = {
|
||||||
|
left = [
|
||||||
|
{
|
||||||
|
id = "SidePanelToggle";
|
||||||
|
useDistroLogo = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
hideUnoccupied = false;
|
||||||
|
id = "Workspace";
|
||||||
|
labelMode = "none";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "ActiveWindow";
|
||||||
|
maxWidth = 250;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
center = [
|
||||||
|
{
|
||||||
|
id = "MediaMini";
|
||||||
|
maxWidth = 250;
|
||||||
|
showAlbumArt = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "AudioVisualizer";
|
||||||
|
width = 100;
|
||||||
|
visualizerType = "mirrored";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
right = [
|
||||||
|
# {
|
||||||
|
# id = "SystemMonitor";
|
||||||
|
# usePrimaryColor = true;
|
||||||
|
# showCpuUsage = true;
|
||||||
|
# showCpuTemp = false;
|
||||||
|
# showMemoryUsage = true;
|
||||||
|
# showMemoryAsPercent = false;
|
||||||
|
# showNetworkStats = true;
|
||||||
|
# showDiskUsage = true;
|
||||||
|
# diskPath = "/";
|
||||||
|
# }
|
||||||
|
{
|
||||||
|
id = "Volume";
|
||||||
|
# displayMode = "alwaysShow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "Microphone";
|
||||||
|
# displayMode = "alwaysShow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "Bluetooth";
|
||||||
|
# displayMode = "alwaysShow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "WiFi";
|
||||||
|
# displayMode = "alwaysShow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "VPN";
|
||||||
|
# displayMode = "alwaysShow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "Tray";
|
||||||
|
drawerEnabled = false;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
formatHorizontal = "yyyy-MM-dd HH:mm";
|
||||||
|
formatVertical = "HH mm";
|
||||||
|
id = "Clock";
|
||||||
|
useMonospacedFont = true;
|
||||||
|
usePrimaryColor = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "NotificationHistory";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/modules/niri/options.nix
Normal file
7
home/modules/niri/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Niri";
|
||||||
|
}
|
||||||
@ -24,7 +24,7 @@ in {
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
modi = "run,drun,ssh,filebrowser";
|
modi = "run,drun,ssh,filebrowser";
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
icon-theme = "Papirus";
|
icon-theme = color.iconTheme;
|
||||||
drun-display-format = "{icon} {name}";
|
drun-display-format = "{icon} {name}";
|
||||||
disable-history = false;
|
disable-history = false;
|
||||||
hide-scrollbar = true;
|
hide-scrollbar = true;
|
||||||
@ -184,18 +184,19 @@ in {
|
|||||||
(color.wallpapers
|
(color.wallpapers
|
||||||
|> builtins.map (setWallpaperOnMonitors monitors)
|
|> builtins.map (setWallpaperOnMonitors monitors)
|
||||||
|> lib.mergeAttrsList);
|
|> lib.mergeAttrsList);
|
||||||
in {
|
in
|
||||||
bindings = lib.mergeAttrsList [
|
lib.mkIf (!config.modules.hyprland.caelestia.enable) {
|
||||||
{
|
bindings = lib.mergeAttrsList [
|
||||||
"$mainMod, escape" = ["exec, \"${power-menu}/bin/rofi-menu-power\""];
|
{
|
||||||
"$mainMod, m" = ["exec, \"${keybinds-menu}/bin/rofi-menu-keybinds\""];
|
"$mainMod, escape" = ["exec, \"${power-menu}/bin/rofi-menu-power\""];
|
||||||
"$mainMod, w" = ["exec, \"${wallpaper-menu}/bin/rofi-menu-wall\""];
|
"$mainMod, m" = ["exec, \"${keybinds-menu}/bin/rofi-menu-keybinds\""];
|
||||||
# "$mainMod, o" = ["exec, \"${lectures-menu}\""];
|
"$mainMod, w" = ["exec, \"${wallpaper-menu}/bin/rofi-menu-wall\""];
|
||||||
}
|
# "$mainMod, o" = ["exec, \"${lectures-menu}\""];
|
||||||
(lib.optionalAttrs (!nixosConfig.modules.network.useNetworkManager) {
|
}
|
||||||
"$mainMod, U" = ["exec, \"${vpn-menu}/rofi-menu-vpn\""];
|
(lib.optionalAttrs (!nixosConfig.modules.network.useNetworkManager) {
|
||||||
})
|
"$mainMod, U" = ["exec, \"${vpn-menu}/rofi-menu-vpn\""];
|
||||||
];
|
})
|
||||||
};
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ in {
|
|||||||
opener = {
|
opener = {
|
||||||
play = [
|
play = [
|
||||||
{
|
{
|
||||||
run = ''vlc "$@"'';
|
run = ''mpv "$@"'';
|
||||||
orphan = true;
|
orphan = true;
|
||||||
desc = "Play selection";
|
desc = "Play selection";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,10 @@
|
|||||||
# localSystem = {inherit (prev) system;};
|
# localSystem = {inherit (prev) system;};
|
||||||
# }).unityhub;
|
# }).unityhub;
|
||||||
|
|
||||||
|
# Remove this after jetbrains.jdk builds again (nixpkgs issue 425328)
|
||||||
|
# jetbrains.rider = pkgs-stable.jetbrains.rider;
|
||||||
|
|
||||||
|
# Now in Nixpkgs
|
||||||
# neovide = prev.neovide.overrideAttrs (finalAttrs: prevAttrs: {
|
# neovide = prev.neovide.overrideAttrs (finalAttrs: prevAttrs: {
|
||||||
# version = "0.15.1";
|
# version = "0.15.1";
|
||||||
# src = prev.fetchFromGitHub {
|
# src = prev.fetchFromGitHub {
|
||||||
@ -41,8 +45,21 @@
|
|||||||
# };
|
# };
|
||||||
# });
|
# });
|
||||||
|
|
||||||
# Remove this after jetbrains.jdk builds again (nixpkgs issue 425328)
|
# Now in Nixpkgs
|
||||||
# jetbrains.rider = pkgs-stable.jetbrains.rider;
|
# rmpc = prev.rmpc.overrideAttrs (finalAttrs: prevAttrs: {
|
||||||
|
# version = "0.10.0";
|
||||||
|
# src = prev.fetchFromGitHub {
|
||||||
|
# owner = "mierak";
|
||||||
|
# repo = "rmpc";
|
||||||
|
# rev = "v0.10.0";
|
||||||
|
# hash = "sha256-NU8T26oPhm8L7wdO4p65cpNa0pax7/oqHGs98QDoEc0=";
|
||||||
|
# };
|
||||||
|
# cargoHash = "sha256-d2/4q2s/11HNE18D8d8Y2yWidhT+XsUS4J9ahnxToI0=";
|
||||||
|
# cargoDeps = prev.rustPlatform.fetchCargoVendor {
|
||||||
|
# inherit (finalAttrs) pname src version;
|
||||||
|
# hash = finalAttrs.cargoHash;
|
||||||
|
# };
|
||||||
|
# });
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
# Composes a list of overlays and returns a single overlay function that combines them.
|
# Composes a list of overlays and returns a single overlay function that combines them.
|
||||||
|
|||||||
@ -41,6 +41,7 @@ with mylib.networking; {
|
|||||||
|
|
||||||
termfilechooser.enable = true;
|
termfilechooser.enable = true;
|
||||||
hyprland.enable = config.programs.hyprland.enable;
|
hyprland.enable = config.programs.hyprland.enable;
|
||||||
|
niri.enable = config.programs.niri.enable;
|
||||||
};
|
};
|
||||||
|
|
||||||
docker = {
|
docker = {
|
||||||
@ -69,8 +70,8 @@ with mylib.networking; {
|
|||||||
defaultWebBrowser = "firefox.desktop";
|
defaultWebBrowser = "firefox.desktop";
|
||||||
defaultPdfViewer = "org.pwmt.zathura.desktop";
|
defaultPdfViewer = "org.pwmt.zathura.desktop";
|
||||||
defaultImageViewer = "imv-dir.desktop";
|
defaultImageViewer = "imv-dir.desktop";
|
||||||
defaultAudioPlayer = "vlc.desktop";
|
defaultAudioPlayer = "mpv.desktop";
|
||||||
defaultVideoPlayer = "vlc.desktop";
|
defaultVideoPlayer = "mpv.desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
@ -143,7 +144,7 @@ with mylib.networking; {
|
|||||||
|
|
||||||
# Bootloader/Kernel stuff
|
# Bootloader/Kernel stuff
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
kernelPackages = lib.mkDefault pkgs.linuxPackages;
|
||||||
kernelParams = ["mitigations=off"]; # I don't care
|
kernelParams = ["mitigations=off"]; # I don't care
|
||||||
|
|
||||||
# Make /tmp volatile
|
# Make /tmp volatile
|
||||||
@ -324,7 +325,7 @@ with mylib.networking; {
|
|||||||
firejail.enable = true; # Use to run app in network namespace (e.g. through vpn)
|
firejail.enable = true; # Use to run app in network namespace (e.g. through vpn)
|
||||||
fuse.userAllowOther = true; # Allow users to mount e.g. samba shares (cifs)
|
fuse.userAllowOther = true; # Allow users to mount e.g. samba shares (cifs)
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
kdeconnect.enable = !headless; # Use this instead of HM for firewall setup
|
# kdeconnect.enable = !headless; # Use this instead of HM for firewall setup
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
nix-ld.enable = true; # Load dynamically linked executables
|
nix-ld.enable = true; # Load dynamically linked executables
|
||||||
|
|
||||||
@ -340,11 +341,13 @@ with mylib.networking; {
|
|||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpu-screen-recorder.enable = !headless;
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = !headless;
|
enable = !headless;
|
||||||
|
|
||||||
package = inputs.hyprland.packages.${system}.hyprland;
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
|
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
withUWSM = true;
|
withUWSM = true;
|
||||||
@ -357,6 +360,7 @@ with mylib.networking; {
|
|||||||
flake = "/home/${username}/NixFlake";
|
flake = "/home/${username}/NixFlake";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
niri.enable = !headless;
|
||||||
ssh.startAgent = true; # Use gnupg
|
ssh.startAgent = true; # Use gnupg
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
xwayland.enable = !headless;
|
xwayland.enable = !headless;
|
||||||
@ -385,6 +389,21 @@ with mylib.networking; {
|
|||||||
wacom.enable = true;
|
wacom.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# greetd = {
|
||||||
|
# enable = !headless;
|
||||||
|
# restart = false;
|
||||||
|
# useTextGreeter = true;
|
||||||
|
#
|
||||||
|
# settings = {
|
||||||
|
# terminal.vt = 1;
|
||||||
|
#
|
||||||
|
# default_session = {
|
||||||
|
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd $SHELL";
|
||||||
|
# user = "greeter";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
libinput.enable = !headless;
|
libinput.enable = !headless;
|
||||||
|
|
||||||
@ -444,6 +463,7 @@ with mylib.networking; {
|
|||||||
services."refresh-nps-cache" = {
|
services."refresh-nps-cache" = {
|
||||||
# Make sure `nix` and `nix-env` are findable by systemd.services.
|
# Make sure `nix` and `nix-env` are findable by systemd.services.
|
||||||
path = ["/run/current-system/sw/"];
|
path = ["/run/current-system/sw/"];
|
||||||
|
after = ["network.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "${username}";
|
User = "${username}";
|
||||||
@ -451,7 +471,7 @@ with mylib.networking; {
|
|||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
echo "Start refreshing nps cache..."
|
echo "Start refreshing nps cache..."
|
||||||
${inputs.nps.packages.${system}.default}/bin/nps -dddd -e -r
|
${inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/nps -dddd -e -r
|
||||||
echo "... finished nps cache with exit code $?."
|
echo "... finished nps cache with exit code $?."
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@ -14,7 +14,7 @@ in {
|
|||||||
portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
wlr.enable = false;
|
wlr.enable = true;
|
||||||
|
|
||||||
# TODO: Replace lib.optional(s) throughout the config with mkMerge
|
# TODO: Replace lib.optional(s) throughout the config with mkMerge
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
@ -35,6 +35,14 @@ in {
|
|||||||
(desktopportal.hyprland.enable && desktopportal.termfilechooser.enable) {
|
(desktopportal.hyprland.enable && desktopportal.termfilechooser.enable) {
|
||||||
hyprland."org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
|
hyprland."org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(lib.mkIf desktopportal.niri.enable {
|
||||||
|
niri.default = ["gtk" "gnome"];
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.mkIf (desktopportal.niri.enable && desktopportal.termfilechooser.enable) {
|
||||||
|
niri."org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPortals = with pkgs;
|
extraPortals = with pkgs;
|
||||||
|
|||||||
@ -6,4 +6,5 @@
|
|||||||
enable = lib.mkEnableOption "Enable XDG desktop portals";
|
enable = lib.mkEnableOption "Enable XDG desktop portals";
|
||||||
termfilechooser.enable = lib.mkEnableOption "Enable xdg-desktop-portal-termfilechooser";
|
termfilechooser.enable = lib.mkEnableOption "Enable xdg-desktop-portal-termfilechooser";
|
||||||
hyprland.enable = lib.mkEnableOption "Configure portals for Hyprland";
|
hyprland.enable = lib.mkEnableOption "Configure portals for Hyprland";
|
||||||
|
niri.enable = lib.mkEnableOption "Configure portals for Niri";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) docker;
|
inherit (config.modules) docker;
|
||||||
@ -22,6 +23,8 @@ in {
|
|||||||
enable = !docker.podman;
|
enable = !docker.podman;
|
||||||
autoPrune.enable = true;
|
autoPrune.enable = true;
|
||||||
|
|
||||||
|
extraPackages = with pkgs; [docker-compose];
|
||||||
|
|
||||||
rootless = {
|
rootless = {
|
||||||
enable = docker.docker.rootless;
|
enable = docker.docker.rootless;
|
||||||
setSocketVariable = true;
|
setSocketVariable = true;
|
||||||
@ -54,7 +57,7 @@ in {
|
|||||||
dockerSocket.enable = true;
|
dockerSocket.enable = true;
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
|
||||||
# extraPackages = with pkgs; [];
|
extraPackages = with pkgs; [podman-compose];
|
||||||
};
|
};
|
||||||
|
|
||||||
oci-containers.backend =
|
oci-containers.backend =
|
||||||
|
|||||||
@ -117,6 +117,7 @@ in {
|
|||||||
# (mkUDir ".android" m755) # Unity
|
# (mkUDir ".android" m755) # Unity
|
||||||
# (mkUDir ".gradle" m755) # Unity
|
# (mkUDir ".gradle" m755) # Unity
|
||||||
# (mkUDir ".java" m755) # Unity/Rider
|
# (mkUDir ".java" m755) # Unity/Rider
|
||||||
|
(mkUDir ".MakeMKV" m755)
|
||||||
(mkUDir ".mozilla/firefox" m755) # TODO: Remove this someday
|
(mkUDir ".mozilla/firefox" m755) # TODO: Remove this someday
|
||||||
(mkUDir ".mozilla/native-messaging-hosts" m755)
|
(mkUDir ".mozilla/native-messaging-hosts" m755)
|
||||||
(mkUDir ".nix-package-search" m755)
|
(mkUDir ".nix-package-search" m755)
|
||||||
@ -141,6 +142,7 @@ in {
|
|||||||
(mkUDir ".config/Ferdium" m755)
|
(mkUDir ".config/Ferdium" m755)
|
||||||
(mkUDir ".config/fish/completions" m755)
|
(mkUDir ".config/fish/completions" m755)
|
||||||
(mkUDir ".config/impermanence" m755)
|
(mkUDir ".config/impermanence" m755)
|
||||||
|
(mkUDir ".config/jellyfin-mpv-shim" m755)
|
||||||
(mkUDir ".config/JetBrains" m755)
|
(mkUDir ".config/JetBrains" m755)
|
||||||
(mkUDir ".config/kdeconnect" m755)
|
(mkUDir ".config/kdeconnect" m755)
|
||||||
(mkUDir ".config/keepassxc" m755)
|
(mkUDir ".config/keepassxc" m755)
|
||||||
@ -150,6 +152,7 @@ in {
|
|||||||
(mkUDir ".config/obs-studio" m755)
|
(mkUDir ".config/obs-studio" m755)
|
||||||
(mkUDir ".config/Signal" m755)
|
(mkUDir ".config/Signal" m755)
|
||||||
# (mkUDir ".config/singularitygroup-hotreload" m755) # Unity
|
# (mkUDir ".config/singularitygroup-hotreload" m755) # Unity
|
||||||
|
(mkUDir ".config/TeamSpeak" m755)
|
||||||
(mkUDir ".config/tidal-hifi" m755)
|
(mkUDir ".config/tidal-hifi" m755)
|
||||||
(mkUDir ".config/tidal_dl_ng" m755)
|
(mkUDir ".config/tidal_dl_ng" m755)
|
||||||
# (mkUDir ".config/unity3d" m755) # Unity
|
# (mkUDir ".config/unity3d" m755) # Unity
|
||||||
|
|||||||
@ -12,6 +12,9 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
|
|
||||||
../modules
|
../modules
|
||||||
|
|
||||||
|
# General services
|
||||||
|
../services/fileflows-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
@ -104,7 +107,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
# kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
# kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# kernelParams = [ "quiet" ];
|
# kernelParams = [ "quiet" ];
|
||||||
# plymouth.enable = true;
|
# plymouth.enable = true;
|
||||||
|
|||||||
@ -35,6 +35,10 @@
|
|||||||
"vfat"
|
"vfat"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
supportedFilesystems = [
|
||||||
|
# "zfs" # Probably requires LTS kernel + networking.hostId
|
||||||
|
];
|
||||||
|
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"kvm-amd"
|
"kvm-amd"
|
||||||
"sg" # Blu-Ray drive
|
"sg" # Blu-Ray drive
|
||||||
@ -60,6 +64,9 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Required for supportedFilesystems = ["zfs"];, so pools don't get imported on the wrong machine
|
||||||
|
# networking.hostId = "611e6afb";
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
# NOTE: Some filesystems are managed by disko (see ./disks.nix)
|
# NOTE: Some filesystems are managed by disko (see ./disks.nix)
|
||||||
|
|
||||||
@ -82,29 +89,39 @@
|
|||||||
# Using NFS over TCP or increasing the value of the retrans option may mitigate
|
# Using NFS over TCP or increasing the value of the retrans option may mitigate
|
||||||
# some of the risks of using the soft option.
|
# some of the risks of using the soft option.
|
||||||
|
|
||||||
"/home/${username}/Movies" = {
|
# Synology DS223j
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Movie";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
|
||||||
};
|
|
||||||
|
|
||||||
"/home/${username}/Shows" = {
|
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Show";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
|
||||||
};
|
|
||||||
|
|
||||||
"/home/${username}/Music" = {
|
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Music";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
|
||||||
};
|
|
||||||
|
|
||||||
"/home/${username}/Restic" = {
|
"/home/${username}/Restic" = {
|
||||||
device = "192.168.86.15:/volume1/NixinatorPersistence";
|
device = "192.168.86.15:/volume1/NixinatorPersistence";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TrueNAS
|
||||||
|
|
||||||
|
"/home/${username}/Movies" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Movies";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/home/${username}/Shows" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Shows";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/home/${username}/Music" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Music";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/media/Box" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Box";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
@ -116,8 +133,8 @@
|
|||||||
nvidia-container-toolkit.enable = true;
|
nvidia-container-toolkit.enable = true;
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
# package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = false; # Those are for x-server
|
nvidiaSettings = false; # Those are for x-server
|
||||||
|
|||||||
@ -24,15 +24,26 @@
|
|||||||
|
|
||||||
# General services
|
# General services
|
||||||
../services/authelia.nix
|
../services/authelia.nix
|
||||||
|
../services/bazarr.nix
|
||||||
|
../services/box.nix
|
||||||
|
../services/fileflows.nix
|
||||||
../services/gitea.nix
|
../services/gitea.nix
|
||||||
../services/gitea-runner.nix
|
|
||||||
../services/immich.nix
|
../services/immich.nix
|
||||||
../services/jellyfin.nix
|
../services/jellyfin.nix
|
||||||
../services/kopia.nix
|
../services/kopia.nix
|
||||||
../services/nextcloud.nix
|
../services/nextcloud.nix
|
||||||
../services/nginx-proxy-manager.nix
|
../services/nginx-proxy-manager.nix
|
||||||
../services/paperless.nix
|
../services/paperless.nix
|
||||||
|
# ../services/plex.nix # Their monetization strategy is absolutely atrocious
|
||||||
../services/portainer-agent.nix
|
../services/portainer-agent.nix
|
||||||
|
../services/pulse-agent-servenix.nix
|
||||||
|
../services/prowlarr.nix
|
||||||
|
../services/radarr.nix
|
||||||
|
../services/sabnzbd-movies.nix
|
||||||
|
../services/sabnzbd-shows.nix
|
||||||
|
../services/sonarr.nix
|
||||||
|
../services/teamspeak.nix
|
||||||
|
../services/tinymediamanager.nix
|
||||||
../services/whats-up-docker.nix
|
../services/whats-up-docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -58,16 +69,30 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NOTE: Streams: Ports have to be opened in the VPS firewall + VPS UFW and bound in the VPS Nginx compose file.
|
||||||
|
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
53 # DNS
|
53 # DNS (Adguard Home)
|
||||||
80 # HTTP
|
67 # DHCP
|
||||||
3000 # Gitea runner needs to reach local gitea instance
|
80 # HTTP (Nginx Proxy Manager)
|
||||||
|
443 # HTTPS (Nginx Proxy Manager)
|
||||||
|
|
||||||
|
3000 # Gitea (runner needs to reach local gitea instance)
|
||||||
|
|
||||||
|
30033 # Teamspeak
|
||||||
|
10080 # Teamspeak
|
||||||
];
|
];
|
||||||
|
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
53 # DNS
|
53 # DNS (Adguard Home)
|
||||||
67 # DHCP
|
67 # DHCP
|
||||||
3000 # Gitea runner needs to reach local gitea instance
|
80 # HTTP (Nginx Proxy Manager)
|
||||||
|
443 # HTTPS (Nginx Proxy Manager)
|
||||||
|
|
||||||
|
3000 # Gitea (runner needs to reach local gitea instance)
|
||||||
|
|
||||||
|
30033 # Teamspeak
|
||||||
|
9987 # Teamspeak
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -44,22 +44,28 @@
|
|||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# SG Exos Mirror Shares
|
# TrueNAS
|
||||||
|
|
||||||
"/media/Movie" = {
|
"/media/Movie" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Movie";
|
device = "192.168.86.20:/mnt/Seagate4TB/Movies";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/media/Show" = {
|
"/media/Show" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Show";
|
device = "192.168.86.20:/mnt/Seagate4TB/Shows";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/media/TV-Music" = {
|
"/media/TV-Music" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Music";
|
device = "192.168.86.20:/mnt/Seagate4TB/Music";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/media/Box" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Box";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|||||||
@ -20,9 +20,7 @@ in {
|
|||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
};
|
};
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [];
|
||||||
# "pihole"
|
|
||||||
];
|
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
# "9091:9091"
|
# "9091:9091"
|
||||||
|
|||||||
49
system/services/bazarr.nix
Normal file
49
system/services/bazarr.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
bazarrVersion = "1.5.3";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
bazarr = {
|
||||||
|
image = "linuxserver/bazarr:${bazarrVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "6767:6767"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Movie:/media/movies"
|
||||||
|
"/media/Show:/media/shows"
|
||||||
|
|
||||||
|
"bazarr_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
59
system/services/box.nix
Normal file
59
system/services/box.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
boxVersion = "v0.29.3";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
box = {
|
||||||
|
image = "stashapp/stash:${boxVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "9999:9999"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
|
||||||
|
"/media/Box:/data"
|
||||||
|
|
||||||
|
"box_config:/root/.stash"
|
||||||
|
"box_metadata:/metadata"
|
||||||
|
"box_cache:/cache"
|
||||||
|
"box_blobs:/blobs"
|
||||||
|
"box_generated:/generated"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
STASH_STASH = "/data/";
|
||||||
|
STASH_GENERATED = "/generated/";
|
||||||
|
STASH_METADATA = "/metadata/";
|
||||||
|
STASH_CACHE = "/cache/";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
54
system/services/fileflows-node.nix
Normal file
54
system/services/fileflows-node.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
fileflowsVersion = "25.10";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
fileflows-node = {
|
||||||
|
image = "revenz/fileflows:${fileflowsVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/home/christoph/Movies:/media/movies"
|
||||||
|
"/home/christoph/Shows:/media/tvshows"
|
||||||
|
|
||||||
|
"fileflows_temp:/temp"
|
||||||
|
|
||||||
|
"/var/run/docker.sock:/var/run/docker.socl:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
hostname = "Nixinator";
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
FFNODE = "1";
|
||||||
|
ServerUrl = "https://fileflows.local.chriphost.de";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
# "--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
51
system/services/fileflows.nix
Normal file
51
system/services/fileflows.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
version = "25.10";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
fileflows = {
|
||||||
|
image = "revenz/fileflows:${version}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"fileflows_temp:/temp"
|
||||||
|
"fileflows_data:/app/Data"
|
||||||
|
"fileflows_logs:/app/Logs"
|
||||||
|
|
||||||
|
"/media/Movie:/media/movies"
|
||||||
|
"/media/Show:/media/tvshows"
|
||||||
|
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -14,7 +14,7 @@ in {
|
|||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"55555:5000"
|
"55555:5000" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pocketbaseVersion = "0.25.0";
|
pocketbaseVersion = "0.33.0";
|
||||||
f11Version = "latest";
|
f11Version = "latest";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
@ -12,12 +12,10 @@ in {
|
|||||||
image = "gitea.vps.chriphost.de/christoph/pocketbase:${pocketbaseVersion}";
|
image = "gitea.vps.chriphost.de/christoph/pocketbase:${pocketbaseVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [];
|
||||||
# "pihole"
|
|
||||||
];
|
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"8090:8080"
|
"8090:8080" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
runnerVersion = "0.2.12";
|
|
||||||
in {
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
gitea-runner = {
|
|
||||||
image = "gitea/act_runner:${runnerVersion}"; # NOTE: vegardit has other runner images
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
login = {
|
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
|
||||||
|
|
||||||
ports = [];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"gitea-runner_data:/data"
|
|
||||||
"gitea-runner_config:/config" # Managed by env variables for vegardit image
|
|
||||||
|
|
||||||
"/var/run/docker.sock:/var/run/docker.sock" # Disable for dind
|
|
||||||
];
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
# gitlab.local.chriphost.de doesn't work, because it gets resolved to 192.168.86.25:443, which is nginx
|
|
||||||
GITEA_INSTANCE_URL = "http://192.168.86.25:3000";
|
|
||||||
GITEA_RUNNER_NAME = "servenix";
|
|
||||||
|
|
||||||
# Can be generated from inside the container using act_runner generate-config > /config/config.yaml
|
|
||||||
CONFIG_FILE = "/config/config.yaml";
|
|
||||||
|
|
||||||
# This token is invalid, when re-registering is needed it has to be refreshed
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN = "Mq6wr0dPthqDij3iaryP8s5VYZA5kPfOQbHA6wm6";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
# "--privileged" # Enable for dind
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -5,6 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
giteaVersion = "1.24.2";
|
giteaVersion = "1.24.2";
|
||||||
|
runnerVersion = "0.2.12";
|
||||||
in {
|
in {
|
||||||
users = {
|
users = {
|
||||||
groups.git = {};
|
groups.git = {};
|
||||||
@ -72,7 +73,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"3000:3000"
|
"3000:3000" # Bind for VPS
|
||||||
|
|
||||||
# NOTE: Set .git/config url to ssh://christoph@gitea.local.chriphost.de:222/christoph/<repo>.git
|
# NOTE: Set .git/config url to ssh://christoph@gitea.local.chriphost.de:222/christoph/<repo>.git
|
||||||
"222:222" # Gitea SSH
|
"222:222" # Gitea SSH
|
||||||
@ -101,5 +102,49 @@ in {
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gitea-runner = {
|
||||||
|
image = "gitea/act_runner:${runnerVersion}"; # NOTE: vegardit has other runner images
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [
|
||||||
|
"gitea"
|
||||||
|
];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"gitea-runner_data:/data"
|
||||||
|
"gitea-runner_config:/config" # Managed by env variables for vegardit image
|
||||||
|
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock" # Disable for dind
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
# gitlab.local.chriphost.de doesn't work, because it gets resolved to 192.168.86.25:443, which is nginx
|
||||||
|
GITEA_INSTANCE_URL = "http://192.168.86.25:3000";
|
||||||
|
GITEA_RUNNER_NAME = "servenix";
|
||||||
|
|
||||||
|
# Can be generated from inside the container using act_runner generate-config > /config/config.yaml
|
||||||
|
CONFIG_FILE = "/config/config.yaml";
|
||||||
|
|
||||||
|
# This token is invalid, when re-registering is needed it has to be refreshed
|
||||||
|
GITEA_RUNNER_REGISTRATION_TOKEN = "Mq6wr0dPthqDij3iaryP8s5VYZA5kPfOQbHA6wm6";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged" # Enable for dind
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
}: let
|
}: let
|
||||||
vectorchordVersion = "0.4.2";
|
vectorchordVersion = "0.4.2";
|
||||||
pgvectorsVersion = "0.2.0";
|
pgvectorsVersion = "0.2.0";
|
||||||
immichVersion = "2.2.1";
|
immichVersion = "2.3.1";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
immich-database = {
|
immich-database = {
|
||||||
@ -73,7 +73,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"2283:8080"
|
"2283:8080" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
jellyfinVersion = "10.10.7";
|
jellyfinVersion = "10.11.2";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
@ -25,7 +25,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"8096:8096"
|
"8096:8096" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@ -112,7 +112,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"8080:80"
|
"8080:80" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nginxVersion = "2.12.6";
|
nginxVersion = "2.13.1";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
nginx-proxy-manager = {
|
nginx-proxy-manager = {
|
||||||
|
|||||||
@ -125,7 +125,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"8000:8000"
|
"8000:8000" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
64
system/services/plex.nix
Normal file
64
system/services/plex.nix
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
plexVersion = "1.42.2.10156-f737b826c";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
plex = {
|
||||||
|
image = "plexinc/pms-docker:${plexVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [
|
||||||
|
# "pihole"
|
||||||
|
];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"32400:32400" # Bind for VPS
|
||||||
|
|
||||||
|
# "8324:8324/tcp" # Controlling Plex for Roku via Plex Companion
|
||||||
|
# "32469:32469/tcp" # Plex DLNA server
|
||||||
|
# "1900:1900/udp" # Plex DLNA server
|
||||||
|
# "32410:32410/udp" # GDM network discovery
|
||||||
|
# "32412:32412/udp" # GDM network discovery
|
||||||
|
# "32413:32413/udp" # GDM network discovery
|
||||||
|
# "32414:32414/udp" # GDM network discovery
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Show:/data/tvshows"
|
||||||
|
"/media/Movie:/data/movies"
|
||||||
|
"/media/TV-Music:/data/music"
|
||||||
|
|
||||||
|
"plex_config:/config"
|
||||||
|
"plex_transcode:/transcode"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PLEX_UID = "3000";
|
||||||
|
PLEX_GID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
# PLEX_CLAIM = "";
|
||||||
|
# ADVERTISE_IP = "https://plex.vps.chriphost.de:32400";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -5,7 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Match this with the portainer-ce version
|
# Match this with the portainer-ce version
|
||||||
portainerVersion = "2.31.3";
|
portainerVersion = "2.33.3";
|
||||||
in {
|
in {
|
||||||
# Use the agent to connect clients to a main portainer instance
|
# Use the agent to connect clients to a main portainer instance
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Match this with the portainer agent version
|
# Match this with the portainer agent version
|
||||||
portainerVersion = "2.31.3";
|
portainerVersion = "2.33.3";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
portainer = {
|
portainer = {
|
||||||
|
|||||||
46
system/services/prowlarr.nix
Normal file
46
system/services/prowlarr.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
prowlarrVersion = "2.1.5";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
prowlarr = {
|
||||||
|
image = "linuxserver/prowlarr:${prowlarrVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "9696:9696"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"prowlarr_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
40
system/services/pulse-agent-servenix.nix
Normal file
40
system/services/pulse-agent-servenix.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
pulseAgentServenixVersion = "4.35.0";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
pulse-agent-servenix = {
|
||||||
|
image = "ghcr.io/rcourtman/pulse-docker-agent:${pulseAgentServenixVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
PULSE_URL = "https://pulse.think.chriphost.de";
|
||||||
|
PULSE_TOKEN = "6a72f3951990d6724f09106d052302f6f60fc9e94f71720bf8e8a1fe4a27d4a2";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
"--pid=host"
|
||||||
|
"--uts=host"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
42
system/services/pulse-agent-thinknix.nix
Normal file
42
system/services/pulse-agent-thinknix.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
pulseAgentThinknixVersion = "4.35.0";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
pulse-agent-thinknix = {
|
||||||
|
image = "ghcr.io/rcourtman/pulse-docker-agent:${pulseAgentThinknixVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [
|
||||||
|
"pulse"
|
||||||
|
];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
PULSE_URL = "https://pulse.think.chriphost.de";
|
||||||
|
PULSE_TOKEN = "6ab80ff7336a0cd7e0edcf3cd270a72bf6e075bcff337235ab011d1f70231e2f";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
"--pid=host"
|
||||||
|
"--uts=host"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
46
system/services/pulse.nix
Normal file
46
system/services/pulse.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
pulseVersion = "4.35.0";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
pulse = {
|
||||||
|
image = "rcourtman/pulse:${pulseVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "7655:7655"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"pulse_data:/data"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
49
system/services/radarr.nix
Normal file
49
system/services/radarr.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
radarrVersion = "5.28.0";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
radarr = {
|
||||||
|
image = "linuxserver/radarr:${radarrVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "7878:7878"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Movie/.sabnzbd-complete:/media/downloads"
|
||||||
|
"/media/Movie:/media/movies"
|
||||||
|
|
||||||
|
"radarr_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
53
system/services/sabnzbd-movies.nix
Normal file
53
system/services/sabnzbd-movies.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
sabnzbdVersion = "4.5.5";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
sabnzbd-movies = {
|
||||||
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# NOTE: On initial start, the gui won't be reachable via reverse proxy,
|
||||||
|
# because the hostname has to be whitelisted.
|
||||||
|
# Edit the "sabnzbd.ini" in the docker volume and add the reverse-proxy address
|
||||||
|
# to the host_whitelist variable.
|
||||||
|
# "8080:8080"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Movie/.sabnzbd:/media/movies/incomplete"
|
||||||
|
"/media/Movie/.sabnzbd-complete:/media/movies/complete"
|
||||||
|
|
||||||
|
"sabnzbd-movies_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
53
system/services/sabnzbd-shows.nix
Normal file
53
system/services/sabnzbd-shows.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
sabnzbdVersion = "4.5.5";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
sabnzbd-shows = {
|
||||||
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# NOTE: On initial start, the gui won't be reachable via reverse proxy,
|
||||||
|
# because the hostname has to be whitelisted.
|
||||||
|
# Edit the "sabnzbd.ini" in the docker volume and add the reverse-proxy address
|
||||||
|
# to the host_whitelist variable.
|
||||||
|
# "8080:8080"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Show/.sabnzbd:/media/shows/incomplete"
|
||||||
|
"/media/Show/.sabnzbd-complete:/media/shows/complete"
|
||||||
|
|
||||||
|
"sabnzbd-shows_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
49
system/services/sonarr.nix
Normal file
49
system/services/sonarr.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
sonarrVersion = "4.0.16";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
sonarr = {
|
||||||
|
image = "linuxserver/sonarr:${sonarrVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"8989:8989"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/media/Show/.sabnzbd-complete:/media/downloads"
|
||||||
|
"/media/Show:/media/shows"
|
||||||
|
|
||||||
|
"sonarr_config:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -14,7 +14,7 @@ in {
|
|||||||
ports = [
|
ports = [
|
||||||
# "8080:8090"
|
# "8080:8090"
|
||||||
# "3111:5173"
|
# "3111:5173"
|
||||||
"3111:8080"
|
"3111:8080" # Bind for VPS
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [];
|
volumes = [];
|
||||||
|
|||||||
51
system/services/teamspeak.nix
Normal file
51
system/services/teamspeak.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
teamspeakVersion = "v6.0.0-beta7";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
teamspeak = {
|
||||||
|
image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# Bind for VPS
|
||||||
|
"9987:9987/udp" # Voice port
|
||||||
|
"30033:30033" # File transfer
|
||||||
|
"10080:10080/tcp" # Web query
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"teamspeak_data:/var/tsserver"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
TSSERVER_LICENSE_ACCEPTED = "accept";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
# "--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
54
system/services/tinymediamanager.nix
Normal file
54
system/services/tinymediamanager.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
version = "5.2.3";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
tinymediamanager = {
|
||||||
|
image = "tinymediamanager/tinymediamanager:${version}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"tinymediamanager_data:/data"
|
||||||
|
|
||||||
|
"/media/Show:/media/tvshows"
|
||||||
|
"/media/Movie:/media/movies"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
USER_ID = "1000";
|
||||||
|
GROUP_ID = "1000";
|
||||||
|
ALLOW_DIRECT_VNC = "true";
|
||||||
|
LC_ALL = "en_US.UTF-8"; # force UTF8
|
||||||
|
LANG = "en_US.UTF-8"; # force UTF8
|
||||||
|
PASSWORD = "<password>";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--privileged"
|
||||||
|
# "--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -20,6 +20,8 @@
|
|||||||
../services/adguard.nix
|
../services/adguard.nix
|
||||||
../services/nginx-proxy-manager.nix
|
../services/nginx-proxy-manager.nix
|
||||||
../services/portainer.nix
|
../services/portainer.nix
|
||||||
|
../services/pulse.nix
|
||||||
|
../services/pulse-agent-thinknix.nix
|
||||||
../services/whats-up-docker.nix
|
../services/whats-up-docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -40,22 +40,22 @@
|
|||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# SG Exos Mirror Shares
|
# TrueNAS
|
||||||
|
|
||||||
"/media/Movie" = {
|
"/media/Movie" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Movie";
|
device = "192.168.86.20:/mnt/Seagate4TB/Movies";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/media/Show" = {
|
"/media/Show" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Show";
|
device = "192.168.86.20:/mnt/Seagate4TB/Shows";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/media/TV-Music" = {
|
"/media/TV-Music" = {
|
||||||
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Music";
|
device = "192.168.86.20:/mnt/Seagate4TB/Music";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "soft"];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user