Compare commits
34 Commits
d0e6fe072a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
5f17a04fbb
|
|||
|
f514387f64
|
|||
|
c328c188b8
|
|||
|
585f74ce0f
|
|||
|
8263fe01eb
|
|||
|
d61e6f8b9c
|
|||
|
7c7c195083
|
|||
|
2e78898c5a
|
|||
|
1f61e9958c
|
|||
|
c8954e5854
|
|||
|
e772d93f23
|
|||
|
4c17560020
|
|||
|
e1542a1168
|
|||
|
a351bf59ba
|
|||
|
7a62f38084
|
|||
|
b50c5f9f71
|
|||
|
0087145957
|
|||
|
48c77e9654
|
|||
|
71d06d61b1
|
|||
|
75d024111e
|
|||
|
b67aee2a64
|
|||
|
554a76b585
|
|||
|
d9e7e315da
|
|||
|
daee8da3ae
|
|||
|
c2b661adbb
|
|||
|
aa4ebfbc06
|
|||
|
db850552e3
|
|||
|
63afac3d04
|
|||
|
645fc64ead
|
|||
|
6561d4c979
|
|||
|
f1ed339968
|
|||
|
50d14ecf83
|
|||
|
1cdc3f25e0
|
|||
|
9e62f755bb
|
BIN
Darwin.png
Normal file
BIN
Darwin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
@ -3,6 +3,7 @@
|
|||||||
Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop.
|
Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop.
|
||||||
|
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
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`.
|
Alternatively, use `nh os switch` or `nh os boot`.
|
||||||
|
|||||||
12
flake.nix
12
flake.nix
@ -152,7 +152,17 @@
|
|||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
config.allowUnfreePredicate = pkg: true;
|
config.allowUnfreePredicate = pkg: true;
|
||||||
|
|
||||||
overlays = [];
|
overlays = let
|
||||||
|
pkgs-stable = import inputs.nixpkgs-stable {
|
||||||
|
system = darwinSystem;
|
||||||
|
|
||||||
|
config.allowUnfree = true;
|
||||||
|
config.allowUnfreePredicate = pkg: true;
|
||||||
|
};
|
||||||
|
in [
|
||||||
|
# All my own overlays (derivations + modifications)
|
||||||
|
(import ./overlays {inherit inputs nixpkgs pkgs-stable;})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# My own library functions are imported here.
|
# My own library functions are imported here.
|
||||||
|
|||||||
@ -8,9 +8,7 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = let
|
config = {
|
||||||
inherit (config.homemodules) color;
|
|
||||||
in {
|
|
||||||
paths = rec {
|
paths = rec {
|
||||||
nixflake = "${config.home.homeDirectory}/NixFlake";
|
nixflake = "${config.home.homeDirectory}/NixFlake";
|
||||||
dotfiles = "${nixflake}/config";
|
dotfiles = "${nixflake}/config";
|
||||||
@ -27,26 +25,8 @@
|
|||||||
font = "MonoLisa Alt Script";
|
font = "MonoLisa Alt Script";
|
||||||
};
|
};
|
||||||
|
|
||||||
fish.enable = true;
|
packages.enable = true;
|
||||||
|
terminal.enable = true;
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
userName = "Christoph Urlacher";
|
|
||||||
userEmail = "christoph.urlacher@protonmail.com";
|
|
||||||
signCommits = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
kitty.enable = true;
|
|
||||||
lazygit.enable = true;
|
|
||||||
|
|
||||||
neovim = {
|
|
||||||
enable = true;
|
|
||||||
alias = true;
|
|
||||||
neovide = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
yazi.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
@ -55,376 +35,20 @@
|
|||||||
homeDirectory = "/Users/${config.home.username}";
|
homeDirectory = "/Users/${config.home.username}";
|
||||||
enableNixpkgsReleaseCheck = true;
|
enableNixpkgsReleaseCheck = true;
|
||||||
|
|
||||||
packages = with pkgs; [
|
sessionVariables = {
|
||||||
(ripgrep.override {withPCRE2 = true;})
|
LANG = "en_US.UTF-8";
|
||||||
gdu
|
EDITOR = "nvim";
|
||||||
duf
|
MANPAGER = "nvim +Man!";
|
||||||
sd
|
TERMINAL = "kitty";
|
||||||
fclones
|
};
|
||||||
tealdeer
|
|
||||||
killall
|
|
||||||
atool
|
|
||||||
exiftool
|
|
||||||
ouch
|
|
||||||
ffmpegthumbnailer
|
|
||||||
mediainfo
|
|
||||||
file
|
|
||||||
unrar
|
|
||||||
p7zip
|
|
||||||
unzip
|
|
||||||
progress
|
|
||||||
tokei
|
|
||||||
nix-search-tv
|
|
||||||
nix-tree
|
|
||||||
just
|
|
||||||
|
|
||||||
ffmpeg-full
|
# packages = with pkgs; []; # Configured in homemodules/packages
|
||||||
imagemagick
|
|
||||||
|
|
||||||
poppler-utils
|
|
||||||
pdf2svg
|
|
||||||
pandoc
|
|
||||||
|
|
||||||
dig
|
|
||||||
tcpdump
|
|
||||||
traceroute
|
|
||||||
gping
|
|
||||||
curlie
|
|
||||||
wget
|
|
||||||
doggo
|
|
||||||
rsync
|
|
||||||
rclone
|
|
||||||
httpie
|
|
||||||
|
|
||||||
inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
||||||
|
|
||||||
cachix
|
|
||||||
|
|
||||||
# GUI
|
|
||||||
ripdrag
|
|
||||||
jellyfin-tui
|
|
||||||
];
|
|
||||||
|
|
||||||
stateVersion = "25.11";
|
stateVersion = "25.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Deduplicate with other configs
|
programs = {};
|
||||||
programs = {
|
|
||||||
home-manager.enable = true;
|
|
||||||
|
|
||||||
bat = {
|
services = {};
|
||||||
enable = true;
|
|
||||||
|
|
||||||
themes = {
|
|
||||||
catppuccin-latte = {
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "catppuccin";
|
|
||||||
repo = "bat";
|
|
||||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
|
||||||
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
|
||||||
};
|
|
||||||
file = "Catppuccin-latte.tmTheme";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
theme = "catppuccin-latte";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
cava = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
general = {
|
|
||||||
framerate = 60; # default 60
|
|
||||||
autosens = 1; # default 1
|
|
||||||
sensitivity = 100; # default 100
|
|
||||||
lower_cutoff_freq = 50; # not passed to cava if not provided
|
|
||||||
higher_cutoff_freq = 10000; # not passed to cava if not provided
|
|
||||||
};
|
|
||||||
|
|
||||||
smoothing = {
|
|
||||||
noise_reduction = 77; # default 77
|
|
||||||
monstercat = false; # default false
|
|
||||||
waves = false; # default false
|
|
||||||
};
|
|
||||||
|
|
||||||
color = {
|
|
||||||
# https://github.com/catppuccin/cava/blob/main/themes/latte-transparent.cava
|
|
||||||
gradient = 1;
|
|
||||||
|
|
||||||
gradient_color_1 = "'${color.hexS.teal}'";
|
|
||||||
gradient_color_2 = "'${color.hexS.sky}'";
|
|
||||||
gradient_color_3 = "'${color.hexS.sapphire}'";
|
|
||||||
gradient_color_4 = "'${color.hexS.blue}'";
|
|
||||||
gradient_color_5 = "'${color.hexS.mauve}'";
|
|
||||||
gradient_color_6 = "'${color.hexS.pink}'";
|
|
||||||
gradient_color_7 = "'${color.hexS.maroon}'";
|
|
||||||
gradient_color_8 = "'${color.hexS.red}'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
eza = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
fastfetch = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
logo = {
|
|
||||||
padding = {
|
|
||||||
top = 4;
|
|
||||||
left = 1;
|
|
||||||
right = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
display = {
|
|
||||||
separator = "";
|
|
||||||
key.width = 17;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Box Drawing: ╭ ─ ╮ ╰ ╯ │
|
|
||||||
modules = [
|
|
||||||
# Title
|
|
||||||
{
|
|
||||||
type = "title";
|
|
||||||
format = "{#1}╭─── {#}{user-name-colored}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# System Information
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}System Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "os";
|
|
||||||
key = "{#separator}│ {#keys} OS";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "kernel";
|
|
||||||
key = "{#separator}│ {#keys} Kernel";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "bootmgr";
|
|
||||||
key = "{#separator}│ {#keys} BootMGR";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "uptime";
|
|
||||||
key = "{#separator}│ {#keys} Uptime";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "packages";
|
|
||||||
key = "{#separator}│ {#keys} Packages";
|
|
||||||
# format = "{all}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Desktop Environment";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "de";
|
|
||||||
key = "{#separator}│ {#keys} DE";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wm";
|
|
||||||
key = "{#separator}│ {#keys} WM";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wmtheme";
|
|
||||||
key = "{#separator}│ {#keys} Theme";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "display";
|
|
||||||
key = "{#separator}│ {#keys} Resolution";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "shell";
|
|
||||||
key = "{#separator}│ {#keys} Shell";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "terminalfont";
|
|
||||||
key = "{#separator}│ {#keys} Font";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "icons";
|
|
||||||
key = "{#separator}│ {#keys} Icons";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "cursor";
|
|
||||||
key = "{#separator}│ {#keys} Cursor";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Hardware Information
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Hardware Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "board";
|
|
||||||
key = "{#separator}│ {#keys} Board";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "cpu";
|
|
||||||
key = "{#separator}│ {#keys} CPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "gpu";
|
|
||||||
key = "{#separator}│ {#keys} GPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "memory";
|
|
||||||
key = "{#separator}│ {#keys} Memory";
|
|
||||||
}
|
|
||||||
# {
|
|
||||||
# type = "disk";
|
|
||||||
# key = "{#separator}│ {#keys} Disk (/)";
|
|
||||||
# folders = "/";
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# type = "disk";
|
|
||||||
# key = "{#separator}│ {#keys} Disk (~/Games)";
|
|
||||||
# folders = "/home/christoph/Games";
|
|
||||||
# }
|
|
||||||
{
|
|
||||||
type = "btrfs";
|
|
||||||
key = "{#separator}│ {#keys} BTRFS";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Colors Footer
|
|
||||||
{
|
|
||||||
type = "colors";
|
|
||||||
key = "{#separator}╰─── {#1}";
|
|
||||||
keyWidth = 6;
|
|
||||||
symbol = "circle";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fd.enable = true;
|
|
||||||
|
|
||||||
fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
navi = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
ssh = {
|
|
||||||
enable = true;
|
|
||||||
enableDefaultConfig = false;
|
|
||||||
|
|
||||||
matchBlocks = {
|
|
||||||
"*" = {
|
|
||||||
forwardAgent = false;
|
|
||||||
addKeysToAgent = "yes";
|
|
||||||
compression = true;
|
|
||||||
serverAliveInterval = 0;
|
|
||||||
serverAliveCountMax = 3;
|
|
||||||
hashKnownHosts = false;
|
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
|
||||||
controlMaster = "no";
|
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
|
||||||
controlPersist = "no";
|
|
||||||
};
|
|
||||||
"nixinator" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "192.168.86.50";
|
|
||||||
};
|
|
||||||
"servenix" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "local.chriphost.de";
|
|
||||||
};
|
|
||||||
"thinknix" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "think.chriphost.de";
|
|
||||||
};
|
|
||||||
"vps" = {
|
|
||||||
user = "root";
|
|
||||||
hostname = "vps.chriphost.de";
|
|
||||||
};
|
|
||||||
"mars" = {
|
|
||||||
user = "smchurla";
|
|
||||||
hostname = "mars.cs.tu-dortmund.de";
|
|
||||||
serverAliveInterval = 60;
|
|
||||||
localForwards = [
|
|
||||||
{
|
|
||||||
# Resultbrowser
|
|
||||||
bind.port = 22941;
|
|
||||||
host.address = "127.0.0.1";
|
|
||||||
host.port = 22941;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# Mysql
|
|
||||||
bind.port = 3306;
|
|
||||||
host.address = "127.0.0.1";
|
|
||||||
host.port = 3306;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
escapeTime = 0; # Delay after pressing escape
|
|
||||||
# keyMode = "vi";
|
|
||||||
terminal = "xterm-256color";
|
|
||||||
|
|
||||||
plugins = with pkgs; [
|
|
||||||
{
|
|
||||||
plugin = tmuxPlugins.catppuccin;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
|
||||||
set -g @catppuccin_flavour 'latte' # or frappe, macchiato, mocha
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
set -g default-terminal "xterm-256color"
|
|
||||||
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
yt-dlp.enable = true;
|
|
||||||
|
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,8 +34,7 @@ in
|
|||||||
|
|
||||||
homemodules = {
|
homemodules = {
|
||||||
beets.enable = !headless;
|
beets.enable = !headless;
|
||||||
|
cava.enable = !headless;
|
||||||
btop.enable = true;
|
|
||||||
|
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = !headless;
|
enable = !headless;
|
||||||
@ -78,37 +77,15 @@ in
|
|||||||
disableTabBar = true;
|
disableTabBar = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fish.enable = true;
|
|
||||||
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
userName = "Christoph Urlacher";
|
|
||||||
userEmail = "christoph.urlacher@protonmail.com";
|
|
||||||
signCommits = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
kitty.enable = !headless;
|
|
||||||
lazygit.enable = true;
|
|
||||||
mpd.enable = !headless;
|
mpd.enable = !headless;
|
||||||
|
|
||||||
neovim = {
|
|
||||||
enable = true;
|
|
||||||
alias = true;
|
|
||||||
neovide = !headless;
|
|
||||||
};
|
|
||||||
|
|
||||||
niri.enable = nixosConfig.programs.niri.enable;
|
niri.enable = nixosConfig.programs.niri.enable;
|
||||||
nnn.enable = false; # Use yazi
|
nnn.enable = false; # Use yazi
|
||||||
|
packages.enable = true;
|
||||||
qutebrowser.enable = !headless;
|
qutebrowser.enable = !headless;
|
||||||
rmpc.enable = !headless;
|
rmpc.enable = !headless;
|
||||||
|
rofi.enable = false;
|
||||||
rofi = {
|
terminal.enable = true;
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
waybar.enable = !headless;
|
waybar.enable = !headless;
|
||||||
yazi.enable = true;
|
|
||||||
zathura.enable = !headless;
|
zathura.enable = !headless;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -270,374 +247,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Add stuff for your user as you see fit:
|
# Add stuff for your user as you see fit:
|
||||||
# TODO: Make the headless installations smaller. Don't install stuff here if !headless but in nixinator config.
|
# packages = with pkgs; []; # Configured in homemodules/packages
|
||||||
packages = with pkgs;
|
|
||||||
lib.mkMerge [
|
|
||||||
[
|
|
||||||
# Shell utils
|
|
||||||
(ripgrep.override {withPCRE2 = true;}) # fast as fuck
|
|
||||||
gdu # Alternative to du-dust (I like it better)
|
|
||||||
duf # Disk usage analyzer (for all disk overview)
|
|
||||||
sd # Sed alternative
|
|
||||||
fclones # Duplicate file finder
|
|
||||||
tealdeer # Very fast tldr (so readable man)
|
|
||||||
killall
|
|
||||||
atool # Archive preview
|
|
||||||
exiftool
|
|
||||||
ouch # Unified compression/decompression
|
|
||||||
ffmpegthumbnailer # Video thumbnails
|
|
||||||
mediainfo # Media meta information
|
|
||||||
file # File meta information
|
|
||||||
unrar # Cooler WinRar
|
|
||||||
p7zip # Zip stuff
|
|
||||||
unzip # Unzip stuff
|
|
||||||
progress # Find coreutils processes and show their progress
|
|
||||||
tokei # Text file statistics in a project
|
|
||||||
playerctl # Media player control
|
|
||||||
pastel # Color tools
|
|
||||||
nvd # Nix rebuild diff
|
|
||||||
nix-search-tv # Search nixpkgs, nur, nixos options and homemanager options
|
|
||||||
nix-tree # Browse the nix store sorted by size (gdu for closures)
|
|
||||||
nurl # Generate nix fetcher sections based on URLs
|
|
||||||
python313 # Nicer scripting than bash
|
|
||||||
lazyjournal # Journalctl viewer
|
|
||||||
systemctl-tui
|
|
||||||
restic # Backups
|
|
||||||
gnumake
|
|
||||||
just # make alternative
|
|
||||||
binsider # .elf analyzer
|
|
||||||
jujutsu # git-like vcs
|
|
||||||
lurk # strace analysis
|
|
||||||
radare2
|
|
||||||
|
|
||||||
# Hardware/Software info
|
|
||||||
pciutils # lspci
|
|
||||||
mesa-demos # OpenGL info
|
|
||||||
wayland-utils # wayland-info
|
|
||||||
clinfo # OpenCL info
|
|
||||||
vulkan-tools # vulkaninfo
|
|
||||||
libva-utils # vainfo
|
|
||||||
vdpauinfo # Video-Decode and Presentation API for Unix info
|
|
||||||
hwloc # Generate CPU topology diagram
|
|
||||||
lm_sensors # Readout hardware sensors
|
|
||||||
acpica-tools # Dump ACPI tables etc.
|
|
||||||
smartmontools # Disk health
|
|
||||||
nvme-cli # NVME disk health
|
|
||||||
|
|
||||||
# Video/Image/Audio utils
|
|
||||||
ffmpeg-full # I love ffmpeg (including ffplay)
|
|
||||||
ffmpeg-normalize # Normalize audio
|
|
||||||
imagemagick # Convert image (magic)
|
|
||||||
mp3val # Validate mp3 files
|
|
||||||
flac # Validate flac files
|
|
||||||
# spotdl
|
|
||||||
|
|
||||||
# Document utils
|
|
||||||
poppler-utils # pdfunite
|
|
||||||
graphviz # generate graphs from code
|
|
||||||
d2 # generate diagrams from code
|
|
||||||
plantuml # generate diagrams
|
|
||||||
gnuplot # generate function plots
|
|
||||||
pdf2svg # extract vector graphics from pdf
|
|
||||||
pandoc # document converting madness
|
|
||||||
|
|
||||||
# Networking
|
|
||||||
dig # Make DNS requests
|
|
||||||
tcpdump # Listen in on TCP traffic
|
|
||||||
traceroute # "Follow" a packet
|
|
||||||
gping # ping with graph
|
|
||||||
curlie # curl a'la httpie
|
|
||||||
wget # download that shit
|
|
||||||
doggo # dns client
|
|
||||||
rsync # cp on steroids
|
|
||||||
rclone # Rsync for cloud
|
|
||||||
httpie # Cool http client
|
|
||||||
cifs-utils # Mount samba shares
|
|
||||||
nfs-utils # Mount NFS shares
|
|
||||||
sshfs # Mount remote directories via SSH
|
|
||||||
|
|
||||||
# Run unpatched binaries on NixOS
|
|
||||||
# Sets NIX_LD_LIBRARY_PATH and NIX_LD variables for nix-ld.
|
|
||||||
# Usage: "nix-alien-ld -- <Executable>".
|
|
||||||
inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
|
|
||||||
|
|
||||||
# Search nixpkgs
|
|
||||||
inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
||||||
|
|
||||||
# Use NixCommunity binary cache
|
|
||||||
cachix
|
|
||||||
]
|
|
||||||
(lib.mkIf (!headless) [
|
|
||||||
ripdrag # drag & drop from terminal
|
|
||||||
veracrypt
|
|
||||||
wl-clipboard
|
|
||||||
|
|
||||||
# Proton
|
|
||||||
protonvpn-gui
|
|
||||||
protonmail-bridge-gui
|
|
||||||
|
|
||||||
# GUI stuff
|
|
||||||
nautilus # Just in case
|
|
||||||
signal-desktop
|
|
||||||
anki
|
|
||||||
font-manager # Previews fonts, but doesn't set them
|
|
||||||
nextcloud-client
|
|
||||||
keepassxc
|
|
||||||
thunderbird # TODO: Email module
|
|
||||||
obsidian
|
|
||||||
zotero
|
|
||||||
zeal # docs browser
|
|
||||||
# helvum # unmaintained
|
|
||||||
crosspipe
|
|
||||||
vlc
|
|
||||||
audacity
|
|
||||||
ferdium
|
|
||||||
gparted
|
|
||||||
# feishin # electron :(
|
|
||||||
jellyfin-tui
|
|
||||||
czkawka-full # file deduplicator
|
|
||||||
|
|
||||||
# Office
|
|
||||||
kdePackages.wacomtablet # For xournalpp/krita
|
|
||||||
xournalpp # Write with a pen, like old people
|
|
||||||
hunspell # I cna't type
|
|
||||||
hunspellDicts.en_US
|
|
||||||
hunspellDicts.de_DE
|
|
||||||
|
|
||||||
inputs.masssprings.packages.${stdenv.hostPlatform.system}.default
|
|
||||||
])
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# home.file.".options-doc".source = "${pkgs.modules-options-doc}";
|
# home.file.".options-doc".source = "${pkgs.modules-options-doc}";
|
||||||
|
|
||||||
# Packages with extra options managed by HomeManager natively
|
# Packages with extra options managed by HomeManager natively
|
||||||
programs = {
|
programs = {
|
||||||
# The home-manager management tool.
|
|
||||||
# Will only be enabled if HM is installed standalone.
|
|
||||||
home-manager.enable = true;
|
|
||||||
|
|
||||||
bat = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
themes = {
|
|
||||||
catppuccin-latte = {
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "catppuccin";
|
|
||||||
repo = "bat";
|
|
||||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
|
||||||
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
|
||||||
};
|
|
||||||
file = "Catppuccin-latte.tmTheme";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
theme = "catppuccin-latte";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
cava = {
|
|
||||||
enable = !headless;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
general = {
|
|
||||||
framerate = 60; # default 60
|
|
||||||
autosens = 1; # default 1
|
|
||||||
sensitivity = 100; # default 100
|
|
||||||
lower_cutoff_freq = 50; # not passed to cava if not provided
|
|
||||||
higher_cutoff_freq = 10000; # not passed to cava if not provided
|
|
||||||
};
|
|
||||||
|
|
||||||
smoothing = {
|
|
||||||
noise_reduction = 77; # default 77
|
|
||||||
monstercat = false; # default false
|
|
||||||
waves = false; # default false
|
|
||||||
};
|
|
||||||
|
|
||||||
color = {
|
|
||||||
# https://github.com/catppuccin/cava/blob/main/themes/latte-transparent.cava
|
|
||||||
gradient = 1;
|
|
||||||
|
|
||||||
gradient_color_1 = "'${color.hexS.teal}'";
|
|
||||||
gradient_color_2 = "'${color.hexS.sky}'";
|
|
||||||
gradient_color_3 = "'${color.hexS.sapphire}'";
|
|
||||||
gradient_color_4 = "'${color.hexS.blue}'";
|
|
||||||
gradient_color_5 = "'${color.hexS.mauve}'";
|
|
||||||
gradient_color_6 = "'${color.hexS.pink}'";
|
|
||||||
gradient_color_7 = "'${color.hexS.maroon}'";
|
|
||||||
gradient_color_8 = "'${color.hexS.red}'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
eza = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: Module
|
|
||||||
fastfetch = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
logo = {
|
|
||||||
padding = {
|
|
||||||
top = 4;
|
|
||||||
left = 1;
|
|
||||||
right = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
display = {
|
|
||||||
separator = "";
|
|
||||||
key.width = 17;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Box Drawing: ╭ ─ ╮ ╰ ╯ │
|
|
||||||
modules = [
|
|
||||||
# Title
|
|
||||||
{
|
|
||||||
type = "title";
|
|
||||||
format = "{#1}╭─── {#}{user-name-colored}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# System Information
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}System Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "os";
|
|
||||||
key = "{#separator}│ {#keys} OS";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "kernel";
|
|
||||||
key = "{#separator}│ {#keys} Kernel";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "bootmgr";
|
|
||||||
key = "{#separator}│ {#keys} BootMGR";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "uptime";
|
|
||||||
key = "{#separator}│ {#keys} Uptime";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "packages";
|
|
||||||
key = "{#separator}│ {#keys} Packages";
|
|
||||||
# format = "{all}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Desktop Environment";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "de";
|
|
||||||
key = "{#separator}│ {#keys} DE";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wm";
|
|
||||||
key = "{#separator}│ {#keys} WM";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wmtheme";
|
|
||||||
key = "{#separator}│ {#keys} Theme";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "display";
|
|
||||||
key = "{#separator}│ {#keys} Resolution";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "shell";
|
|
||||||
key = "{#separator}│ {#keys} Shell";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "terminalfont";
|
|
||||||
key = "{#separator}│ {#keys} Font";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "icons";
|
|
||||||
key = "{#separator}│ {#keys} Icons";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "cursor";
|
|
||||||
key = "{#separator}│ {#keys} Cursor";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Hardware Information
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Hardware Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "board";
|
|
||||||
key = "{#separator}│ {#keys} Board";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "cpu";
|
|
||||||
key = "{#separator}│ {#keys} CPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "gpu";
|
|
||||||
key = "{#separator}│ {#keys} GPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "memory";
|
|
||||||
key = "{#separator}│ {#keys} Memory";
|
|
||||||
}
|
|
||||||
# {
|
|
||||||
# type = "disk";
|
|
||||||
# key = "{#separator}│ {#keys} Disk (/)";
|
|
||||||
# folders = "/";
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# type = "disk";
|
|
||||||
# key = "{#separator}│ {#keys} Disk (~/Games)";
|
|
||||||
# folders = "/home/christoph/Games";
|
|
||||||
# }
|
|
||||||
{
|
|
||||||
type = "btrfs";
|
|
||||||
key = "{#separator}│ {#keys} BTRFS";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Colors Footer
|
|
||||||
{
|
|
||||||
type = "colors";
|
|
||||||
key = "{#separator}╰─── {#1}";
|
|
||||||
keyWidth = 6;
|
|
||||||
symbol = "circle";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fd.enable = true;
|
|
||||||
|
|
||||||
fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
imv = {
|
imv = {
|
||||||
enable = !headless;
|
enable = !headless;
|
||||||
settings = {
|
settings = {
|
||||||
@ -665,11 +281,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
navi = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
nix-index = {
|
nix-index = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
@ -699,92 +310,6 @@ in
|
|||||||
# pointer
|
# pointer
|
||||||
# ];
|
# ];
|
||||||
# };
|
# };
|
||||||
|
|
||||||
ssh = {
|
|
||||||
enable = true;
|
|
||||||
enableDefaultConfig = false;
|
|
||||||
|
|
||||||
matchBlocks = {
|
|
||||||
"*" = {
|
|
||||||
forwardAgent = false;
|
|
||||||
addKeysToAgent = "no";
|
|
||||||
compression = true;
|
|
||||||
serverAliveInterval = 0;
|
|
||||||
serverAliveCountMax = 3;
|
|
||||||
hashKnownHosts = false;
|
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
|
||||||
controlMaster = "no";
|
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
|
||||||
controlPersist = "no";
|
|
||||||
};
|
|
||||||
"nixinator" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "192.168.86.50";
|
|
||||||
};
|
|
||||||
"servenix" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "local.chriphost.de";
|
|
||||||
};
|
|
||||||
"thinknix" = {
|
|
||||||
user = "christoph";
|
|
||||||
hostname = "think.chriphost.de";
|
|
||||||
};
|
|
||||||
"vps" = {
|
|
||||||
user = "root";
|
|
||||||
hostname = "vps.chriphost.de";
|
|
||||||
};
|
|
||||||
"mars" = {
|
|
||||||
user = "smchurla";
|
|
||||||
hostname = "mars.cs.tu-dortmund.de";
|
|
||||||
serverAliveInterval = 60;
|
|
||||||
localForwards = [
|
|
||||||
{
|
|
||||||
# Resultbrowser
|
|
||||||
bind.port = 22941;
|
|
||||||
host.address = "127.0.0.1";
|
|
||||||
host.port = 22941;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# Mysql
|
|
||||||
bind.port = 3306;
|
|
||||||
host.address = "127.0.0.1";
|
|
||||||
host.port = 3306;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
escapeTime = 0; # Delay after pressing escape
|
|
||||||
# keyMode = "vi";
|
|
||||||
terminal = "xterm-256color";
|
|
||||||
|
|
||||||
plugins = with pkgs; [
|
|
||||||
{
|
|
||||||
plugin = tmuxPlugins.catppuccin;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
|
||||||
set -g @catppuccin_flavour 'latte' # or frappe, macchiato, mocha
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
set -g default-terminal "xterm-256color"
|
|
||||||
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
yt-dlp.enable = true;
|
|
||||||
|
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.homemodules.fish.enable;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|||||||
@ -101,6 +101,7 @@
|
|||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
# tidal-hifi
|
# tidal-hifi
|
||||||
# tidal-dl-ng # TODO: Borked
|
# tidal-dl-ng # TODO: Borked
|
||||||
|
# spotdl
|
||||||
tiddl
|
tiddl
|
||||||
picard
|
picard
|
||||||
handbrake
|
handbrake
|
||||||
|
|||||||
34
home/homemodules/bat/default.nix
Normal file
34
home/homemodules/bat/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) bat color;
|
||||||
|
in {
|
||||||
|
options.homemodules.bat = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf bat.enable {
|
||||||
|
programs.bat = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
themes = {
|
||||||
|
catppuccin-latte = {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "bat";
|
||||||
|
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||||
|
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||||
|
};
|
||||||
|
file = "Catppuccin-latte.tmTheme";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
theme = "catppuccin-latte";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/bat/options.nix
Normal file
7
home/homemodules/bat/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable bat";
|
||||||
|
}
|
||||||
48
home/homemodules/cava/default.nix
Normal file
48
home/homemodules/cava/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) cava color;
|
||||||
|
in {
|
||||||
|
options.homemodules.cava = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf cava.enable {
|
||||||
|
programs.cava = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
framerate = 60; # default 60
|
||||||
|
autosens = 1; # default 1
|
||||||
|
sensitivity = 100; # default 100
|
||||||
|
lower_cutoff_freq = 50; # not passed to cava if not provided
|
||||||
|
higher_cutoff_freq = 10000; # not passed to cava if not provided
|
||||||
|
};
|
||||||
|
|
||||||
|
smoothing = {
|
||||||
|
noise_reduction = 77; # default 77
|
||||||
|
monstercat = false; # default false
|
||||||
|
waves = false; # default false
|
||||||
|
};
|
||||||
|
|
||||||
|
color = {
|
||||||
|
# https://github.com/catppuccin/cava/blob/main/themes/latte-transparent.cava
|
||||||
|
gradient = 1;
|
||||||
|
|
||||||
|
gradient_color_1 = "'${color.hexS.teal}'";
|
||||||
|
gradient_color_2 = "'${color.hexS.sky}'";
|
||||||
|
gradient_color_3 = "'${color.hexS.sapphire}'";
|
||||||
|
gradient_color_4 = "'${color.hexS.blue}'";
|
||||||
|
gradient_color_5 = "'${color.hexS.mauve}'";
|
||||||
|
gradient_color_6 = "'${color.hexS.pink}'";
|
||||||
|
gradient_color_7 = "'${color.hexS.maroon}'";
|
||||||
|
gradient_color_8 = "'${color.hexS.red}'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/cava/options.nix
Normal file
7
home/homemodules/cava/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable cava";
|
||||||
|
}
|
||||||
@ -1,13 +1,20 @@
|
|||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
# My own HM modules
|
# My own HM modules
|
||||||
|
./bat
|
||||||
|
./btop
|
||||||
./color
|
./color
|
||||||
|
./fastfetch
|
||||||
./fish
|
./fish
|
||||||
./git
|
./git
|
||||||
./kitty
|
./kitty
|
||||||
./lazygit
|
./lazygit
|
||||||
./neovim
|
./neovim
|
||||||
|
./packages
|
||||||
./paths
|
./paths
|
||||||
|
./ssh
|
||||||
|
./terminal
|
||||||
|
./tmux
|
||||||
./yazi
|
./yazi
|
||||||
|
|
||||||
# HM modules imported from the flake inputs
|
# HM modules imported from the flake inputs
|
||||||
|
|||||||
@ -3,11 +3,14 @@
|
|||||||
# Obsolete modules are kept in "1_deprecated" for reference.
|
# Obsolete modules are kept in "1_deprecated" for reference.
|
||||||
|
|
||||||
# My own HM modules
|
# My own HM modules
|
||||||
|
./bat
|
||||||
./beets
|
./beets
|
||||||
./btop
|
./btop
|
||||||
|
./cava
|
||||||
./chromium
|
./chromium
|
||||||
./color
|
./color
|
||||||
./docs
|
./docs
|
||||||
|
./fastfetch
|
||||||
./fcitx
|
./fcitx
|
||||||
./firefox
|
./firefox
|
||||||
./fish
|
./fish
|
||||||
@ -18,11 +21,15 @@
|
|||||||
./neovim
|
./neovim
|
||||||
./niri
|
./niri
|
||||||
./nnn
|
./nnn
|
||||||
|
./packages
|
||||||
./paths
|
./paths
|
||||||
./qutebrowser
|
./qutebrowser
|
||||||
./rmpc
|
./rmpc
|
||||||
./rofi
|
./rofi
|
||||||
./waybar
|
./waybar
|
||||||
|
./ssh
|
||||||
|
./terminal
|
||||||
|
./tmux
|
||||||
./yazi
|
./yazi
|
||||||
./zathura
|
./zathura
|
||||||
|
|
||||||
|
|||||||
163
home/homemodules/fastfetch/default.nix
Normal file
163
home/homemodules/fastfetch/default.nix
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) fastfetch color;
|
||||||
|
in {
|
||||||
|
options.homemodules.fastfetch = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf fastfetch.enable {
|
||||||
|
programs.fastfetch = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
logo = {
|
||||||
|
padding = {
|
||||||
|
top = 4;
|
||||||
|
left = 1;
|
||||||
|
right = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
display = {
|
||||||
|
separator = "";
|
||||||
|
key.width = 17;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Box Drawing: ╭ ─ ╮ ╰ ╯ │
|
||||||
|
modules = [
|
||||||
|
# Title
|
||||||
|
{
|
||||||
|
type = "title";
|
||||||
|
format = "{#1}╭─── {#}{user-name-colored}";
|
||||||
|
}
|
||||||
|
|
||||||
|
# System Information
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│ {#}System Information";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "os";
|
||||||
|
key = "{#separator}│ {#keys} OS";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "kernel";
|
||||||
|
key = "{#separator}│ {#keys} Kernel";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "bootmgr";
|
||||||
|
key = "{#separator}│ {#keys} BootMGR";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "uptime";
|
||||||
|
key = "{#separator}│ {#keys} Uptime";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "packages";
|
||||||
|
key = "{#separator}│ {#keys} Packages";
|
||||||
|
# format = "{all}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Desktop Environment
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│ {#}Desktop Environment";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "de";
|
||||||
|
key = "{#separator}│ {#keys} DE";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "wm";
|
||||||
|
key = "{#separator}│ {#keys} WM";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "wmtheme";
|
||||||
|
key = "{#separator}│ {#keys} Theme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "display";
|
||||||
|
key = "{#separator}│ {#keys} Resolution";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "shell";
|
||||||
|
key = "{#separator}│ {#keys} Shell";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "terminalfont";
|
||||||
|
key = "{#separator}│ {#keys} Font";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "icons";
|
||||||
|
key = "{#separator}│ {#keys} Icons";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "cursor";
|
||||||
|
key = "{#separator}│ {#keys} Cursor";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Hardware Information
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│ {#}Hardware Information";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "board";
|
||||||
|
key = "{#separator}│ {#keys} Board";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "cpu";
|
||||||
|
key = "{#separator}│ {#keys} CPU";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "gpu";
|
||||||
|
key = "{#separator}│ {#keys} GPU";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "memory";
|
||||||
|
key = "{#separator}│ {#keys} Memory";
|
||||||
|
}
|
||||||
|
# {
|
||||||
|
# type = "disk";
|
||||||
|
# key = "{#separator}│ {#keys} Disk (/)";
|
||||||
|
# folders = "/";
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# type = "disk";
|
||||||
|
# key = "{#separator}│ {#keys} Disk (~/Games)";
|
||||||
|
# folders = "/home/christoph/Games";
|
||||||
|
# }
|
||||||
|
{
|
||||||
|
type = "btrfs";
|
||||||
|
key = "{#separator}│ {#keys} BTRFS";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "custom";
|
||||||
|
format = "{#1}│";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Colors Footer
|
||||||
|
{
|
||||||
|
type = "colors";
|
||||||
|
key = "{#separator}╰─── {#1}";
|
||||||
|
keyWidth = 6;
|
||||||
|
symbol = "circle";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/fastfetch/options.nix
Normal file
7
home/homemodules/fastfetch/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable fastfetch";
|
||||||
|
}
|
||||||
@ -42,99 +42,100 @@ in {
|
|||||||
fish_pager_color_description ${color.hex.overlay0}
|
fish_pager_color_description ${color.hex.overlay0}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish = lib.mkMerge [
|
programs.fish = let
|
||||||
# Darwin exclusive config
|
# Only add " | bat" if bat is installed
|
||||||
(lib.mkIf pkgs.stdenv.isDarwin {
|
batify = command: command + (lib.optionalString config.programs.bat.enable " | bat");
|
||||||
shellAbbrs = let
|
|
||||||
# These can be used for my config.homemodules and for HM config.programs,
|
|
||||||
# as both of these add the package to home.packages
|
|
||||||
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
|
||||||
|
|
||||||
# Only add fish abbr if package is installed
|
# Same as above but with args for bat
|
||||||
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
||||||
in
|
|
||||||
lib.mkMerge [
|
# These can be used for my config.homemodules and for HM config.programs,
|
||||||
|
# as both of these add the package to home.packages
|
||||||
|
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
||||||
|
|
||||||
|
# Only add fish abbr if package is installed
|
||||||
|
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
||||||
|
in
|
||||||
|
lib.mkMerge [
|
||||||
|
# Darwin exclusive config
|
||||||
|
(lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
|
shellInit = ''
|
||||||
|
set fish_greeting
|
||||||
|
yes | fish_config theme save "system-theme"
|
||||||
|
|
||||||
|
set --global --export HOMEBREW_PREFIX "/opt/homebrew"
|
||||||
|
set --global --export HOMEBREW_CELLAR "/opt/homebrew/Cellar"
|
||||||
|
set --global --export HOMEBREW_REPOSITORY "/opt/homebrew"
|
||||||
|
fish_add_path --global --move --path "/opt/homebrew/bin" "/opt/homebrew/sbin"
|
||||||
|
if test -n "$MANPATH[1]"; set --global --export MANPATH ''' $MANPATH; end;
|
||||||
|
if not contains "/opt/homebrew/share/info" $INFOPATH; set --global --export INFOPATH "/opt/homebrew/share/info" $INFOPATH; end;
|
||||||
|
'';
|
||||||
|
|
||||||
|
shellAbbrs = lib.mkMerge [
|
||||||
{
|
{
|
||||||
rebuild = "sudo darwin-rebuild switch --flake .#darwinix";
|
rebuild = "sudo darwin-rebuild switch --flake .#darwinix";
|
||||||
}
|
}
|
||||||
|
|
||||||
(abbrify pkgs.nix-search-tv {search = "nix-search-tv print --indexes 'darwin,home-manager,nixpkgs,nur' | fzf --preview 'nix-search-tv preview {}' --scheme history";})
|
(abbrify pkgs.nix-search-tv {search = "nix-search-tv print --indexes 'darwin,home-manager,nixpkgs,nur' | fzf --preview 'nix-search-tv preview {}' --scheme history";})
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Linux exclusive config
|
# Linux exclusive config
|
||||||
(lib.mkIf pkgs.stdenv.isLinux {
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
generateCompletions = nixosConfig.programs.fish.generateCompletions;
|
generateCompletions = nixosConfig.programs.fish.generateCompletions;
|
||||||
|
|
||||||
functions = lib.mergeAttrsList [
|
shellInit = ''
|
||||||
(lib.optionalAttrs config.homemodules.nnn.enable {
|
set fish_greeting
|
||||||
nnncd = {
|
yes | fish_config theme save "system-theme"
|
||||||
wraps = "nnn";
|
'';
|
||||||
description = "support nnn quit and change directory";
|
|
||||||
body = ''
|
|
||||||
# Block nesting of nnn in subshells
|
|
||||||
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
|
||||||
echo "nnn is already running"
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
functions = lib.mergeAttrsList [
|
||||||
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
(lib.optionalAttrs config.homemodules.nnn.enable {
|
||||||
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
nnncd = {
|
||||||
# without changing the paths.
|
wraps = "nnn";
|
||||||
if test -n "$XDG_CONFIG_HOME"
|
description = "support nnn quit and change directory";
|
||||||
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
body = ''
|
||||||
else
|
# Block nesting of nnn in subshells
|
||||||
set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
|
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
||||||
end
|
echo "nnn is already running"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||||
# stty start undef
|
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
||||||
# stty stop undef
|
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
||||||
# stty lwrap undef
|
# without changing the paths.
|
||||||
# stty lnext undef
|
if test -n "$XDG_CONFIG_HOME"
|
||||||
|
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||||
|
else
|
||||||
|
set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
|
||||||
|
end
|
||||||
|
|
||||||
# The command function allows one to alias this function to `nnn` without
|
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
||||||
# making an infinitely recursive alias
|
# stty start undef
|
||||||
command nnn $argv
|
# stty stop undef
|
||||||
|
# stty lwrap undef
|
||||||
|
# stty lnext undef
|
||||||
|
|
||||||
if test -e $NNN_TMPFILE
|
# The command function allows one to alias this function to `nnn` without
|
||||||
source $NNN_TMPFILE
|
# making an infinitely recursive alias
|
||||||
rm $NNN_TMPFILE
|
command nnn $argv
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
shellAbbrs = let
|
if test -e $NNN_TMPFILE
|
||||||
# Only add " | bat" if bat is installed
|
source $NNN_TMPFILE
|
||||||
batify = command: command + (lib.optionalString config.programs.bat.enable " | bat");
|
rm $NNN_TMPFILE
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# Same as above but with args for bat
|
shellAbbrs = lib.mkMerge [
|
||||||
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
|
||||||
|
|
||||||
# These can be used for my config.homemodules and for HM config.programs,
|
|
||||||
# as both of these add the package to home.packages
|
|
||||||
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
|
||||||
|
|
||||||
# Only add fish abbr if package is installed
|
|
||||||
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
|
||||||
in
|
|
||||||
lib.mkMerge [
|
|
||||||
# Abbrs that are always available are defined here.
|
# Abbrs that are always available are defined here.
|
||||||
{
|
{
|
||||||
# Fish
|
|
||||||
h = batifyWithArgs "history" "-l fish"; # -l fish sets syntax highlighting to fish
|
|
||||||
abbrs = batifyWithArgs "abbr" "-l fish";
|
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
blk = batify "lsblk -o NAME,LABEL,PARTLABEL,FSTYPE,SIZE,FSUSE%,MOUNTPOINT";
|
blk = batify "lsblk -o NAME,LABEL,PARTLABEL,FSTYPE,SIZE,FSUSE%,MOUNTPOINT";
|
||||||
blkids = batify "lsblk -o NAME,LABEL,FSTYPE,SIZE,PARTLABEL,MODEL,ID,UUID";
|
blkids = batify "lsblk -o NAME,LABEL,FSTYPE,SIZE,PARTLABEL,MODEL,ID,UUID";
|
||||||
nd = "nix develop";
|
|
||||||
nb = "nix build -L";
|
|
||||||
ns = "nix shell nixpkgs#";
|
|
||||||
nr = "nix run";
|
|
||||||
|
|
||||||
ghidra = "_JAVA_AWT_WM_NONREPARENTING=1 ghidra"; # env var for wayland
|
ghidra = "_JAVA_AWT_WM_NONREPARENTING=1 ghidra"; # env var for wayland
|
||||||
}
|
}
|
||||||
@ -151,31 +152,33 @@ in {
|
|||||||
|
|
||||||
# (abbrify pkgs.sd {sed = "sd";})
|
# (abbrify pkgs.sd {sed = "sd";})
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Common config
|
# Common config
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
shellAbbrs = let
|
shellAbbrs = lib.mkMerge [
|
||||||
# These can be used for my config.homemodules and for HM config.programs,
|
|
||||||
# as both of these add the package to home.packages
|
|
||||||
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
|
||||||
|
|
||||||
# Only add fish abbr if package is installed
|
|
||||||
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
|
||||||
in
|
|
||||||
lib.mkMerge [
|
|
||||||
{
|
{
|
||||||
# Shell basics
|
# Shell
|
||||||
c = "clear";
|
c = "clear";
|
||||||
q = "exit";
|
q = "exit";
|
||||||
mkdir = "mkdir -p"; # also create parents (-p)
|
mkdir = "mkdir -p"; # also create parents (-p)
|
||||||
watch = "watch -d -c -n 0.5";
|
watch = "watch -d -c -n 0.5";
|
||||||
sy = "sudo -u ${username} yazi";
|
sy = "sudo yazi";
|
||||||
cd = "z"; # zoxide for quickjump to previously visited locations
|
cd = "z"; # zoxide for quickjump to previously visited locations
|
||||||
cdd = "zi";
|
cdd = "zi";
|
||||||
b = "z -"; # jump to previous dir
|
b = "z -"; # jump to previous dir
|
||||||
|
|
||||||
|
# Fish
|
||||||
|
h = batifyWithArgs "history" "-l fish"; # -l fish sets syntax highlighting to fish
|
||||||
|
abbrs = batifyWithArgs "abbr" "-l fish";
|
||||||
|
|
||||||
|
# Nix
|
||||||
|
nd = "nix develop";
|
||||||
|
nb = "nix build -L";
|
||||||
|
ns = "nix shell nixpkgs#";
|
||||||
|
nr = "nix run";
|
||||||
nps = "nps -e";
|
nps = "nps -e";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,14 +230,9 @@ in {
|
|||||||
(abbrify pkgs.lazygit {lg = "lazygit";})
|
(abbrify pkgs.lazygit {lg = "lazygit";})
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = [];
|
plugins = [];
|
||||||
|
}
|
||||||
shellInit = ''
|
];
|
||||||
set fish_greeting
|
|
||||||
yes | fish_config theme save "system-theme"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@ -126,7 +126,7 @@ in {
|
|||||||
maplocalleader = ",";
|
maplocalleader = ",";
|
||||||
};
|
};
|
||||||
|
|
||||||
opts = import ./vim_opts.nix {inherit lib mylib;};
|
opts = import ./vim_opts.nix {inherit config lib mylib;};
|
||||||
extraConfigLuaPost = builtins.readFile ./extraConfigLuaPost.lua;
|
extraConfigLuaPost = builtins.readFile ./extraConfigLuaPost.lua;
|
||||||
extraConfigLua = builtins.readFile ./extraConfigLua.lua;
|
extraConfigLua = builtins.readFile ./extraConfigLua.lua;
|
||||||
|
|
||||||
@ -552,6 +552,21 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devdocs = rec {
|
||||||
|
name = "devdocs";
|
||||||
|
pkg = pkgs.vimPlugins.devdocs-nvim;
|
||||||
|
lazy = true;
|
||||||
|
cmd = ["DevDocs"];
|
||||||
|
dependencies = [snacks];
|
||||||
|
config = mkDefaultConfig name;
|
||||||
|
# opts = {
|
||||||
|
# ensure_installed = [
|
||||||
|
# "c"
|
||||||
|
# "cpp"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
name = "direnv";
|
name = "direnv";
|
||||||
pkg = pkgs.vimPlugins.direnv-vim;
|
pkg = pkgs.vimPlugins.direnv-vim;
|
||||||
@ -2160,6 +2175,7 @@ in {
|
|||||||
|
|
||||||
# dap # Debug adapter protocol # TODO:
|
# dap # Debug adapter protocol # TODO:
|
||||||
# dap-ui # Debugger UI # TODO:
|
# dap-ui # Debugger UI # TODO:
|
||||||
|
devdocs
|
||||||
diffview # Git diff # TODO: Check the keybindings
|
diffview # Git diff # TODO: Check the keybindings
|
||||||
|
|
||||||
direnv # Automatically load local environments
|
direnv # Automatically load local environments
|
||||||
|
|||||||
@ -505,6 +505,48 @@ _: let
|
|||||||
action = "<cmd>lua Snacks.picker.help()<cr>";
|
action = "<cmd>lua Snacks.picker.help()<cr>";
|
||||||
options.desc = "Helptags Picker";
|
options.desc = "Helptags Picker";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>hd";
|
||||||
|
action = "+devdocs";
|
||||||
|
}
|
||||||
|
# {
|
||||||
|
# mode = "n";
|
||||||
|
# key = "<leader>hdd";
|
||||||
|
# action.__raw = ''
|
||||||
|
# function()
|
||||||
|
# local devdocs = require("devdocs")
|
||||||
|
# local installedDocs = devdocs.GetInstalledDocs()
|
||||||
|
# vim.ui.select(installedDocs, {}, function(selected)
|
||||||
|
# if not selected then
|
||||||
|
# return
|
||||||
|
# end
|
||||||
|
# local docDir = devdocs.GetDocDir(selected)
|
||||||
|
# -- prettify the filename as you wish
|
||||||
|
# Snacks.picker.files({ cwd = docDir })
|
||||||
|
# end)
|
||||||
|
# end
|
||||||
|
# '';
|
||||||
|
# options.desc = "Open Devdocs";
|
||||||
|
# }
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>hdd";
|
||||||
|
action = "<cmd>DevDocs get<cr>";
|
||||||
|
options.desc = "Open Devdocs in Split";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>hdi";
|
||||||
|
action = "<cmd>DevDocs install<cr>";
|
||||||
|
options.desc = "Install Devdocs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>hdD";
|
||||||
|
action = "<cmd>DevDocs delete<cr>";
|
||||||
|
options.desc = "Delete Devdocs";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
leader-quit = [
|
leader-quit = [
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
_: {
|
{config, ...}: {
|
||||||
showmode = false; # Status line already shows this
|
showmode = false; # Status line already shows this
|
||||||
backspace = ["indent" "eol" "start"];
|
backspace = ["indent" "eol" "start"];
|
||||||
termguicolors = true; # Required by multiple plugins
|
termguicolors = true; # Required by multiple plugins
|
||||||
@ -37,7 +37,7 @@ _: {
|
|||||||
# swapfile = true;
|
# swapfile = true;
|
||||||
# backup = false;
|
# backup = false;
|
||||||
undofile = true;
|
undofile = true;
|
||||||
undodir = "/home/christoph/.vim/undo";
|
undodir = "${config.home.homeDirectory}/.vim/undo";
|
||||||
undolevels = 10000;
|
undolevels = 10000;
|
||||||
# autochdir = true;
|
# autochdir = true;
|
||||||
confirm = true;
|
confirm = true;
|
||||||
|
|||||||
217
home/homemodules/packages/default.nix
Normal file
217
home/homemodules/packages/default.nix
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
headless,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) packages color;
|
||||||
|
in {
|
||||||
|
options.homemodules.packages = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf packages.enable {
|
||||||
|
home.packages = with pkgs;
|
||||||
|
lib.mkMerge [
|
||||||
|
# Common packages
|
||||||
|
[
|
||||||
|
# Shell utils
|
||||||
|
(ripgrep.override {withPCRE2 = true;}) # fast as fuck
|
||||||
|
gdu # Alternative to du-dust (I like it better)
|
||||||
|
duf # Disk usage analyzer (for all disk overview)
|
||||||
|
sd # Sed alternative
|
||||||
|
fclones # Duplicate file finder
|
||||||
|
tealdeer # Very fast tldr (so readable man)
|
||||||
|
killall
|
||||||
|
atool # Archive preview
|
||||||
|
exiftool
|
||||||
|
ouch # Unified compression/decompression
|
||||||
|
ffmpegthumbnailer # Video thumbnails
|
||||||
|
mediainfo # Media meta information
|
||||||
|
file # File meta information
|
||||||
|
unrar # Cooler WinRar
|
||||||
|
p7zip # Zip stuff
|
||||||
|
unzip # Unzip stuff
|
||||||
|
progress # Find coreutils processes and show their progress
|
||||||
|
tokei # Text file statistics in a project
|
||||||
|
|
||||||
|
# Nix
|
||||||
|
nix-search-tv # Search nixpkgs, nur, nixos options and homemanager options
|
||||||
|
nix-tree # Browse the nix store sorted by size (gdu for closures)
|
||||||
|
inputs.nps.packages.${pkgs.stdenv.hostPlatform.system}.default # Search nixpkgs
|
||||||
|
|
||||||
|
# Video/Image/Audio utils
|
||||||
|
ffmpeg-full # I love ffmpeg (including ffplay)
|
||||||
|
ffmpeg-normalize # Normalize audio
|
||||||
|
|
||||||
|
# Document utils
|
||||||
|
poppler-utils # pdfunite
|
||||||
|
pdf2svg # extract vector graphics from pdf
|
||||||
|
pandoc # document converting madness
|
||||||
|
|
||||||
|
# Networking
|
||||||
|
dig # Make DNS requests
|
||||||
|
tcpdump # Listen in on TCP traffic
|
||||||
|
gping # ping with graph
|
||||||
|
curlie # curl a'la httpie
|
||||||
|
wget # download that shit
|
||||||
|
doggo # dns client
|
||||||
|
rsync # cp on steroids
|
||||||
|
rclone # Rsync for cloud
|
||||||
|
httpie # Cool http client
|
||||||
|
speedtest-cli
|
||||||
|
|
||||||
|
# Use NixCommunity binary cache
|
||||||
|
cachix
|
||||||
|
]
|
||||||
|
|
||||||
|
# Common !headless packages
|
||||||
|
(lib.optionals (!headless) [
|
||||||
|
ripdrag # drag & drop from terminal
|
||||||
|
jellyfin-tui
|
||||||
|
])
|
||||||
|
|
||||||
|
# Linux exclusive packages
|
||||||
|
(lib.optionals (pkgs.stdenv.isLinux) [
|
||||||
|
pastel # Color tools
|
||||||
|
nvd # Nix rebuild diff
|
||||||
|
nurl # Generate nix fetcher sections based on URLs
|
||||||
|
python313 # Nicer scripting than bash
|
||||||
|
lazyjournal # Journalctl viewer
|
||||||
|
systemctl-tui
|
||||||
|
restic # Backups
|
||||||
|
gnumake
|
||||||
|
just # make alternative
|
||||||
|
binsider # .elf analyzer
|
||||||
|
jujutsu # git-like vcs
|
||||||
|
lurk # strace analysis
|
||||||
|
radare2
|
||||||
|
|
||||||
|
# Hardware/Software info
|
||||||
|
pciutils # lspci
|
||||||
|
mesa-demos # OpenGL info
|
||||||
|
wayland-utils # wayland-info
|
||||||
|
clinfo # OpenCL info
|
||||||
|
vulkan-tools # vulkaninfo
|
||||||
|
libva-utils # vainfo
|
||||||
|
vdpauinfo # Video-Decode and Presentation API for Unix info
|
||||||
|
hwloc # Generate CPU topology diagram
|
||||||
|
lm_sensors # Readout hardware sensors
|
||||||
|
acpica-tools # Dump ACPI tables etc.
|
||||||
|
smartmontools # Disk health
|
||||||
|
nvme-cli # NVME disk health
|
||||||
|
|
||||||
|
# Video/Image/Audio utils
|
||||||
|
imagemagick # Convert image (magic)
|
||||||
|
mp3val # Validate mp3 files
|
||||||
|
flac # Validate flac files
|
||||||
|
|
||||||
|
# Document utils
|
||||||
|
graphviz # generate graphs from code
|
||||||
|
d2 # generate diagrams from code
|
||||||
|
plantuml # generate diagrams
|
||||||
|
gnuplot # generate function plots
|
||||||
|
|
||||||
|
# Networking
|
||||||
|
traceroute # "Follow" a packet
|
||||||
|
cifs-utils # Mount samba shares
|
||||||
|
nfs-utils # Mount NFS shares
|
||||||
|
sshfs # Mount remote directories via SSH
|
||||||
|
|
||||||
|
# Run unpatched binaries on NixOS
|
||||||
|
# Sets NIX_LD_LIBRARY_PATH and NIX_LD variables for nix-ld.
|
||||||
|
# Usage: "nix-alien-ld -- <Executable>".
|
||||||
|
inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
|
||||||
|
])
|
||||||
|
|
||||||
|
# Linux exclusive packages (!headless)
|
||||||
|
(lib.optionals (pkgs.stdenv.isLinux && (!headless)) [
|
||||||
|
veracrypt
|
||||||
|
wl-clipboard
|
||||||
|
|
||||||
|
# Proton
|
||||||
|
protonvpn-gui
|
||||||
|
protonmail-bridge-gui
|
||||||
|
|
||||||
|
# GUI stuff
|
||||||
|
nautilus # Just in case
|
||||||
|
signal-desktop
|
||||||
|
anki
|
||||||
|
font-manager # Previews fonts, but doesn't set them
|
||||||
|
nextcloud-client
|
||||||
|
keepassxc
|
||||||
|
thunderbird # TODO: Email module
|
||||||
|
obsidian
|
||||||
|
zotero
|
||||||
|
zeal # docs browser
|
||||||
|
# helvum # unmaintained
|
||||||
|
crosspipe
|
||||||
|
vlc
|
||||||
|
audacity
|
||||||
|
ferdium
|
||||||
|
gparted
|
||||||
|
# feishin # electron :(
|
||||||
|
jellyfin-tui
|
||||||
|
playerctl # Media player control
|
||||||
|
czkawka-full # file deduplicator
|
||||||
|
|
||||||
|
# Office
|
||||||
|
kdePackages.wacomtablet # For xournalpp/krita
|
||||||
|
xournalpp # Write with a pen, like old people
|
||||||
|
hunspell # I cna't type
|
||||||
|
hunspellDicts.en_US
|
||||||
|
hunspellDicts.de_DE
|
||||||
|
|
||||||
|
inputs.masssprings.packages.${stdenv.hostPlatform.system}.default
|
||||||
|
])
|
||||||
|
|
||||||
|
# Darwin exclusive packages
|
||||||
|
(lib.optionals pkgs.stdenv.isDarwin [
|
||||||
|
# Use homebrew instead
|
||||||
|
# alt-tab-macos
|
||||||
|
# discord
|
||||||
|
# obsidian
|
||||||
|
# nextcloud-client
|
||||||
|
# protonvpn-gui
|
||||||
|
# iina
|
||||||
|
])
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
# The home-manager management tool.
|
||||||
|
# Will only be enabled if HM is installed standalone.
|
||||||
|
home-manager.enable = true;
|
||||||
|
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
eza = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
fd.enable = true;
|
||||||
|
|
||||||
|
fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
navi = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
yt-dlp.enable = true;
|
||||||
|
|
||||||
|
zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = config.homemodules.fish.enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/packages/options.nix
Normal file
7
home/homemodules/packages/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable common packages";
|
||||||
|
}
|
||||||
70
home/homemodules/ssh/default.nix
Normal file
70
home/homemodules/ssh/default.nix
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) ssh color;
|
||||||
|
in {
|
||||||
|
options.homemodules.ssh = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf ssh.enable {
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
enableDefaultConfig = false;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"*" = {
|
||||||
|
forwardAgent = false;
|
||||||
|
addKeysToAgent = "no";
|
||||||
|
compression = true;
|
||||||
|
serverAliveInterval = 0;
|
||||||
|
serverAliveCountMax = 3;
|
||||||
|
hashKnownHosts = false;
|
||||||
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
|
controlMaster = "no";
|
||||||
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
|
controlPersist = "no";
|
||||||
|
};
|
||||||
|
"nixinator" = {
|
||||||
|
port = 5432;
|
||||||
|
user = "christoph";
|
||||||
|
hostname = "vps.chriphost.de";
|
||||||
|
};
|
||||||
|
"servenix" = {
|
||||||
|
user = "christoph";
|
||||||
|
hostname = "local.chriphost.de";
|
||||||
|
};
|
||||||
|
"thinknix" = {
|
||||||
|
user = "christoph";
|
||||||
|
hostname = "think.chriphost.de";
|
||||||
|
};
|
||||||
|
"vps" = {
|
||||||
|
user = "root";
|
||||||
|
hostname = "vps.chriphost.de";
|
||||||
|
};
|
||||||
|
"mars" = {
|
||||||
|
user = "smchurla";
|
||||||
|
hostname = "mars.cs.tu-dortmund.de";
|
||||||
|
serverAliveInterval = 60;
|
||||||
|
localForwards = [
|
||||||
|
{
|
||||||
|
# Resultbrowser
|
||||||
|
bind.port = 22941;
|
||||||
|
host.address = "127.0.0.1";
|
||||||
|
host.port = 22941;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
# Mysql
|
||||||
|
bind.port = 3306;
|
||||||
|
host.address = "127.0.0.1";
|
||||||
|
host.port = 3306;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/ssh/options.nix
Normal file
7
home/homemodules/ssh/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable ssh";
|
||||||
|
}
|
||||||
43
home/homemodules/terminal/default.nix
Normal file
43
home/homemodules/terminal/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
headless,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) terminal color;
|
||||||
|
in {
|
||||||
|
options.homemodules.terminal = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf terminal.enable {
|
||||||
|
homemodules = {
|
||||||
|
bat.enable = true;
|
||||||
|
btop.enable = true;
|
||||||
|
fastfetch.enable = true;
|
||||||
|
fish.enable = true;
|
||||||
|
|
||||||
|
git = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
userName = "Christoph Urlacher";
|
||||||
|
userEmail = "christoph.urlacher@protonmail.com";
|
||||||
|
signCommits = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
kitty.enable = true;
|
||||||
|
lazygit.enable = true;
|
||||||
|
|
||||||
|
neovim = {
|
||||||
|
enable = true;
|
||||||
|
alias = true;
|
||||||
|
neovide = !headless;
|
||||||
|
};
|
||||||
|
|
||||||
|
ssh.enable = true;
|
||||||
|
tmux.enable = true;
|
||||||
|
yazi.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/terminal/options.nix
Normal file
7
home/homemodules/terminal/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable terminal tools";
|
||||||
|
}
|
||||||
38
home/homemodules/tmux/default.nix
Normal file
38
home/homemodules/tmux/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) tmux color;
|
||||||
|
in {
|
||||||
|
options.homemodules.tmux = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf tmux.enable {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
clock24 = true;
|
||||||
|
escapeTime = 0; # Delay after pressing escape
|
||||||
|
# keyMode = "vi";
|
||||||
|
terminal = "xterm-256color";
|
||||||
|
|
||||||
|
plugins = with pkgs; [
|
||||||
|
{
|
||||||
|
plugin = tmuxPlugins.catppuccin;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @plugin 'catppuccin/tmux'
|
||||||
|
set -g @catppuccin_flavour 'latte' # or frappe, macchiato, mocha
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
set -g default-terminal "xterm-256color"
|
||||||
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/homemodules/tmux/options.nix
Normal file
7
home/homemodules/tmux/options.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
enable = lib.mkEnableOption "Enable tmux";
|
||||||
|
}
|
||||||
@ -24,7 +24,7 @@ in {
|
|||||||
output = waybar.monitors;
|
output = waybar.monitors;
|
||||||
|
|
||||||
modules-left = ["custom/launcher" "niri/workspaces" "niri/window"]; # "user"
|
modules-left = ["custom/launcher" "niri/workspaces" "niri/window"]; # "user"
|
||||||
modules-center = ["systemd-failed-units" "mpris"];
|
modules-center = ["mpris"]; # "systemd-failed-units"
|
||||||
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
|
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
|
||||||
|
|
||||||
"custom/launcher" = {
|
"custom/launcher" = {
|
||||||
@ -77,11 +77,11 @@ in {
|
|||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-icon-size = 24;
|
tooltip-icon-size = 24;
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
type = "audio-out";
|
# type = "audio-out";
|
||||||
tooltip = true;
|
# tooltip = true;
|
||||||
tooltip-icon-size = 24;
|
# tooltip-icon-size = 24;
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
type = "audio-in";
|
type = "audio-in";
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
@ -105,30 +105,29 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
disk = {
|
disk = {
|
||||||
|
interval = 5;
|
||||||
format = "<span></span> {percentage_used}%";
|
format = "<span></span> {percentage_used}%";
|
||||||
on-click = "kitty --hold --title=Duf duf --hide-mp '/var/*,/etc/*,/usr/*,/home/christoph/.*' -width 120";
|
on-click = "kitty --hold --title=Duf duf --hide-mp '/var/*,/etc/*,/usr/*,/home/christoph/.*' -width 120";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu = {
|
cpu = {
|
||||||
states = {
|
interval = 1;
|
||||||
"warning" = 65;
|
# states = {
|
||||||
"critical" = 85;
|
# "critical" = 85;
|
||||||
};
|
# };
|
||||||
format = "<span></span> {load}%";
|
format = "<span></span> {load}%";
|
||||||
format-warning = "<span color='#${color.hex.yellow}'><span></span> {load}%</span>";
|
# format-critical = "<span color='#${color.hex.red}'><span></span> {load}%</span>";
|
||||||
format-critical = "<span color='#${color.hex.red}'><span></span> {load}%</span>";
|
|
||||||
on-click = "kitty --title=Btop btop";
|
on-click = "kitty --title=Btop btop";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
memory = {
|
memory = {
|
||||||
states = {
|
interval = 1;
|
||||||
"warning" = 65;
|
# states = {
|
||||||
"critical" = 85;
|
# "critical" = 85;
|
||||||
};
|
# };
|
||||||
format = "<span></span> {percentage}%";
|
format = "<span></span> {percentage}%";
|
||||||
format-warning = "<span color='#${color.hex.yellow}'><span></span> {percentage}%</span>";
|
# format-critical = "<span color='#${color.hex.red}'><span></span> {percentage}%</span>";
|
||||||
format-critical = "<span color='#${color.hex.red}'><span></span> {percentage}%</span>";
|
|
||||||
on-click = "kitty --title=Btop btop";
|
on-click = "kitty --title=Btop btop";
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-format = "RAM: {used}GiB / {total}GiB\nSwap: {swapUsed}GiB / {swapTotal}GiB";
|
tooltip-format = "RAM: {used}GiB / {total}GiB\nSwap: {swapUsed}GiB / {swapTotal}GiB";
|
||||||
@ -144,7 +143,7 @@ in {
|
|||||||
mode-mon-col = 3;
|
mode-mon-col = 3;
|
||||||
on-scroll = -1;
|
on-scroll = -1;
|
||||||
format = {
|
format = {
|
||||||
months = "<span color='#${color.hex.yellow}'><b>{}</b></span>";
|
months = "<span color='#${color.hex.peach}'><b>{}</b></span>";
|
||||||
days = "<span color='#${color.hex.flamingo}'><b>{}</b></span>";
|
days = "<span color='#${color.hex.flamingo}'><b>{}</b></span>";
|
||||||
weeks = "<span color='#${color.hex.teal}'><b>W{}</b></span>";
|
weeks = "<span color='#${color.hex.teal}'><b>W{}</b></span>";
|
||||||
weekdays = "<span color='#${color.hex.lavender}'><b>{}</b></span>";
|
weekdays = "<span color='#${color.hex.lavender}'><b>{}</b></span>";
|
||||||
@ -194,24 +193,26 @@ in {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Background colors */
|
/* Background colors */
|
||||||
#custom-launcher {background-color: #${color.hex.accent};}
|
#custom-launcher {background-color: #${color.hex.accent};}
|
||||||
#workspaces button {background-color: #${color.hex.lavender};}
|
#workspaces button {background-color: #${color.hex.blue};}
|
||||||
#workspaces button.active {background-color: #${color.hex.pink};}
|
#workspaces button.empty {background-color: #${color.hex.lavender};}
|
||||||
#window {background-color: #${color.hex.maroon};}
|
#workspaces button.active {background-color: #${color.hex.green};}
|
||||||
#systemd-failed-units {background-color: #${color.hex.red};}
|
#workspaces button.urgent {background-color: #${color.hex.red};}
|
||||||
#mpris {background-color: #${color.hex.accent};}
|
#window {background-color: #${color.hex.maroon};}
|
||||||
#privacy {background-color: #${color.hex.red};}
|
|
||||||
#pulseaudio {background-color: #${color.hex.maroon};}
|
#mpris {background-color: #${color.hex.accent};}
|
||||||
#network {background-color: #${color.hex.peach};}
|
|
||||||
#disk {background-color: #${color.hex.yellow};}
|
#privacy {background-color: #${color.hex.red};}
|
||||||
#cpu {background-color: #${color.hex.green};}
|
#pulseaudio {background-color: #${color.hex.maroon};}
|
||||||
#memory {background-color: #${color.hex.teal};}
|
#network {background-color: #${color.hex.peach};}
|
||||||
#clock {background-color: #${color.hex.sky};}
|
#disk {background-color: #${color.hex.yellow};}
|
||||||
#tray {background-color: #${color.hex.accent};}
|
#cpu {background-color: #${color.hex.green};}
|
||||||
|
#memory {background-color: #${color.hex.teal};}
|
||||||
|
#clock {background-color: #${color.hex.sky};}
|
||||||
|
#tray {background-color: #${color.hex.accent};}
|
||||||
|
|
||||||
/* Square Widgets */
|
/* Square Widgets */
|
||||||
#custom-launcher,
|
#custom-launcher,
|
||||||
#systemd-failed-units,
|
|
||||||
#mpris,
|
#mpris,
|
||||||
#tray {
|
#tray {
|
||||||
color: #${color.hex.mantle};
|
color: #${color.hex.mantle};
|
||||||
@ -260,10 +261,6 @@ in {
|
|||||||
margin: 0px 5px 0px 0px;
|
margin: 0px 5px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#systemd-failed-units {
|
|
||||||
margin: 0px 5px 0px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
margin: 0px 0px 0px 5px;
|
margin: 0px 0px 0px 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
13
lib/containers.nix
Normal file
13
lib/containers.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# Standard DockerHub login used by all oci-container services.
|
||||||
|
# Usage: login = mylib.containers.mkDockerLogin config;
|
||||||
|
mkDockerLogin = config: {
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -13,4 +13,5 @@
|
|||||||
rofi = import ./rofi.nix {inherit inputs pkgs lib;};
|
rofi = import ./rofi.nix {inherit inputs pkgs lib;};
|
||||||
generators = import ./generators.nix {inherit inputs pkgs lib;};
|
generators = import ./generators.nix {inherit inputs pkgs lib;};
|
||||||
color = import ./color.nix {inherit inputs pkgs lib;};
|
color = import ./color.nix {inherit inputs pkgs lib;};
|
||||||
|
containers = import ./containers.nix {inherit inputs pkgs lib;};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,6 +43,8 @@
|
|||||||
routers,
|
routers,
|
||||||
nameservers,
|
nameservers,
|
||||||
routable,
|
routable,
|
||||||
|
# Extra addresses declared without creating routes (e.g. IPv6 ULA).
|
||||||
|
extraAddresses ? [],
|
||||||
}: {
|
}: {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -56,7 +58,8 @@
|
|||||||
address = ips;
|
address = ips;
|
||||||
gateway = routers;
|
gateway = routers;
|
||||||
dns = nameservers;
|
dns = nameservers;
|
||||||
routes = builtins.map (r: {Gateway = r;}) routers; # TODO: We need to add a way to specify addresses without routes (IPv6 ULA)
|
routes = builtins.map (r: {Gateway = r;}) routers;
|
||||||
|
addresses = builtins.map (a: {Address = a;}) extraAddresses;
|
||||||
|
|
||||||
# See man systemd.network
|
# See man systemd.network
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
|||||||
@ -4,6 +4,26 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
# Common nix daemon settings shared between NixOS and nix-darwin.
|
||||||
|
# Darwin additionally needs nix.enable = true.
|
||||||
|
mkCommonNixSettings = username: {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nixVersions.stable;
|
||||||
|
extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes pipe-operators
|
||||||
|
'';
|
||||||
|
settings.trusted-users = ["root" username];
|
||||||
|
gc.automatic = false;
|
||||||
|
gc.options = "--delete-older-than 5d";
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
optimise.automatic = true;
|
||||||
|
registry = lib.mapAttrs' (n: v: lib.nameValuePair n {flake = v;}) inputs;
|
||||||
|
nixPath = [
|
||||||
|
"nixpkgs=${inputs.nixpkgs.outPath}"
|
||||||
|
"home-manager=${inputs.home-manager.outPath}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
mkNixosConfigWithHomeManagerModule = {
|
mkNixosConfigWithHomeManagerModule = {
|
||||||
system,
|
system,
|
||||||
mylib,
|
mylib,
|
||||||
|
|||||||
@ -7,27 +7,71 @@
|
|||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
publicKeys,
|
publicKeys,
|
||||||
|
hostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nix = {
|
nix = mylib.nixos.mkCommonNixSettings username;
|
||||||
package = pkgs.nixVersions.stable;
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes pipe-operators
|
|
||||||
'';
|
|
||||||
|
|
||||||
settings.trusted-users = ["root" "${username}"];
|
networking = {
|
||||||
|
hostName = "${hostname}";
|
||||||
|
localHostName = "${hostname}";
|
||||||
|
computerName = "${hostname}";
|
||||||
|
|
||||||
gc.automatic = false;
|
applicationFirewall = {
|
||||||
gc.options = "--delete-older-than 5d";
|
enable = true;
|
||||||
settings.auto-optimise-store = true;
|
enableStealthMode = false;
|
||||||
optimise.automatic = true;
|
allowSigned = true;
|
||||||
|
allowSignedApp = true;
|
||||||
|
blockAllIncoming = false;
|
||||||
|
};
|
||||||
|
|
||||||
registry = lib.mapAttrs' (n: v: lib.nameValuePair n {flake = v;}) inputs;
|
knownNetworkServices = [
|
||||||
|
"Wi-Fi"
|
||||||
nixPath = [
|
"Thunderbold Bridge"
|
||||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
|
||||||
"home-manager=${inputs.home-manager.outPath}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dns = [
|
||||||
|
"192.168.86.26"
|
||||||
|
"8.8.8.8"
|
||||||
|
"8.8.4.4"
|
||||||
|
];
|
||||||
|
|
||||||
|
# wg-quick = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
power = {
|
||||||
|
# restartAfterFreeze = false;
|
||||||
|
# restartAfterPowerFailure = false;
|
||||||
|
|
||||||
|
sleep = {
|
||||||
|
computer = 10; # 10 minutes until sleep
|
||||||
|
display = 5;
|
||||||
|
harddisk = 5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
system = {
|
||||||
|
primaryUser = "${username}";
|
||||||
|
|
||||||
|
# TODO:
|
||||||
|
defaults = {
|
||||||
|
# dock = {};
|
||||||
|
|
||||||
|
trackpad = {
|
||||||
|
ActuateDetents = true; # Haptic feedback
|
||||||
|
ActuationStrength = 1;
|
||||||
|
Clicking = true; # Tap to click
|
||||||
|
Dragging = true; # Double tap to drag
|
||||||
|
TrackpadRightClick = true;
|
||||||
|
TrackpadPinch = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
swapLeftCtrlAndFn = false;
|
||||||
|
swapLeftCommandAndLeftAlt = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
@ -46,16 +90,54 @@
|
|||||||
# packages = with pkgs; [];
|
# packages = with pkgs; [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.shells = with pkgs; [pkgs.fish];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alejandra
|
alejandra
|
||||||
neovim
|
neovim
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerd-fonts.jetbrains-mono
|
||||||
|
monolisa
|
||||||
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
# For another time maybe
|
||||||
|
# sketchybar = {};
|
||||||
|
# skhd = {};
|
||||||
|
# yabai = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
# NOTE: Not installed automatically
|
||||||
|
homebrew = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
|
||||||
|
onActivation = {
|
||||||
|
autoUpdate = true;
|
||||||
|
cleanup = "zap"; # Uninstall unlisted casks and associated files on rebuild
|
||||||
|
upgrade = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
brews = [];
|
||||||
|
|
||||||
|
casks = [
|
||||||
|
"alt-tab"
|
||||||
|
"discord"
|
||||||
|
"iina"
|
||||||
|
"nextcloud"
|
||||||
|
"obsidian"
|
||||||
|
"protonvpn"
|
||||||
|
"signal"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Set Git commit hash for darwin-version.
|
# Set Git commit hash for darwin-version.
|
||||||
# system.configurationRevision = self.rev or self.dirtyRev or null;
|
# system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||||
|
|
||||||
|
|||||||
@ -104,31 +104,7 @@ with mylib.networking; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Enable flakes
|
# Enable flakes
|
||||||
nix = {
|
nix = mylib.nixos.mkCommonNixSettings username;
|
||||||
package = pkgs.nixVersions.stable;
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes pipe-operators
|
|
||||||
'';
|
|
||||||
|
|
||||||
settings.trusted-users = ["root" "${username}"];
|
|
||||||
|
|
||||||
# Auto garbage-collect and optimize store
|
|
||||||
gc.automatic = false; # Done by nh.clean.enable;
|
|
||||||
gc.options = "--delete-older-than 5d";
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
optimise.automatic = true;
|
|
||||||
|
|
||||||
# This will add your inputs as registries, making operations with them (such
|
|
||||||
# as nix shell nixpkgs#name) consistent with your flake inputs.
|
|
||||||
# (Registry contains flakes)
|
|
||||||
registry = lib.mapAttrs' (n: v: lib.nameValuePair n {flake = v;}) inputs;
|
|
||||||
|
|
||||||
# Set NIX_PATH to find nixpgks
|
|
||||||
nixPath = [
|
|
||||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
|
||||||
"home-manager=${inputs.home-manager.outPath}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bootloader/Kernel stuff
|
# Bootloader/Kernel stuff
|
||||||
boot = {
|
boot = {
|
||||||
|
|||||||
@ -124,6 +124,7 @@
|
|||||||
# 31431 # Parsec
|
# 31431 # Parsec
|
||||||
5173 # SvelteKit
|
5173 # SvelteKit
|
||||||
8090 # PocketBase
|
8090 # PocketBase
|
||||||
|
8188 # ComfyUI
|
||||||
];
|
];
|
||||||
|
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
@ -134,6 +135,7 @@
|
|||||||
# 31431 # Parsec
|
# 31431 # Parsec
|
||||||
5173 # SvelteKit
|
5173 # SvelteKit
|
||||||
8090 # PocketBase
|
8090 # PocketBase
|
||||||
|
8188 # ComfyUI
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -65,52 +65,13 @@
|
|||||||
useNetworkManager = false;
|
useNetworkManager = false;
|
||||||
|
|
||||||
networks = {
|
networks = {
|
||||||
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
"10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
||||||
# interface = "ens18";
|
interface = "ens18";
|
||||||
# ips = ["192.168.86.25/24" "fd00::19/64"];
|
ips = ["192.168.86.25/24"];
|
||||||
# routers = ["192.168.86.5" "fd00::5"];
|
routers = ["192.168.86.5"]; # Don't add IPv6 gateway, rely on router advertisement instead
|
||||||
# nameservers = ["8.8.8.8" "2001:4860:4860::8888"]; # NOTE: Use reliable DNS for servers instead of 192.168.86.26
|
nameservers = ["8.8.8.8" "8.8.4.4" "2001:4860:4860:8888" "2001:4860:4860:8844"]; # NOTE: Use reliable DNS for servers instead of 192.168.86.26
|
||||||
# routable = true;
|
routable = true;
|
||||||
# };
|
extraAddresses = ["fd00::19/64"]; # IPv6 ULA — declared without creating a route
|
||||||
|
|
||||||
# TODO: mylib.networking.mkStaticSystemdNetwork needs improvement to accomodate for this
|
|
||||||
"10-ether-1G" = rec {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# See man systemd.link, man systemd.netdev, man systemd.network
|
|
||||||
matchConfig = {
|
|
||||||
# This corresponds to the [MATCH] section
|
|
||||||
Name = "ens18"; # Match ethernet interface
|
|
||||||
};
|
|
||||||
|
|
||||||
# Static IP + DNS + Gateway
|
|
||||||
address = ["192.168.86.25/24"];
|
|
||||||
gateway = ["192.168.86.5"]; # Don't add IPv6 gateway, rely on router advertisement instead
|
|
||||||
dns = ["8.8.8.8" "8.8.4.4" "2001:4860:4860:8888" "2001:4860:4860:8844"];
|
|
||||||
routes = builtins.map (r: {Gateway = r;}) gateway;
|
|
||||||
|
|
||||||
# See man systemd.network
|
|
||||||
networkConfig = {
|
|
||||||
# This corresponds to the [NETWORK] section
|
|
||||||
DHCP = "no";
|
|
||||||
|
|
||||||
IPv6AcceptRA = "yes"; # Accept Router Advertisements
|
|
||||||
# MulticastDNS = "no";
|
|
||||||
# LLMNR = "no";
|
|
||||||
# LinkLocalAddressing = "ipv6";
|
|
||||||
};
|
|
||||||
|
|
||||||
addresses = [
|
|
||||||
{
|
|
||||||
# Don't add this to address, we don't want to create any routes with this
|
|
||||||
Address = "fd00::19/64";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
linkConfig = {
|
|
||||||
# This corresponds to the [LINK] section
|
|
||||||
RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -16,14 +17,7 @@ in {
|
|||||||
image = "TEMPLATE:${TEMPLATEVersion}";
|
image = "TEMPLATE:${TEMPLATEVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "adguard/adguardhome:${adguardVersion}";
|
image = "adguard/adguardhome:${adguardVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "authelia/authelia:${autheliaVersion}";
|
image = "authelia/authelia:${autheliaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/bazarr:${bazarrVersion}";
|
image = "linuxserver/bazarr:${bazarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "stashapp/stash:${boxVersion}";
|
image = "stashapp/stash:${boxVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
comfyuiVersion = "cu128-slim-20260316";
|
# comfyuiVersion = "cu128-slim-20260316";
|
||||||
|
comfyuiVersion = "cu128-megapak-20260323";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
comfyui = {
|
comfyui = {
|
||||||
image = "yanwk/comfyui-boot:${comfyuiVersion}";
|
image = "yanwk/comfyui-boot:${comfyuiVersion}";
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -42,6 +37,13 @@ in {
|
|||||||
PUID = "1000";
|
PUID = "1000";
|
||||||
PGID = "1000";
|
PGID = "1000";
|
||||||
TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
# https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
|
||||||
|
# --use-sage-attention # => OOM
|
||||||
|
# --lowvram
|
||||||
|
# --disable-pinned-memory
|
||||||
|
# --cache-none
|
||||||
|
# CLI_ARGS = "--use-sage-attention";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "revenz/fileflows:${fileflowsVersion}";
|
image = "revenz/fileflows:${fileflowsVersion}";
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "revenz/fileflows:${version}";
|
image = "revenz/fileflows:${version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -27,14 +28,7 @@ in {
|
|||||||
image = "postgres:14";
|
image = "postgres:14";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -59,14 +53,7 @@ in {
|
|||||||
image = "gitea/gitea:${giteaVersion}";
|
image = "gitea/gitea:${giteaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
"gitea-db"
|
"gitea-db"
|
||||||
@ -107,14 +94,7 @@ in {
|
|||||||
image = "gitea/act_runner:${runnerVersion}"; # NOTE: vegardit has other runner images
|
image = "gitea/act_runner:${runnerVersion}"; # NOTE: vegardit has other runner images
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
"gitea"
|
"gitea"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -39,14 +40,7 @@ in {
|
|||||||
image = "redis";
|
image = "redis";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/jellyfin:${jellyfinVersion}";
|
image = "linuxserver/jellyfin:${jellyfinVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -18,14 +19,7 @@ in {
|
|||||||
image = "kopia/kopia:${kopiaVersion}";
|
image = "kopia/kopia:${kopiaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -33,14 +34,7 @@ in {
|
|||||||
image = "postgres:alpine";
|
image = "postgres:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -67,14 +61,7 @@ in {
|
|||||||
image = "redis:alpine";
|
image = "redis:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -97,14 +84,7 @@ in {
|
|||||||
image = "nextcloud:${nextcloudVersion}";
|
image = "nextcloud:${nextcloudVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
"nextcloud-db"
|
"nextcloud-db"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "jc21/nginx-proxy-manager:${nginxVersion}";
|
image = "jc21/nginx-proxy-manager:${nginxVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -16,14 +17,7 @@ in {
|
|||||||
image = "flor1der/paperless-nextcloud-sync:${paperlessNCVersion}";
|
image = "flor1der/paperless-nextcloud-sync:${paperlessNCVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -59,14 +53,7 @@ in {
|
|||||||
image = "redis:7";
|
image = "redis:7";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -87,14 +74,7 @@ in {
|
|||||||
image = "postgres:15";
|
image = "postgres:15";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "plexinc/pms-docker:${plexVersion}";
|
image = "plexinc/pms-docker:${plexVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -13,14 +14,7 @@ in {
|
|||||||
image = "portainer/agent:${portainerVersion}";
|
image = "portainer/agent:${portainerVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,14 +13,7 @@ in {
|
|||||||
image = "portainer/portainer-ce:${portainerVersion}";
|
image = "portainer/portainer-ce:${portainerVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/prowlarr:${prowlarrVersion}";
|
image = "linuxserver/prowlarr:${prowlarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "rcourtman/pulse:${pulseVersion}";
|
image = "rcourtman/pulse:${pulseVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/radarr:${radarrVersion}";
|
image = "linuxserver/radarr:${radarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "linuxserver/sonarr:${sonarrVersion}";
|
image = "linuxserver/sonarr:${sonarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}";
|
image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "tinymediamanager/tinymediamanager:${version}";
|
image = "tinymediamanager/tinymediamanager:${version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
mylib,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -11,14 +12,7 @@ in {
|
|||||||
image = "getwud/wud:${wudVersion}";
|
image = "getwud/wud:${wudVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = mylib.containers.mkDockerLogin config;
|
||||||
# Uses DockerHub by default
|
|
||||||
# registry = "";
|
|
||||||
|
|
||||||
# DockerHub Credentials
|
|
||||||
username = "christoph.urlacher@protonmail.com";
|
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -46,52 +46,13 @@
|
|||||||
useNetworkManager = false;
|
useNetworkManager = false;
|
||||||
|
|
||||||
networks = {
|
networks = {
|
||||||
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
"10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
||||||
# interface = "ens18";
|
interface = "ens18";
|
||||||
# ips = ["192.168.86.26/24" "fd00::1a/64"];
|
ips = ["192.168.86.26/24"];
|
||||||
# routers = ["192.168.86.5" "fd00::5"];
|
routers = ["192.168.86.5"]; # Don't add "fd00::5", rely on router advertisement instead
|
||||||
# nameservers = ["8.8.8.8" "2001:4860:4860::8888"]; # NOTE: Use reliable DNS for servers instead of 127.0.0.1
|
nameservers = ["8.8.8.8" "8.8.4.4" "2001:4860:4860::8888" "2001:4860:4860::8844"]; # NOTE: Use reliable DNS for servers instead of 127.0.0.1
|
||||||
# routable = true;
|
routable = true;
|
||||||
# };
|
extraAddresses = ["fd00::1a/64"]; # IPv6 ULA — declared without creating a route
|
||||||
|
|
||||||
# TODO: mylib.networking.mkStaticSystemdNetwork needs improvement to accomodate for this
|
|
||||||
"10-ether-1G" = rec {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# See man systemd.link, man systemd.netdev, man systemd.network
|
|
||||||
matchConfig = {
|
|
||||||
# This corresponds to the [MATCH] section
|
|
||||||
Name = "ens18"; # Match ethernet interface
|
|
||||||
};
|
|
||||||
|
|
||||||
# Static IP + DNS + Gateway
|
|
||||||
address = ["192.168.86.26/24"];
|
|
||||||
gateway = ["192.168.86.5"]; # Don't add "fd00::5", rely on router advertisement instead
|
|
||||||
dns = ["8.8.8.8" "8.8.4.4" "2001:4860:4860::8888" "2001:4860:4860::8844"];
|
|
||||||
routes = builtins.map (r: {Gateway = r;}) gateway;
|
|
||||||
|
|
||||||
# See man systemd.network
|
|
||||||
networkConfig = {
|
|
||||||
# This corresponds to the [NETWORK] section
|
|
||||||
DHCP = "no";
|
|
||||||
|
|
||||||
IPv6AcceptRA = "yes"; # Accept Router Advertisements
|
|
||||||
# MulticastDNS = "no";
|
|
||||||
# LLMNR = "no";
|
|
||||||
# LinkLocalAddressing = "ipv6";
|
|
||||||
};
|
|
||||||
|
|
||||||
addresses = [
|
|
||||||
{
|
|
||||||
# Don't add this to address, we don't want to create any routes with this
|
|
||||||
Address = "fd00::1a/64"; # IPv6 Unique-Local Address (ULA)
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
linkConfig = {
|
|
||||||
# This corresponds to the [LINK] section
|
|
||||||
RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user