Compare commits
165 Commits
master
...
db850552e3
| Author | SHA1 | Date | |
|---|---|---|---|
|
db850552e3
|
|||
|
63afac3d04
|
|||
|
645fc64ead
|
|||
|
6561d4c979
|
|||
|
f1ed339968
|
|||
|
50d14ecf83
|
|||
|
1cdc3f25e0
|
|||
|
9e62f755bb
|
|||
|
d0e6fe072a
|
|||
|
86ea11c8e8
|
|||
|
1adacf5e1e
|
|||
|
e53787deae
|
|||
|
efce5c6293
|
|||
|
6069a12e64
|
|||
|
91bd79a051
|
|||
|
9bec5f42b1
|
|||
|
602aa4cd56
|
|||
|
3573a705af
|
|||
|
615d886a98
|
|||
|
4416f39f0c
|
|||
|
0bb481c037
|
|||
|
98a3788f4f
|
|||
|
ac4b005f9b
|
|||
|
901f58a527
|
|||
|
9a5bc3e981
|
|||
|
fe69d39769
|
|||
|
2f675e96f0
|
|||
|
56512194ef
|
|||
|
d1a6aafed5
|
|||
|
6305d9ca2e
|
|||
|
887f7db0c7
|
|||
|
d8dbdbc5de
|
|||
|
4014ed0318
|
|||
|
87fa954937
|
|||
|
934644c5e2
|
|||
|
0bda035ccd
|
|||
|
6e999ffa02
|
|||
|
807388d032
|
|||
|
9b1a7c73e6
|
|||
|
da729f8c22
|
|||
|
d08d795adf
|
|||
|
ffc2516353
|
|||
|
135e1e5701
|
|||
|
5b2fc78889
|
|||
|
4cbe9885b2
|
|||
|
9b43074248
|
|||
|
be3f6baa17
|
|||
|
837233b552
|
|||
|
ca0c718f3b
|
|||
|
3c68574aea
|
|||
|
aa668d04d3
|
|||
|
d16b645078
|
|||
|
b71264b864
|
|||
|
6ed1882429
|
|||
|
952802d4f7
|
|||
|
53fc6eedc8
|
|||
|
2e0f378c9e
|
|||
|
abab1cf2b4
|
|||
|
ad3210f150
|
|||
|
afe74b8fa1
|
|||
|
8f5a9d753f
|
|||
|
d45a9946bb
|
|||
|
c0f8356205
|
|||
|
72a8dcb8d5
|
|||
|
da548f10bb
|
|||
|
9bfbbc0dc9
|
|||
|
26ac3a8e02
|
|||
|
632fcc3dab
|
|||
|
a204951964
|
|||
|
9aea533693
|
|||
|
a07499813d
|
|||
|
6e2a64a50c
|
|||
|
80d932838f
|
|||
|
4bed2e7021
|
|||
|
75ffcc5c6e
|
|||
|
cb14d79586
|
|||
|
9b41d5552e
|
|||
|
3d50b8fea7
|
|||
|
5aec2aa971
|
|||
|
b799d86823
|
|||
|
d505394753
|
|||
|
06cf86fa20
|
|||
|
a4272ea92c
|
|||
|
89739e3af0
|
|||
|
52a99db8e0
|
|||
|
7848fb7274
|
|||
|
397d1b014c
|
|||
|
7f1ce57994
|
|||
|
a1f495f138
|
|||
|
4e9003e0c5
|
|||
|
380e11edb2
|
|||
|
a2153c4418
|
|||
|
abdcbe2ce9
|
|||
|
fa286dce16
|
|||
|
c4454daab6
|
|||
|
a03c9d8227
|
|||
|
9db5d91da6
|
|||
|
72716230ea
|
|||
|
2919e797ed
|
|||
|
86d669c2ab
|
|||
|
77ac5b70b8
|
|||
|
54839be395
|
|||
|
714e3e0683
|
|||
|
a8d7d1e666
|
|||
|
40bcc14304
|
|||
|
fa5bd0eefd
|
|||
|
6182ada581
|
|||
|
4acddcec09
|
|||
|
5c14817464
|
|||
|
38920bd3d7
|
|||
|
b89934d13f
|
|||
|
734dfcadfc
|
|||
|
2c959fdc0c
|
|||
|
e00c4f49f5
|
|||
|
61131ca598
|
|||
|
9c1a39d699
|
|||
|
32de6e24b7
|
|||
|
78e554cc30
|
|||
|
f65617deed
|
|||
|
aa3a881d58
|
|||
|
7f99b73635
|
|||
|
c1360e5c2c
|
|||
|
ca9e66bc35
|
|||
|
eac705bdfb
|
|||
|
69beab4812
|
|||
|
515110ff7d
|
|||
|
9a9bffd637
|
|||
|
f1b269e3ee
|
|||
|
f09dee5ad8
|
|||
|
f246eacdb3
|
|||
|
b7e2bba8f0
|
|||
|
25ae0f4b85
|
|||
|
d12b247368
|
|||
|
25e9128875
|
|||
|
eee28f57fc
|
|||
|
ea03e2266f
|
|||
|
5e422d05c9
|
|||
|
eaa36cfce2
|
|||
|
572d0bfe9e
|
|||
|
385ca27f8c
|
|||
|
4c18fd8c8e
|
|||
|
bf0c55669c
|
|||
|
86a5e79079
|
|||
|
7d429a4720
|
|||
|
2e9a4b13d1
|
|||
|
73eeff9a0e
|
|||
|
d216a8018d
|
|||
|
b09d854e50
|
|||
|
ff39dd1df2
|
|||
|
98c520e0bd
|
|||
|
7e3d3ca4a5
|
|||
|
c8a76751f3
|
|||
|
12a10bee82
|
|||
|
767309885a
|
|||
|
6d360ed782
|
|||
|
ddccd51b5a
|
|||
|
1fef42e5d4
|
|||
|
0d20883f4f
|
|||
|
cec5ec5493
|
|||
|
5833dff19e
|
|||
|
7b4c2df7af
|
|||
|
1643f30906
|
|||
|
79c617cc91
|
|||
|
474a8badf4
|
|||
|
17368396cf
|
BIN
FastFetch.png
BIN
FastFetch.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 2.6 MiB |
BIN
NeoVim.png
BIN
NeoVim.png
Binary file not shown.
|
Before Width: | Height: | Size: 747 KiB |
172
README.md
172
README.md
@ -1,159 +1,43 @@
|
|||||||
# NixFlake
|
# NixOS Configuration
|
||||||
|
|
||||||
NixOS flake with [Niri](https://github.com/niri-wm/niri), [Waybar](https://github.com/Alexays/Waybar) for a lightweight desktop and [home-manager](https://github.com/nix-community/home-manager) for declarative `~/` configuration.
|
Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop.
|
||||||
|
|
||||||
## Screenshots
|

|
||||||
|

|
||||||
|
|
||||||

|
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
|
||||||
|
Alternatively, use `nh os switch` or `nh os boot`.
|
||||||
|
|
||||||

|
## NixFlake/system
|
||||||
|
|
||||||

|
Contains all the system configurations.
|
||||||
|
|
||||||
## Hosts
|
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
|
||||||
|
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
|
||||||
|
- System modules are located in `NixFlake/system/systemmodules`
|
||||||
|
- Hosted services are located in `NixFlake/system/services`
|
||||||
|
|
||||||
| Host | Type | GPU | Features |
|
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
||||||
|-|-|-|-|
|
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
||||||
| `nixinator` | Desktop (x86_64) | NVIDIA | [disko](https://github.com/nix-community/disko) partitioning, [lanzaboote](https://github.com/nix-community/lanzaboote) Secure Boot, [impermanence](https://github.com/nix-community/impermanence) opt-in state, [sops-nix](https://github.com/Mic92/sops-nix) secrets |
|
|
||||||
| `nixtop` | Laptop (x86_64) | Intel | Obsolete trash computer |
|
|
||||||
| `servenix` | Headless (x86_64) | NVIDIA | Jellyfin, Nextcloud, Gitea, ... |
|
|
||||||
| `thinknix` | Headless (x86_64) | - | AdGuard DNS, Nginx, ... |
|
|
||||||
| `darwinix` | macOS (aarch64) | - | nix-darwin with home-manager |
|
|
||||||
|
|
||||||
## Usage
|
## NixFlake/home
|
||||||
|
|
||||||
```bash
|
Contains all the home-manager configurations.
|
||||||
# Enter dev shell (provides helper utilities)
|
|
||||||
nix develop
|
|
||||||
|
|
||||||
# Rebuild system + user config together
|
- There is a common configuration for each user: `NixFlake/home/<username>/default.nix`
|
||||||
nh os switch
|
- There is a configuration for a single system of this user: `NixFlake/home/<username>/<hostname>/default.nix`
|
||||||
nh os boot
|
- Home-Manager modules are located in `NixFlake/home/homemodules`
|
||||||
|
|
||||||
# Or with nixos-rebuild
|
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
|
||||||
sudo nixos-rebuild switch --flake .#nixinator
|
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
|
||||||
```
|
|
||||||
|
|
||||||
## Info
|
## NixFlake/derivations
|
||||||
|
|
||||||
Home-manager runs as a NixOS module (not standalone). A single `nixos-rebuild switch` rebuilds both system and user configuration together.
|
Contains all the stuff I packaged.
|
||||||
|
Each derivation is loaded into `NixFlake/derivations/default.nix`.
|
||||||
|
|
||||||
### Components
|
## NixFlake/overlays
|
||||||
|
|
||||||
Per-host config consists of three layers:
|
Contains all overlays, e.g. package version overrides.
|
||||||
|
The `NixFlake/overlays/default.nix` imports all overlays and all derivations.
|
||||||
1. **Common Config**: `system/default.nix` (NixOS) / `home/christoph/default.nix` (home-manager)
|
It is then imported by the top-level `NixFlake/flake.nix`, to make everything available to the system/home configurations.
|
||||||
2. **Host Config**: `system/<hostname>/default.nix` (NixOS) / `home/christoph/<hostname>/default.nix` (home-manager)
|
|
||||||
3. **Hardware**: `system/<hostname>/hardware-configuration.nix`
|
|
||||||
|
|
||||||
### Modules
|
|
||||||
|
|
||||||
There are two module hierarchies (NixOS and home-manager modules):
|
|
||||||
|
|
||||||
```
|
|
||||||
system/systemmodules/<name>/ home/homemodules/<name>/
|
|
||||||
- options.nix # declares options - options.nix # declares options
|
|
||||||
- default.nix # implementation - default.nix # implementation
|
|
||||||
```
|
|
||||||
|
|
||||||
## Files
|
|
||||||
|
|
||||||
```
|
|
||||||
NixFlake/
|
|
||||||
├── flake.nix # flake entrypoint: inputs, outputs, host definitions
|
|
||||||
├── flake.lock # flake lockfile
|
|
||||||
├── shell.nix # dev shell (nix develop)
|
|
||||||
├── system/ # NixOS system configurations
|
|
||||||
│ ├── default.nix # global system defaults (all hosts)
|
|
||||||
│ ├── <hostname>/ # per-host overrides + hardware-config
|
|
||||||
│ ├── systemmodules/ # reusable system modules
|
|
||||||
│ └── services/ # OCI container services
|
|
||||||
├── home/ # home-manager user configuration
|
|
||||||
│ └── christoph/
|
|
||||||
│ ├── default.nix # global user defaults
|
|
||||||
│ ├── <hostname>/ # per-host user overrides
|
|
||||||
│ └── homemodules/ # reusable home-manager modules
|
|
||||||
├── lib/ # shared helpers
|
|
||||||
├── derivations/ # custom packages
|
|
||||||
├── overlays/ # package overrides
|
|
||||||
├── config/ # linked dotfiles
|
|
||||||
└── wallpapers/ # backgrounds
|
|
||||||
```
|
|
||||||
|
|
||||||
## System Modules
|
|
||||||
|
|
||||||
| Module | Description |
|
|
||||||
|--------|-------------|
|
|
||||||
| `bootloader` | systemd-boot, lanzaboote Secure Boot signing |
|
|
||||||
| `desktopportal` | xdg-desktop-portal backends (Niri, GTK) |
|
|
||||||
| `docker` | Docker / podman daemon config |
|
|
||||||
| `fonts` | System fonts and fontconfig |
|
|
||||||
| `impermanence` | Opt-in state persistence (wipes `/` on boot) |
|
|
||||||
| `mime` | MIME type associations |
|
|
||||||
| `network` | systemd-networkd wired/wireless config |
|
|
||||||
| `polkit` | Polkit rules for desktop users |
|
|
||||||
| `sops-nix` | Secrets decryption at boot |
|
|
||||||
|
|
||||||
## Home-Manager Modules
|
|
||||||
|
|
||||||
### Shell & Terminal
|
|
||||||
`fish` `terminal` `kitty` `tmux` `paths`
|
|
||||||
|
|
||||||
### Editors
|
|
||||||
`neovim` `vscode` `zed`
|
|
||||||
|
|
||||||
### Desktop / WM
|
|
||||||
`niri` `waybar` `rofi` `color` `fcitx`
|
|
||||||
|
|
||||||
### Media
|
|
||||||
`mpd` `rmpc` `cava` `beets` `jellyfin-tui`
|
|
||||||
|
|
||||||
### Browsers
|
|
||||||
`firefox` `qutebrowser`
|
|
||||||
|
|
||||||
### Tools
|
|
||||||
`git` `ssh` `bat` `btop` `fastfetch` `lazygit` `yazi` `zathura`
|
|
||||||
|
|
||||||
## Services
|
|
||||||
|
|
||||||
All server services run as OCI containers (podman). Each service is defined in `system/services/<name>.nix`.
|
|
||||||
|
|
||||||
| Service | Purpose |
|
|
||||||
|---------|---------|
|
|
||||||
| `adguard` | DNS ad blocking |
|
|
||||||
| `authelia` | SSO |
|
|
||||||
| `fileflows` | Media processing |
|
|
||||||
| `gitea` | Git server |
|
|
||||||
| `immich` | Photo cloud |
|
|
||||||
| `jellyfin` | Streaming server |
|
|
||||||
| `kiwix` | Offline mirrors |
|
|
||||||
| `kopia` | Docker volume backup |
|
|
||||||
| `nextcloud` | File sync |
|
|
||||||
| `nginx-proxy-manager` | Reverse proxy with Let's Encrypt |
|
|
||||||
| `ntfy` | Push notification server |
|
|
||||||
| `paperless` | Document management |
|
|
||||||
| `portainer` | Container status monitor |
|
|
||||||
| `teamspeak` | Voice chat server |
|
|
||||||
| `tinymediamanager` | Media metadata management |
|
|
||||||
|
|
||||||
## Overlays
|
|
||||||
|
|
||||||
Package modifications live in `overlays/default.nix`.
|
|
||||||
|
|
||||||
## Secrets
|
|
||||||
|
|
||||||
Secrets are managed with sops-nix. Public age keys are stored in `flake.nix` under `publicKeys`. Encrypted `.yaml`/`.json` files are referenced via `sops.secrets.<name>`. Decryption happens at activation time.
|
|
||||||
|
|
||||||
## Shared Helpers (`lib/`)
|
|
||||||
|
|
||||||
| File | Purpose |
|
|
||||||
|------|---------|
|
|
||||||
| `nixos.nix` | Host config builders (NixOS + darwin) |
|
|
||||||
| `modules.nix` | Option helpers |
|
|
||||||
| `networking.nix` | systemd-networkd config generators |
|
|
||||||
| `generators.nix` | Lua code generation |
|
|
||||||
| `containers.nix` | OCI container helpers for services |
|
|
||||||
| `color.nix` | Color utilities |
|
|
||||||
| `rofi.nix` | Rofi menu helpers |
|
|
||||||
|
|
||||||
Available to all modules as `mylib` (injected via special args).
|
|
||||||
|
|||||||
@ -98,65 +98,38 @@ rec {
|
|||||||
buildDebug = mkBuildScript "Debug";
|
buildDebug = mkBuildScript "Debug";
|
||||||
buildRelease = mkBuildScript "Release";
|
buildRelease = mkBuildScript "Release";
|
||||||
|
|
||||||
# Add project-local fish abbrs here
|
# Use this to specify commands that should be ran after entering fish shell
|
||||||
abbrs = {
|
initProjectShell = pkgs.writers.writeFish "init-shell.fish" ''
|
||||||
|
echo "Entering \"${description}\" environment..."
|
||||||
|
|
||||||
|
# Determine the project root, used e.g. in cmake scripts
|
||||||
|
set -g -x FLAKE_PROJECT_ROOT (git rev-parse --show-toplevel)
|
||||||
|
|
||||||
# Rust Bevy:
|
# Rust Bevy:
|
||||||
# build-release-windows = "CARGO_FEATURE_PURE=1 cargo xwin build --release --target x86_64-pc-windows-msvc";
|
# abbr -a build-release-windows "CARGO_FEATURE_PURE=1 cargo xwin build --release --target x86_64-pc-windows-msvc"
|
||||||
|
|
||||||
# C/C++:
|
# C/C++:
|
||||||
# cmake-debug = "${cmakeDebug}";
|
# abbr -a cmake-debug "${cmakeDebug}"
|
||||||
# cmake-release = "${cmakeRelease}";
|
# abbr -a cmake-release "${cmakeRelease}"
|
||||||
# build-debug = "${buildDebug}";
|
# abbr -a build-debug "${buildDebug}"
|
||||||
# build-release = "${buildRelease}";
|
# abbr -a build-release "${buildRelease}"
|
||||||
|
|
||||||
# Clojure:
|
# Clojure:
|
||||||
# clojure-deps = "deps-lock --lein";
|
# abbr -a clojure-deps "deps-lock --lein"
|
||||||
|
|
||||||
# Python:
|
# Python:
|
||||||
# run = "python ./app/main.py";
|
# abbr -a run "python ./app/main.py"
|
||||||
# profile = "py-spy record -o profile.svg -- python ./app/main.py && firefox profile.svg";
|
# abbr -a profile "py-spy record -o profile.svg -- python ./app/main.py && firefox profile.svg"
|
||||||
# ptop = "py-spy top -- python ./app/main.py";
|
# abbr -a ptop "py-spy top -- python ./app/main.py"
|
||||||
};
|
|
||||||
|
|
||||||
eraseAbbr = name: value: ''abbr --erase ${name} 2>/dev/null'';
|
|
||||||
createAbbr = name: value: ''abbr -a ${name} "${value}"'';
|
|
||||||
|
|
||||||
# This will be sourced by the global fish config if INIT_PROJECT_SHELL gets unset
|
|
||||||
unloadProjectShell = pkgs.writers.writeFish "unload-shell.fish" ''
|
|
||||||
echo "Unloading \"${description}\" environment..."
|
|
||||||
|
|
||||||
${builtins.concatStringsSep "\n" (lib.mapAttrsToList eraseAbbr abbrs)}
|
|
||||||
'';
|
|
||||||
|
|
||||||
# This will be sourced by the global fish config if INIT_PROJECT_SHELL gets set
|
|
||||||
initProjectShell = pkgs.writers.writeFish "init-shell.fish" ''
|
|
||||||
# Unload just in case, to not have redefinition errors
|
|
||||||
source ${unloadProjectShell}
|
|
||||||
|
|
||||||
echo "Sourcing \"${description}\" environment..."
|
|
||||||
|
|
||||||
${builtins.concatStringsSep "\n" (lib.mapAttrsToList createAbbr abbrs)}
|
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
builtins.concatStringsSep "\n" [
|
builtins.concatStringsSep "\n" [
|
||||||
# Launch into pure fish shell
|
# Launch into pure fish shell
|
||||||
''
|
''
|
||||||
# Determine the project root, used e.g. in cmake scripts
|
exec "$(type -p fish)" -C "source ${initProjectShell} && abbr -a menu '${pkgs.bat}/bin/bat "${initProjectShell}"'"
|
||||||
export FLAKE_PROJECT_ROOT="$(git rev-parse --show-toplevel)"
|
|
||||||
|
|
||||||
# Can't do the "exec" with nix-direnv
|
|
||||||
# - The "exec fish" would call direnv again => Infinite loop
|
|
||||||
# - The shellHook is Bash/POSIX, so fish syntax doesn't work
|
|
||||||
|
|
||||||
# Use this for "nix develop" without direnv
|
|
||||||
# exec "$(type -p fish)" -C "source ${initProjectShell} && abbr -a menu '${pkgs.bat}/bin/bat "${initProjectShell}"'"
|
|
||||||
|
|
||||||
# Use this for direnv without "nix develop"
|
|
||||||
export INIT_PROJECT_SHELL="${initProjectShell}"
|
|
||||||
export UNLOAD_PROJECT_SHELL="${unloadProjectShell}"
|
|
||||||
''
|
''
|
||||||
|
|
||||||
# Qt: Launch into wrapped fish shell (direnv incompatible)
|
# Qt: Launch into wrapped fish shell
|
||||||
# https://nixos.org/manual/nixpkgs/stable/#sec-language-qt
|
# https://nixos.org/manual/nixpkgs/stable/#sec-language-qt
|
||||||
# ''
|
# ''
|
||||||
# fishdir=$(mktemp -d)
|
# fishdir=$(mktemp -d)
|
||||||
|
|||||||
@ -238,11 +238,11 @@ $ mode: echo -e "--export \tExport public key\n--export-secret-keys\t
|
|||||||
|
|
||||||
% sops
|
% sops
|
||||||
# Edit secrets.yaml
|
# Edit secrets.yaml
|
||||||
sops ~/NixFlake/system/systemmodules/sops-nix/secrets.yaml
|
sops ~/NixFlake/system/modules/sops-nix/secrets.yaml
|
||||||
|
|
||||||
% sops
|
% sops
|
||||||
# Rekey secrets.yaml
|
# Rekey secrets.yaml
|
||||||
sops updatekeys ~/NixFlake/system/systemmodules/sops-nix/secrets.yaml
|
sops updatekeys ~/NixFlake/system/modules/sops-nix/secrets.yaml
|
||||||
|
|
||||||
% ssh
|
% ssh
|
||||||
# Generate a new SSH key
|
# Generate a new SSH key
|
||||||
@ -308,33 +308,27 @@ mkdir -p "<name>" && cd "<name>" && spotdl --client-id (cat /home/christoph/.sec
|
|||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Create a slow motion version of a video with interpolated/blended frames
|
# Create a slow motion version of a video with interpolated/blended frames
|
||||||
ffmpeg -i <input> -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=<doublefps>',setpts=2*PTS" output.mp4
|
ffmpeg -i "<input>" -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=<doublefps>',setpts=2*PTS" output.mp4
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Detect black bar dimensions automatically by looking at the first 10 frames
|
# Detect black bar dimensions automatically by looking at the first 10 frames
|
||||||
ffmpeg -i <input> -vframes 10 -vf cropdetect -f null -
|
ffmpeg -i "<input>" -vframes 10 -vf cropdetect -f null -
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Preview video with applied crop settings
|
# Preview video with applied crop settings
|
||||||
ffplay -vf crop=<width>:<height>:<x>:<y> <input>
|
ffplay -vf crop=<width>:<height>:<x>:<y> "<input>"
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Re-encode the video with applied crop settings
|
# Re-encode the video with applied crop settings
|
||||||
ffmpeg -i <input> -vf crop=<width>:<height>:<x>:<y> -c:a copy output.mp4
|
ffmpeg -i "<input>" -vf crop=<width>:<height>:<x>:<y> -c:a copy output.mp4
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Reencode and compress the video using the h265 codec
|
# Reencode and compress the video using the h265 codec
|
||||||
ffmpeg -i <input> -vcodec libx265 -crf <quality> out_<input>
|
ffmpeg -i "<input>" -vcodec libx265 -crf <quality> "out_<input>"
|
||||||
$ input: eza -f -1
|
|
||||||
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
|
||||||
|
|
||||||
% ffmpeg
|
|
||||||
# Reencode, compress and scale the video using the h265 codec
|
|
||||||
ffmpeg -i <input> -vcodec libx265 -crf <quality> -vf scale=<width>:-2,setsar=1:1 out_<input>
|
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
.bordered-images img {
|
|
||||||
border-radius: var(--callout-radius);
|
|
||||||
/* border-style: solid; */
|
|
||||||
/* border-width: var(--callout-border-width); */
|
|
||||||
/* border-color: var(--color-purple-rgb); */
|
|
||||||
/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
|
|
||||||
|
|
||||||
/* Background color so PNGs with transparent backgrounds don't look weird */
|
|
||||||
/* background-color: var(--background-secondary); */
|
|
||||||
}
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
.center-images img {
|
img[alt*="center"] {
|
||||||
display: block !important;
|
display: block;
|
||||||
margin-left: auto !important;
|
margin-left: auto;
|
||||||
margin-right: auto !important;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
.fullwidth-images img {
|
|
||||||
width: 100% !important;
|
|
||||||
height: auto !important;
|
|
||||||
}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
.justify-text.cm-s-obsidian,
|
|
||||||
.justify-text.markdown-preview-view {
|
|
||||||
text-align: justify;
|
|
||||||
hyphens: auto;
|
|
||||||
}
|
|
||||||
@ -34,12 +34,12 @@
|
|||||||
in
|
in
|
||||||
pythonPkgs.buildPythonApplication rec {
|
pythonPkgs.buildPythonApplication rec {
|
||||||
pname = "tiddl";
|
pname = "tiddl";
|
||||||
version = "3.4.3";
|
version = "3.2.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = pythonPkgs.fetchPypi {
|
src = pythonPkgs.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-45KHNS1IP59DsH8i2uQ7sua6T21vW/Yw1PQg55jzLGs=";
|
sha256 = "sha256-uLkGyIScYPqFgQdPAOYJDJG0jp+nDAwIl2kFkaJZFco=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontCheckRuntimeDeps = true;
|
dontCheckRuntimeDeps = true;
|
||||||
|
|||||||
275
flake.lock
generated
275
flake.lock
generated
@ -60,11 +60,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781164160,
|
"lastModified": 1773079031,
|
||||||
"narHash": "sha256-dxo3aPnfaQJt9K/3NhgKfu2Q9B42z4d4Or9Izoug+68=",
|
"narHash": "sha256-RvCzINnVISBT3d0F1DoIcQFbQsbRJISW9qZeKTzmNaA=",
|
||||||
"owner": "abenz1267",
|
"owner": "abenz1267",
|
||||||
"repo": "elephant",
|
"repo": "elephant",
|
||||||
"rev": "3296842820d04d5ec774afc7528492fcbb3c01f2",
|
"rev": "53afe39cef252010f7c55bd33c5bae6dd50dcf0c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -96,6 +96,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"firefox-addons": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"textfox",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"dir": "pkgs/firefox-addons",
|
||||||
|
"lastModified": 1754512310,
|
||||||
|
"narHash": "sha256-gXE5lTYMOhpDJo+siLXW/3BzySPmLMD12GVB1QFVbyw=",
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nur-expressions",
|
||||||
|
"rev": "2008f9aa7a5ccde48bfc1de5a919be5898da09c2",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "pkgs/firefox-addons",
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nur-expressions",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -170,11 +193,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778716662,
|
"lastModified": 1769996383,
|
||||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -263,15 +286,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781168557,
|
"lastModified": 1772972630,
|
||||||
"narHash": "sha256-LOnLQ2tpYF9gqIDDr3+j3DbpJJr/QCH6zPRT2GzEUOE=",
|
"narHash": "sha256-mUJxsNOrBMNOUJzN0pfdVJ1r2pxeqm9gI/yIKXzVVbk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "6358ff76821101c178e3ab4919a62799bfe3652e",
|
"rev": "3966ce987e1a9a164205ac8259a5fe8a64528f72",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -287,11 +307,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781305496,
|
"lastModified": 1773332277,
|
||||||
"narHash": "sha256-g8Vv4Qfc7n+lgov97REu3X6BeJtvYY0hlSUZR1GrGQQ=",
|
"narHash": "sha256-1V+wRrZD9Sw12AQBUWk9CR+XhDZQ8q6yBE0S3Wjbd1M=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c87a39aa979acc4848016d2220c6238390d84779",
|
"rev": "4aeef1941f862fe3a70d1b8264b4e289358c2325",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -323,14 +343,14 @@
|
|||||||
},
|
},
|
||||||
"hytale-launcher": {
|
"hytale-launcher": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781228795,
|
"lastModified": 1773947929,
|
||||||
"narHash": "sha256-OSofuO5j7FLg2R7c9YQdK5epMqkQLucExcDNF7dqCMo=",
|
"narHash": "sha256-flpkAPM3zpMpWoqvVkMTo3ptuBF0QKNi6Raa8rnIq7o=",
|
||||||
"owner": "JPyke3",
|
"owner": "JPyke3",
|
||||||
"repo": "hytale-launcher-nix",
|
"repo": "hytale-launcher-nix",
|
||||||
"rev": "efe21e31eb63d6db1a104c14bbb437ae5d03f73b",
|
"rev": "a8d0a974b187f0997c03c23000dea552194edf39",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -342,7 +362,7 @@
|
|||||||
"impermanence": {
|
"impermanence": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769548169,
|
"lastModified": 1769548169,
|
||||||
@ -392,11 +412,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776677689,
|
"lastModified": 1773343116,
|
||||||
"narHash": "sha256-wzdMqyyNkEPEfuCqSTzaz3ikH3+Rm7oWILNcURNax34=",
|
"narHash": "sha256-5wnd9z3atP264FMin5MNq4ZaOR/2SYYspFXw8cecrKA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "768d26aa3fe80949bd64f62d6c5b35455c8cb768",
|
"rev": "6248c10a251c5f2628389b982919ba4a8125d71e",
|
||||||
"revCount": 140,
|
"revCount": 139,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.local.chriphost.de/christoph/cpp-masssprings"
|
"url": "https://gitea.local.chriphost.de/christoph/cpp-masssprings"
|
||||||
},
|
},
|
||||||
@ -408,7 +428,7 @@
|
|||||||
"naersk": {
|
"naersk": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fenix": "fenix",
|
"fenix": "fenix",
|
||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763384566,
|
"lastModified": 1763384566,
|
||||||
@ -436,11 +456,11 @@
|
|||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781234038,
|
"lastModified": 1773329386,
|
||||||
"narHash": "sha256-jo4a47qDgsx1F1i0MtHZl12FfzqKJOES25vbm0ZUxeI=",
|
"narHash": "sha256-Xoy4j0NKRrZEAkiFxtTKTsmtUumpvjh3ievyat00eA8=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "eb5789cba8d37802d330df5a13c691622c83121f",
|
"rev": "815e692569fbb01701770a49ad2fe942cec7f431",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -469,11 +489,11 @@
|
|||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780938415,
|
"lastModified": 1773130184,
|
||||||
"narHash": "sha256-QHyIMGSbCQW8d5qbOrMsm6gem10bO3Au2YLa3alJfHo=",
|
"narHash": "sha256-3bwx4WqCB06yfQIGB+OgIckOkEDyKxiTD5pOo4Xz2rI=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "6f1a2c5f0e8274223d4204b1f8d6f7f91538967e",
|
"rev": "b07bde3ee82dd73115e6b949e4f3f63695da35ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -486,14 +506,14 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778849865,
|
"lastModified": 1771150922,
|
||||||
"narHash": "sha256-HiVhuhD7Fvfje3iw4slmtcCckz/LbjLITa4g/iTEbw0=",
|
"narHash": "sha256-+oQJun4CFDlOQRocbZpqQDj7agoy56/4ZjT1oUR7NOs=",
|
||||||
"owner": "thiagokokada",
|
"owner": "thiagokokada",
|
||||||
"repo": "nix-alien",
|
"repo": "nix-alien",
|
||||||
"rev": "1bb49f5aea63e95a3cf9c4b91f9f1331fef7a52b",
|
"rev": "96045e886ba0dd45b27590e7c0c6e77bbb54033d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -509,11 +529,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781242433,
|
"lastModified": 1773000227,
|
||||||
"narHash": "sha256-bchLZZ3sRn740zyvD2icZSnNoTaanN0nw7l6fjVXO+E=",
|
"narHash": "sha256-zm3ftUQw0MPumYi91HovoGhgyZBlM4o3Zy0LhPNwzXE=",
|
||||||
"owner": "nix-darwin",
|
"owner": "nix-darwin",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "aabb2037edfc0f210723b72cd5f528aab5dd3f0b",
|
"rev": "da529ac9e46f25ed5616fd634079a5f3c579135f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -547,11 +567,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778393439,
|
"lastModified": 1771130777,
|
||||||
"narHash": "sha256-mOtQxUjtKaPHLeoLOY/YEDctmud1X9KwJr4kE1MJ3Wc=",
|
"narHash": "sha256-UIKOwG0D9XVIJfNWg6+gENAvQP+7LO46eO0Jpe+ItJ0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "01466c414c7357ae2ce32be4a272a7c69e94ab5f",
|
"rev": "efec7aaad8d43f8e5194df46a007456093c40f88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -578,11 +598,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780952837,
|
"lastModified": 1773222311,
|
||||||
"narHash": "sha256-Fwd1+spDtQ0hDyBwme6ufG3n4mY0UrjjFdYHv+G/Hds=",
|
"narHash": "sha256-BHoB/XpbqoZkVYZCfXJXfkR+GXFqwb/4zbWnOr2cRcU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e820eb4a444b46a19b2e03e8dfd2359439ff30fe",
|
"rev": "0590cd39f728e129122770c029970378a79d076a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -594,11 +614,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780952837,
|
"lastModified": 1773814637,
|
||||||
"narHash": "sha256-Fwd1+spDtQ0hDyBwme6ufG3n4mY0UrjjFdYHv+G/Hds=",
|
"narHash": "sha256-GNU+ooRmrHLfjlMsKdn0prEKVa0faVanm0jrgu1J/gY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e820eb4a444b46a19b2e03e8dfd2359439ff30fe",
|
"rev": "fea3b367d61c1a6592bc47c72f40a9f3e6a53e96",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -608,22 +628,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_10": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775710090,
|
|
||||||
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764242076,
|
"lastModified": 1764242076,
|
||||||
@ -642,24 +646,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767892417,
|
"lastModified": 1773821835,
|
||||||
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
|
"narHash": "sha256-TJ3lSQtW0E2JrznGVm8hOQGVpXjJyXY2guAxku2O9A4=",
|
||||||
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781074563,
|
|
||||||
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=",
|
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca",
|
"rev": "b40629efe5d6ec48dd1efba650c797ddbd39ace0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -669,7 +660,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768564909,
|
"lastModified": 1768564909,
|
||||||
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
@ -685,13 +676,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778443072,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -701,39 +692,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773122722,
|
||||||
|
"narHash": "sha256-FIqHByVqxCprNjor1NqF80F2QQoiiyqanNNefdlvOg4=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "62dc67aa6a52b4364dd75994ec00b51fbf474e50",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_7": {
|
"nixpkgs_7": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781074563,
|
|
||||||
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_8": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1780336545,
|
|
||||||
"narHash": "sha256-vhVhuXzFrIOfcssC/9hDHx7MHzDKjF3keHuREOQqQiQ=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "4df1b885d76a54e1aa1a318f8d16fd6005b6401f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_9": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752077645,
|
"lastModified": 1752077645,
|
||||||
"narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=",
|
"narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=",
|
||||||
@ -749,18 +724,36 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_8": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768564909,
|
||||||
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": "nixpkgs_8",
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"systems": "systems_3"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781287460,
|
"lastModified": 1772402258,
|
||||||
"narHash": "sha256-9hXtN4my7eBqHRVQ/t6FQZ4YqZ1KG6SsKSG4Hdtr+i0=",
|
"narHash": "sha256-3DmCFOdmbkFML1/G9gj8Wb+rCCZFPOQtNoMCpqOF8SA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "f2029d9a26266eb67f46b0c79bd0a3713839a57a",
|
"rev": "21ae25e13b01d3b4cdc750b5f9e7bad68b150c10",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -800,11 +793,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781349989,
|
"lastModified": 1773339783,
|
||||||
"narHash": "sha256-PTgbtYdDqSzfANBCI8g0iA5DdMGr5imJuWUH1w0RmWY=",
|
"narHash": "sha256-07iRHomuUvJ7Mmp+F7qo68xIb+y3gy0o/B7kuR1K2Qc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "6b2f93e70e526d09559f73dfc3760d489a5504bf",
|
"rev": "1a4ca0d650fbfd4c58e1b1c2b153151fec77d6b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -854,7 +847,7 @@
|
|||||||
"nix-alien": "nix-alien",
|
"nix-alien": "nix-alien",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs_7",
|
"nixpkgs": "nixpkgs_6",
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2",
|
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nps": "nps",
|
"nps": "nps",
|
||||||
@ -909,11 +902,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780547341,
|
"lastModified": 1773096132,
|
||||||
"narHash": "sha256-Gq8KNx5A7hBB3uGJaj6eQfLDIz5YdLu92gqBcvHvoUo=",
|
"narHash": "sha256-M3zEnq9OElB7zqc+mjgPlByPm1O5t2fbUrH3t/Hm5Ag=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "9ed65852b6257fbeae4355bc24ecfea307ca759a",
|
"rev": "d1ff3b1034d5bab5d7d8086a7803c5a5968cd784",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -954,16 +947,15 @@
|
|||||||
},
|
},
|
||||||
"systems_3": {
|
"systems_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774449309,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-brhZ8DmuGtzkCYHJg4HEd602amKm89Y9ytsFZ5uWD1w=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"rev": "c29398b59d2048c4ab79345812849c9bd15e9150",
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"ref": "future-26.11",
|
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -1000,16 +992,17 @@
|
|||||||
},
|
},
|
||||||
"textfox": {
|
"textfox": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"firefox-addons": "firefox-addons",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780405768,
|
"lastModified": 1773044834,
|
||||||
"narHash": "sha256-WhPHaupeq5yWP53anFH6vr/ZMQQtAYGtpgUhzqWx9Ws=",
|
"narHash": "sha256-R2u3z09DuUbSoWClASPUqKXQG/QZYlBsiy8vYXrJ2VU=",
|
||||||
"owner": "adriankarlen",
|
"owner": "adriankarlen",
|
||||||
"repo": "textfox",
|
"repo": "textfox",
|
||||||
"rev": "d6895da75f10fa17f1b637759aec3d84818b20e2",
|
"rev": "0b8873d30db55a94e9e0dd934405dcac5e4d8a73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1023,15 +1016,15 @@
|
|||||||
"elephant": [
|
"elephant": [
|
||||||
"elephant"
|
"elephant"
|
||||||
],
|
],
|
||||||
"nixpkgs": "nixpkgs_10",
|
"nixpkgs": "nixpkgs_8",
|
||||||
"systems": "systems_5"
|
"systems": "systems_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781164128,
|
"lastModified": 1773675699,
|
||||||
"narHash": "sha256-xPcYrHdDXWykIi5/XXkLvliBArRnfzvs+atB9El1qhI=",
|
"narHash": "sha256-GrormZ2KxchtCLuO90+5fioEQmlUCKBIil0Mzr9w0Iw=",
|
||||||
"owner": "abenz1267",
|
"owner": "abenz1267",
|
||||||
"repo": "walker",
|
"repo": "walker",
|
||||||
"rev": "aa1e4b7d59237e8c43dde58636bae476f23d9bfb",
|
"rev": "d2702235710da3d7daf55c912ca7534261cf20f5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1060,11 +1053,11 @@
|
|||||||
"xwayland-satellite-unstable": {
|
"xwayland-satellite-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781226823,
|
"lastModified": 1772429643,
|
||||||
"narHash": "sha256-28696iIw8uE0ZUyFTtzhEM8xMh85clCYypMxkvUi+sc=",
|
"narHash": "sha256-M+bAeCCcjBnVk6w/4dIVvXvpJwOKnXjwi/lDbaN6Yws=",
|
||||||
"owner": "Supreeeme",
|
"owner": "Supreeeme",
|
||||||
"repo": "xwayland-satellite",
|
"repo": "xwayland-satellite",
|
||||||
"rev": "8575d0ef55d70f9b4c46b6bffb3accf912217e1e",
|
"rev": "10f985b84cdbcc3bbf35b3e7e43d1b2a84fa9ce2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
13
flake.nix
13
flake.nix
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
# NeoVim <3
|
# NeoVim <3
|
||||||
nixvim.url = "github:nix-community/nixvim";
|
nixvim.url = "github:nix-community/nixvim";
|
||||||
# nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Emacs nightly
|
# Emacs nightly
|
||||||
# emacs-overlay.url = "github:nix-community/emacs-overlay";
|
# emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
@ -78,10 +78,6 @@
|
|||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
# nix-flatpak.inputs.nixpkgs.follows = "nixpkgs"; # nix-flatpak doesn't have this
|
# nix-flatpak.inputs.nixpkgs.follows = "nixpkgs"; # nix-flatpak doesn't have this
|
||||||
|
|
||||||
# Instant Direnv (load environment in background)
|
|
||||||
# direnv-instant.url = "github:Mic92/direnv-instant";
|
|
||||||
# direnv-instant.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# Realtime audio
|
# Realtime audio
|
||||||
# musnix.url = "github:musnix/musnix";
|
# musnix.url = "github:musnix/musnix";
|
||||||
# musnix.inputs.nixpkgs.follows = "nixpkgs";
|
# musnix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -142,6 +138,7 @@
|
|||||||
inputs.nur.overlays.default
|
inputs.nur.overlays.default
|
||||||
inputs.niri.overlays.niri
|
inputs.niri.overlays.niri
|
||||||
# inputs.emacs-overlay.overlay
|
# inputs.emacs-overlay.overlay
|
||||||
|
# inputs.comfyui-nix.overlays.default
|
||||||
|
|
||||||
# All my own overlays (derivations + modifications)
|
# All my own overlays (derivations + modifications)
|
||||||
(import ./overlays {inherit inputs nixpkgs pkgs-stable;})
|
(import ./overlays {inherit inputs nixpkgs pkgs-stable;})
|
||||||
@ -224,9 +221,7 @@
|
|||||||
hostname = "darwinix";
|
hostname = "darwinix";
|
||||||
username = "christoph";
|
username = "christoph";
|
||||||
headless = false;
|
headless = false;
|
||||||
extraModules = [
|
extraModules = [];
|
||||||
inputs.sops-nix.darwinModules.sops
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -252,6 +247,8 @@
|
|||||||
extraModules =
|
extraModules =
|
||||||
[
|
[
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
|
# inputs.nixified-ai.nixosModules.comfyui
|
||||||
|
# inputs.comfyui-nix.nixosModules.default
|
||||||
]
|
]
|
||||||
++ commonModules;
|
++ commonModules;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -8,7 +8,9 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = {
|
config = let
|
||||||
|
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";
|
||||||
@ -25,8 +27,26 @@
|
|||||||
font = "MonoLisa Alt Script";
|
font = "MonoLisa Alt Script";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.enable = true;
|
fish.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 = {
|
||||||
@ -42,13 +62,341 @@
|
|||||||
TERMINAL = "kitty";
|
TERMINAL = "kitty";
|
||||||
};
|
};
|
||||||
|
|
||||||
# packages = with pkgs; []; # Configured in homemodules/packages
|
packages = with pkgs; [
|
||||||
|
(ripgrep.override {withPCRE2 = true;})
|
||||||
|
gdu
|
||||||
|
duf
|
||||||
|
sd
|
||||||
|
fclones
|
||||||
|
tealdeer
|
||||||
|
killall
|
||||||
|
atool
|
||||||
|
exiftool
|
||||||
|
ouch
|
||||||
|
ffmpegthumbnailer
|
||||||
|
mediainfo
|
||||||
|
file
|
||||||
|
unrar
|
||||||
|
p7zip
|
||||||
|
unzip
|
||||||
|
progress
|
||||||
|
tokei
|
||||||
|
nix-search-tv
|
||||||
|
nix-tree
|
||||||
|
just
|
||||||
|
|
||||||
|
ffmpeg-full
|
||||||
|
imagemagick
|
||||||
|
|
||||||
|
poppler-utils
|
||||||
|
pdf2svg
|
||||||
|
pandoc
|
||||||
|
|
||||||
|
dig
|
||||||
|
tcpdump
|
||||||
|
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";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {};
|
# TODO: Deduplicate with other configs
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
|
||||||
services = {};
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
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,7 +34,8 @@ in
|
|||||||
|
|
||||||
homemodules = {
|
homemodules = {
|
||||||
beets.enable = !headless;
|
beets.enable = !headless;
|
||||||
cava.enable = !headless;
|
|
||||||
|
btop.enable = true;
|
||||||
|
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = !headless;
|
enable = !headless;
|
||||||
@ -77,15 +78,37 @@ 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;
|
|
||||||
terminal.enable = true;
|
rofi = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
waybar.enable = !headless;
|
waybar.enable = !headless;
|
||||||
|
yazi.enable = true;
|
||||||
zathura.enable = !headless;
|
zathura.enable = !headless;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -247,13 +270,374 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Add stuff for your user as you see fit:
|
# Add stuff for your user as you see fit:
|
||||||
# packages = with pkgs; []; # Configured in homemodules/packages
|
# TODO: Make the headless installations smaller. Don't install stuff here if !headless but in nixinator config.
|
||||||
|
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 = {
|
||||||
@ -281,6 +665,11 @@ 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;
|
||||||
@ -310,6 +699,92 @@ 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 = {
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
nixosConfig,
|
nixosConfig,
|
||||||
config,
|
config,
|
||||||
hostname,
|
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
username,
|
username,
|
||||||
@ -19,212 +18,6 @@
|
|||||||
fcitx.enable = true;
|
fcitx.enable = true;
|
||||||
|
|
||||||
waybar.monitors = ["DP-1" "DP-2"];
|
waybar.monitors = ["DP-1" "DP-2"];
|
||||||
vscode.enable = true;
|
|
||||||
zed.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
claude-code = {
|
|
||||||
enable = true;
|
|
||||||
enableMcpIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
mcp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
nixos = {
|
|
||||||
command = "uvx";
|
|
||||||
args = ["mcp-nixos"];
|
|
||||||
};
|
|
||||||
svelte = {
|
|
||||||
# claude mcp add -t stdio -s [scope] svelte -- npx -y @sveltejs/mcp
|
|
||||||
command = "npx";
|
|
||||||
args = ["-y" "@sveltejs/mcp"];
|
|
||||||
type = "stdio";
|
|
||||||
};
|
|
||||||
shadcn = {
|
|
||||||
# npx shadcn@latest mcp init --client claude
|
|
||||||
command = "npx";
|
|
||||||
args = ["-y" "shadcn@latest" "mcp"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
opencode = {
|
|
||||||
enable = true;
|
|
||||||
enableMcpIntegration = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
# opencode-claude-auth # Installed using npm
|
|
||||||
];
|
|
||||||
|
|
||||||
# Writes opencode.json
|
|
||||||
settings = {
|
|
||||||
attachment = {
|
|
||||||
image = {
|
|
||||||
auto_resize = true;
|
|
||||||
max_width = 2000;
|
|
||||||
max_height = 2000;
|
|
||||||
max_base64_bytes = 5242880;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
autoupdate = false;
|
|
||||||
compaction = {
|
|
||||||
auto = true;
|
|
||||||
prune = true;
|
|
||||||
reserved = 10000;
|
|
||||||
};
|
|
||||||
default_agent = "plan";
|
|
||||||
enabled_providers = [
|
|
||||||
"opencode"
|
|
||||||
"opencode-go"
|
|
||||||
"anthropic"
|
|
||||||
];
|
|
||||||
formatter = {
|
|
||||||
nixfmt = {
|
|
||||||
disabled = true;
|
|
||||||
};
|
|
||||||
alejandra = {
|
|
||||||
command = ["alejandra" "$FILE"];
|
|
||||||
extensions = [".nix"];
|
|
||||||
};
|
|
||||||
perltidy = {
|
|
||||||
command = ["perltidy" "$FILE"];
|
|
||||||
extensions = [".pl"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lsp = {
|
|
||||||
nixd = {
|
|
||||||
command = ["nixd"];
|
|
||||||
extensions = [".nix"];
|
|
||||||
initialization = {
|
|
||||||
preferences = {
|
|
||||||
nixd = {
|
|
||||||
nixpkgs = {expr = "import <nixpkgs> {}";};
|
|
||||||
options = {
|
|
||||||
nixos = {expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.${hostname}.options";};
|
|
||||||
home-manager = {expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.\"${hostname}\".options.home-manager.users.type.getSubOptions []";};
|
|
||||||
};
|
|
||||||
diagnostic = {
|
|
||||||
suppress = ["sema-escaping-with" "var-bind-to-this" "escaping-this-with"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
perlnavigator = {
|
|
||||||
command = ["perlnavigator"];
|
|
||||||
extensions = [".pl"];
|
|
||||||
initialization = {
|
|
||||||
preferences = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# perlpls = {
|
|
||||||
# command = ["pls"];
|
|
||||||
# extensions = [".pl"];
|
|
||||||
# initialization = {
|
|
||||||
# preferences = {
|
|
||||||
# perl = {
|
|
||||||
# perlcritic = {enabled = false;};
|
|
||||||
# syntax = {enabled = true;};
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
r-language-server = {
|
|
||||||
command = ["R" "--no-echo" "-e" "languageserver::run()"];
|
|
||||||
extensions = [".r" ".rmd" ".quarto"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
permission = {
|
|
||||||
"*" = "ask";
|
|
||||||
"bash" = {
|
|
||||||
"*" = "ask";
|
|
||||||
"ls *" = "allow";
|
|
||||||
"find *" = "ask"; # Don't want find -exec
|
|
||||||
"file *" = "allow";
|
|
||||||
"wc *" = "allow";
|
|
||||||
"grep *" = "allow";
|
|
||||||
"rg *" = "allow";
|
|
||||||
"test *" = "allow";
|
|
||||||
"echo *" = "allow";
|
|
||||||
"which *" = "allow";
|
|
||||||
"pwd *" = "allow";
|
|
||||||
"dirname *" = "allow";
|
|
||||||
"basename *" = "allow";
|
|
||||||
"readlink *" = "allow";
|
|
||||||
|
|
||||||
"cat *.env" = "deny";
|
|
||||||
"cat *.env.*" = "deny";
|
|
||||||
"cat *.env.example" = "allow";
|
|
||||||
"printenv *" = "deny";
|
|
||||||
"env *" = "deny";
|
|
||||||
|
|
||||||
"nix eval *" = "allow";
|
|
||||||
"nix flake metadata *" = "allow";
|
|
||||||
"nix flake show *" = "allow";
|
|
||||||
"nix path-info *" = "allow";
|
|
||||||
"nix why-depends *" = "allow";
|
|
||||||
"nix derivation show *" = "allow";
|
|
||||||
"nix store ping *" = "allow";
|
|
||||||
"nix stire diff-closures *" = "allow";
|
|
||||||
|
|
||||||
"git status *" = "allow";
|
|
||||||
"git log *" = "allow";
|
|
||||||
"git diff *" = "allow";
|
|
||||||
};
|
|
||||||
"external_directory" = {
|
|
||||||
"/nix/store/**" = "allow";
|
|
||||||
"/tmp" = "allow";
|
|
||||||
"/tmp/*" = "allow";
|
|
||||||
};
|
|
||||||
"read" = {
|
|
||||||
"*" = "allow";
|
|
||||||
"*.env" = "deny";
|
|
||||||
"*.env.*" = "deny";
|
|
||||||
"*.env.example" = "allow";
|
|
||||||
};
|
|
||||||
"grep" = "allow";
|
|
||||||
"glob" = "allow";
|
|
||||||
"lsp" = "allow";
|
|
||||||
"skill" = "allow";
|
|
||||||
"task" = "ask";
|
|
||||||
"todowrite" = "allow";
|
|
||||||
"webfetch" = "allow";
|
|
||||||
"websearch" = "allow";
|
|
||||||
"question" = "allow";
|
|
||||||
};
|
|
||||||
plugin = [
|
|
||||||
"opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth
|
|
||||||
"@tarquinen/opencode-dcp@latest" # better compacting
|
|
||||||
# "@slkiser/opencode-quota"
|
|
||||||
];
|
|
||||||
share = "disabled";
|
|
||||||
shell = "fish";
|
|
||||||
snapshot = false;
|
|
||||||
watcher = {
|
|
||||||
ignore = ["node_modules/**" "dist/**" ".git/**"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Writes tui.json
|
|
||||||
tui = {
|
|
||||||
theme = "system";
|
|
||||||
diff_style = "auto";
|
|
||||||
mouse = true;
|
|
||||||
attention = {
|
|
||||||
enabled = true;
|
|
||||||
notifications = true;
|
|
||||||
sound = true;
|
|
||||||
volume = "0.3";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
agents = {};
|
|
||||||
commands = {};
|
|
||||||
context = '''';
|
|
||||||
skills = {};
|
|
||||||
tools = {};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home = let
|
home = let
|
||||||
@ -282,9 +75,9 @@
|
|||||||
# jetbrains.idea-ultimate
|
# jetbrains.idea-ultimate
|
||||||
# jetbrains.webstorm
|
# jetbrains.webstorm
|
||||||
# jetbrains.rider
|
# jetbrains.rider
|
||||||
|
zed-editor
|
||||||
|
vscode
|
||||||
# ghidra # launch with _JAVA_AWT_WM_NONREPARENTING=1 (use programs.ghidra)
|
# ghidra # launch with _JAVA_AWT_WM_NONREPARENTING=1 (use programs.ghidra)
|
||||||
# zed-editor # Using module
|
|
||||||
# vscode # Using module
|
|
||||||
|
|
||||||
# Unity Stuff
|
# Unity Stuff
|
||||||
# unityhub
|
# unityhub
|
||||||
@ -308,16 +101,11 @@
|
|||||||
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
|
||||||
teamspeak6-client
|
teamspeak6-client
|
||||||
|
|
||||||
# virt-manager # use system program option
|
|
||||||
virt-viewer
|
|
||||||
gnome-boxes # doesn't list VMs imported using virsh
|
|
||||||
|
|
||||||
steam-devices-udev-rules
|
steam-devices-udev-rules
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -365,8 +153,6 @@
|
|||||||
"com.usebottles.bottles"
|
"com.usebottles.bottles"
|
||||||
"io.github.lawstorant.boxflat"
|
"io.github.lawstorant.boxflat"
|
||||||
|
|
||||||
"org.onlyoffice.desktopeditors"
|
|
||||||
|
|
||||||
# "com.unity.UnityHub"
|
# "com.unity.UnityHub"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -2,32 +2,30 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
config = {
|
config = {
|
||||||
homemodules = {
|
homemodules = {
|
||||||
# TODO: Niri config (needs to modularize niri module)
|
hyprland = {
|
||||||
|
keyboard = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
option = "nodeadkeys";
|
||||||
|
};
|
||||||
|
|
||||||
# hyprland = {
|
monitors = {
|
||||||
# keyboard = {
|
"eDP-1" = {
|
||||||
# layout = "us";
|
width = 1920;
|
||||||
# variant = "altgr-intl";
|
height = 1080;
|
||||||
# option = "nodeadkeys";
|
rate = 60;
|
||||||
# };
|
x = 0;
|
||||||
#
|
y = 0;
|
||||||
# monitors = {
|
scale = 1;
|
||||||
# "eDP-1" = {
|
};
|
||||||
# width = 1920;
|
};
|
||||||
# height = 1080;
|
|
||||||
# rate = 60;
|
|
||||||
# x = 0;
|
|
||||||
# y = 0;
|
|
||||||
# scale = 1;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# workspaces = {
|
|
||||||
# "eDP-1" = [1 2 3 4 5 6 7 8 9];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
waybar.monitors = ["eDP-1"];
|
workspaces = {
|
||||||
|
"eDP-1" = [1 2 3 4 5 6 7 8 9];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
waybar.monitor = "eDP-1";
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|||||||
156
home/homemodules/1_deprecated/vscode/default.nix
Normal file
156
home/homemodules/1_deprecated/vscode/default.nix
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
# TODO: Expose some settings
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with mylib.modules; let
|
||||||
|
cfg = config.homemodules.vscode;
|
||||||
|
in {
|
||||||
|
options.homemodules.vscode = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
enableExtensionUpdateCheck = false;
|
||||||
|
enableUpdateCheck = false;
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
# alefragnani.bookmarks # TODO: Use inline bookmarks instead
|
||||||
|
# alefragnani.project-manager # NOTE: Not much sense with flake dev environments
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
catppuccin.catppuccin-vsc-icons
|
||||||
|
christian-kohler.path-intellisense
|
||||||
|
# codezombiech.gitignore # NOTE: Superfluous
|
||||||
|
# coolbear.systemd-unit-file # NOTE: Unnecessary on NixOS
|
||||||
|
eamodio.gitlens
|
||||||
|
# formulahendry.auto-rename-tag
|
||||||
|
# formulahendry.auto-close-tag
|
||||||
|
# gitlab.gitlab-workflow
|
||||||
|
# irongeek.vscode-env
|
||||||
|
# jnoortheen.nix-ide
|
||||||
|
# kamadorueda.alejandra
|
||||||
|
# kamikillerto.vscode-colorize
|
||||||
|
# llvm-vs-code-extensions.vscode-clangd
|
||||||
|
# matklad.rust-analyzer
|
||||||
|
mechatroner.rainbow-csv
|
||||||
|
# mikestead.dotenv
|
||||||
|
# mkhl.direnv
|
||||||
|
# ms-azuretools.vscode-docker
|
||||||
|
# ms-kubernetes-tools.vscode-kubernetes-tools
|
||||||
|
ms-python.python
|
||||||
|
ms-toolsai.jupyter
|
||||||
|
ms-vscode.cmake-tools
|
||||||
|
ms-vscode.cpptools
|
||||||
|
# ms-vscode.hexeditor
|
||||||
|
# ms-vscode.makefile-tools
|
||||||
|
ms-python.black-formatter
|
||||||
|
ms-python.vscode-pylance
|
||||||
|
ms-vscode-remote.remote-ssh
|
||||||
|
# naumovs.color-highlight
|
||||||
|
njpwerner.autodocstring
|
||||||
|
# james-yu.latex-workshop
|
||||||
|
# redhat.java
|
||||||
|
# redhat.vscode-xml
|
||||||
|
# redhat.vscode-yaml
|
||||||
|
ritwickdey.liveserver
|
||||||
|
# rubymaniac.vscode-paste-and-indent
|
||||||
|
ryu1kn.partial-diff
|
||||||
|
# serayuzgur.crates
|
||||||
|
shd101wyy.markdown-preview-enhanced
|
||||||
|
# skyapps.fish-vscode
|
||||||
|
# tamasfe.even-better-toml
|
||||||
|
# timonwong.shellcheck
|
||||||
|
# tomoki1207.pdf # Incompatible with latex workshop
|
||||||
|
# valentjn.vscode-ltex
|
||||||
|
vscodevim.vim
|
||||||
|
vscode-icons-team.vscode-icons
|
||||||
|
# yzhang.markdown-all-in-one
|
||||||
|
];
|
||||||
|
# haskell = {};
|
||||||
|
# keybindings = {};
|
||||||
|
|
||||||
|
userSettings = {
|
||||||
|
# VSCode Internals
|
||||||
|
"editor.fontFamily" = "JetBrainsMono Nerd Font Mono";
|
||||||
|
"editor.fontSize" = 16;
|
||||||
|
"editor.renderWhitespace" = "selection";
|
||||||
|
"editor.cursorStyle" = "line"; # Use line for vim plugin
|
||||||
|
"editor.lineNumbers" = "relative";
|
||||||
|
"editor.linkedEditing" = true;
|
||||||
|
"editor.smoothScrolling" = true;
|
||||||
|
"editor.stickyScroll.enabled" = true;
|
||||||
|
"editor.tabCompletion" = "on";
|
||||||
|
"editor.cursorSmoothCaretAnimation" = "on";
|
||||||
|
"editor.cursorSurroundingLines" = 10;
|
||||||
|
"editor.minimap.renderCharacters" = false;
|
||||||
|
"editor.bracketPairColorization.enabled" = true;
|
||||||
|
"editor.guides.bracketPairs" = "active";
|
||||||
|
"editor.guides.bracketPairsHorizontal" = "active";
|
||||||
|
"editor.guides.highlightActiveIndentation" = false;
|
||||||
|
|
||||||
|
"files.autoSave" = "onFocusChange";
|
||||||
|
"files.trimFinalNewlines" = true;
|
||||||
|
"files.trimTrailingWhitespace" = true; # NOTE: If this is enabled with frequent autosave, the current lines whitespace will always be removed, which is obnoxious
|
||||||
|
|
||||||
|
"window.restoreWindows" = "none";
|
||||||
|
|
||||||
|
"window.titleBarStyle" = "custom"; # NOTE: Should help with crashing on wayland
|
||||||
|
# "window.titleBarStyle" = "native";
|
||||||
|
# "window.menuBarVisibility" = "toggle";
|
||||||
|
|
||||||
|
"workbench.enableExperiments" = false;
|
||||||
|
"workbench.list.smoothScrolling" = true;
|
||||||
|
# "workbench.colorTheme" = "Default Light Modern";
|
||||||
|
# "workbench.iconTheme" = "vscode-icons";
|
||||||
|
"workbench.colorTheme" = "Catppuccin Latte";
|
||||||
|
"workbench.iconTheme" = "catppuccin-latte";
|
||||||
|
|
||||||
|
"remote.SSH.configFile" = "~/.ssh/custom-config";
|
||||||
|
|
||||||
|
"security.workspace.trust.enabled" = false;
|
||||||
|
|
||||||
|
# Language Tool
|
||||||
|
"ltex.checkFrequency" = "manual";
|
||||||
|
|
||||||
|
# LaTeX
|
||||||
|
"latex-workshop.latex.tools" = [
|
||||||
|
{
|
||||||
|
"name" = "latexmk";
|
||||||
|
"command" = "latexmk";
|
||||||
|
"args" = [
|
||||||
|
"-synctex=1"
|
||||||
|
"-shell-escape"
|
||||||
|
"-interaction=nonstopmode"
|
||||||
|
"-file-line-error"
|
||||||
|
"-pdf"
|
||||||
|
"-outdir=%OUTDIR%"
|
||||||
|
"%DOC%"
|
||||||
|
];
|
||||||
|
"env" = {};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"latex-workshop.latexindent.args" = [
|
||||||
|
"-c"
|
||||||
|
"%DIR%/"
|
||||||
|
"%TMPFILE%"
|
||||||
|
"-m"
|
||||||
|
"-y=defaultIndent: '%INDENT%'"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Nix
|
||||||
|
"[nix]"."editor.tabSize" = 2;
|
||||||
|
"nix.enableLanguageServer" = true;
|
||||||
|
"nix.serverPath" = "nil";
|
||||||
|
"nix.formatterPath" = "alejandra";
|
||||||
|
|
||||||
|
# C++
|
||||||
|
# "C_Cpp.intelliSenseEngine" = "disabled"; # IntelliSense conflics with Clangd
|
||||||
|
};
|
||||||
|
# TODO: Snippets
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable bat";
|
|
||||||
}
|
|
||||||
@ -57,7 +57,7 @@ in {
|
|||||||
|
|
||||||
fetchart = {
|
fetchart = {
|
||||||
auto = "yes";
|
auto = "yes";
|
||||||
sources = "*"; # sources are queried in this order
|
sources = "filesystem coverart itunes amazon albumart"; # sources are queried in this order
|
||||||
};
|
};
|
||||||
|
|
||||||
# lyrics = {
|
# lyrics = {
|
||||||
|
|||||||
@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
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}'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable cava";
|
|
||||||
}
|
|
||||||
@ -1,21 +1,13 @@
|
|||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
# My own HM modules
|
# My own HM modules
|
||||||
./bat
|
|
||||||
./btop
|
|
||||||
./color
|
./color
|
||||||
./fastfetch
|
|
||||||
./fish
|
./fish
|
||||||
./git
|
./git
|
||||||
./jellyfin-tui
|
|
||||||
./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,45 +3,34 @@
|
|||||||
# 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
|
||||||
./git
|
./git
|
||||||
./jellyfin-tui
|
|
||||||
./kitty
|
./kitty
|
||||||
./lazygit
|
./lazygit
|
||||||
./mpd
|
./mpd
|
||||||
./neovim
|
./neovim
|
||||||
./niri
|
./niri
|
||||||
./nnn
|
./nnn
|
||||||
./packages
|
|
||||||
./paths
|
./paths
|
||||||
./qutebrowser
|
./qutebrowser
|
||||||
./rmpc
|
./rmpc
|
||||||
./rofi
|
./rofi
|
||||||
./waybar
|
./waybar
|
||||||
./ssh
|
|
||||||
./terminal
|
|
||||||
./tmux
|
|
||||||
./vscode
|
|
||||||
./yazi
|
./yazi
|
||||||
./zathura
|
./zathura
|
||||||
./zed
|
|
||||||
|
|
||||||
# HM modules imported from the flake inputs
|
# HM modules imported from the flake inputs
|
||||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
inputs.textfox.homeManagerModules.default
|
inputs.textfox.homeManagerModules.default
|
||||||
inputs.walker.homeManagerModules.default
|
inputs.walker.homeManagerModules.default
|
||||||
# inputs.direnv-instant.homeModules.direnv-instant
|
|
||||||
# inputs.niri.homeModules.niri # Imported by system module
|
# inputs.niri.homeModules.niri # Imported by system module
|
||||||
# inputs.noctalia.homeModules.default
|
# inputs.noctalia.homeModules.default
|
||||||
# inputs.caelestia.homeManagerModules.default
|
# inputs.caelestia.homeManagerModules.default
|
||||||
|
|||||||
@ -32,9 +32,6 @@ in {
|
|||||||
"Notes/Obsidian/Chriphost/latex_snippets.json".source = ../../../config/obsidian/latex_snippets.json; # TODO: Symlink
|
"Notes/Obsidian/Chriphost/latex_snippets.json".source = ../../../config/obsidian/latex_snippets.json; # TODO: Symlink
|
||||||
"Notes/Obsidian/Chriphost/.obsidian/snippets/latex_preview.css".source = ../../../config/obsidian/css_snippets/latex_preview.css;
|
"Notes/Obsidian/Chriphost/.obsidian/snippets/latex_preview.css".source = ../../../config/obsidian/css_snippets/latex_preview.css;
|
||||||
"Notes/Obsidian/Chriphost/.obsidian/snippets/center_image.css".source = ../../../config/obsidian/css_snippets/center_image.css;
|
"Notes/Obsidian/Chriphost/.obsidian/snippets/center_image.css".source = ../../../config/obsidian/css_snippets/center_image.css;
|
||||||
"Notes/Obsidian/Chriphost/.obsidian/snippets/fullwidth_image.css".source = ../../../config/obsidian/css_snippets/fullwidth_image.css;
|
|
||||||
"Notes/Obsidian/Chriphost/.obsidian/snippets/justify_text.css".source = ../../../config/obsidian/css_snippets/justify_text.css;
|
|
||||||
"Notes/Obsidian/Chriphost/.obsidian/snippets/bordered_image.css".source = ../../../config/obsidian/css_snippets/bordered_image.css;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,163 +0,0 @@
|
|||||||
{
|
|
||||||
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";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable fastfetch";
|
|
||||||
}
|
|
||||||
@ -103,9 +103,9 @@ in [
|
|||||||
(mkBm "Heise" "https://www.heise.de/")
|
(mkBm "Heise" "https://www.heise.de/")
|
||||||
(mkBm "HN" "https://news.ycombinator.com/news")
|
(mkBm "HN" "https://news.ycombinator.com/news")
|
||||||
(mkBm "Reddit" "https://www.reddit.com/user/FightingMushroom/saved/")
|
(mkBm "Reddit" "https://www.reddit.com/user/FightingMushroom/saved/")
|
||||||
# (mkBm "F10" "https://f10.local.chriphost.de/race/Everyone")
|
(mkBm "F10" "https://f10.local.chriphost.de/race/Everyone")
|
||||||
(mkBm "F12" "https://f12.local.chriphost.gay/racepicks")
|
(mkBm "F11" "https://f11.local.chriphost.de/racepicks")
|
||||||
(mkBm "F12PB" "https://f12pb.local.chriphost.de/_/")
|
(mkBm "F11PB" "https://f11pb.local.chriphost.de/_/#/collections?collection=pbc_1736455494&filter=&sort=-%40rowid")
|
||||||
(mkBm "ISBNDB" "https://isbndb.com/")
|
(mkBm "ISBNDB" "https://isbndb.com/")
|
||||||
(mkBm "Music" "https://bandcamp.com/chriphost")
|
(mkBm "Music" "https://bandcamp.com/chriphost")
|
||||||
(mkBm "Albums" "https://www.albumoftheyear.org/user/chriphost/list/307966/2025/")
|
(mkBm "Albums" "https://www.albumoftheyear.org/user/chriphost/list/307966/2025/")
|
||||||
|
|||||||
@ -86,9 +86,6 @@ in {
|
|||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# configPath = "${config.xdg.configHome}/mozilla/firefox";
|
|
||||||
configPath = "${config.home.homeDirectory}/.mozilla/firefox";
|
|
||||||
|
|
||||||
# firefox-unwrapped is the pure firefox browser, wrapFirefox adds configuration ontop
|
# firefox-unwrapped is the pure firefox browser, wrapFirefox adds configuration ontop
|
||||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||||
# About policies: https://github.com/mozilla/policy-templates#enterprisepoliciesenabled
|
# About policies: https://github.com/mozilla/policy-templates#enterprisepoliciesenabled
|
||||||
|
|||||||
@ -42,141 +42,116 @@ in {
|
|||||||
fish_pager_color_description ${color.hex.overlay0}
|
fish_pager_color_description ${color.hex.overlay0}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish = let
|
programs.fish = lib.mkMerge [
|
||||||
# Only add " | bat" if bat is installed
|
# Darwin exclusive config
|
||||||
batify = command: command + (lib.optionalString config.programs.bat.enable " | bat");
|
(lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
|
shellInit = ''
|
||||||
|
set fish_greeting
|
||||||
|
yes | fish_config theme save "system-theme"
|
||||||
|
|
||||||
# Same as above but with args for bat
|
set --global --export HOMEBREW_PREFIX "/opt/homebrew"
|
||||||
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
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;
|
||||||
|
'';
|
||||||
|
|
||||||
# These can be used for my config.homemodules and for HM config.programs,
|
shellAbbrs = let
|
||||||
# as both of these add the package to home.packages
|
# These can be used for my config.homemodules and for HM config.programs,
|
||||||
hasHomePackage = package: (mylib.modules.contains config.home.packages package);
|
# 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
|
# Only add fish abbr if package is installed
|
||||||
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
||||||
in
|
in
|
||||||
lib.mkMerge [
|
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;
|
||||||
|
|
||||||
# TODO: There's a bug with the direnv mechanism:
|
shellInit = ''
|
||||||
# - When leaving an env, it unloads (good)
|
set fish_greeting
|
||||||
# - When entering another env, it loads (good)
|
yes | fish_config theme save "system-theme"
|
||||||
# - When leaving this one, it doesn't unload (bad)
|
'';
|
||||||
# - When entering leaving it again, it works...
|
|
||||||
# This only happens sometimes, is there a race condition?
|
|
||||||
shellInit = ''
|
|
||||||
set fish_greeting
|
|
||||||
yes | fish_config theme save "system-theme"
|
|
||||||
fish_vi_key_bindings
|
|
||||||
|
|
||||||
# Because we can't source that in a project flake's shellHook (is POSIX), source it here
|
functions = lib.mergeAttrsList [
|
||||||
function __project_shell_reload --on-variable INIT_PROJECT_SHELL
|
(lib.optionalAttrs config.homemodules.nnn.enable {
|
||||||
# Leaving the environment
|
nnncd = {
|
||||||
if not set -q INIT_PROJECT_SHELL; or test -z "$INIT_PROJECT_SHELL"
|
wraps = "nnn";
|
||||||
if test -n "$__last_unload_project_shell"; and test -f "$__last_unload_project_shell"
|
description = "support nnn quit and change directory";
|
||||||
source "$__last_unload_project_shell"
|
body = ''
|
||||||
end
|
# Block nesting of nnn in subshells
|
||||||
set -e __last_init_project_shell
|
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
||||||
set -e __last_unload_project_shell
|
echo "nnn is already running"
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
# Entering or switching environments
|
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||||
if test "$INIT_PROJECT_SHELL" != "$__last_init_project_shell"
|
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
||||||
# Cleanup the previous environment
|
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
||||||
if test -n "$__last_unload_project_shell"; and test -f "$__last_unload_project_shell"
|
# without changing the paths.
|
||||||
source "$__last_unload_project_shell"
|
if test -n "$XDG_CONFIG_HOME"
|
||||||
end
|
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||||
|
else
|
||||||
# Store into variables to persist until next environment switch in the same shell
|
set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
|
||||||
set -g __last_init_project_shell "$INIT_PROJECT_SHELL"
|
|
||||||
if set -q UNLOAD_PROJECT_SHELL; and test -f "$UNLOAD_PROJECT_SHELL"
|
|
||||||
set -g __last_unload_project_shell "$UNLOAD_PROJECT_SHELL"
|
|
||||||
else
|
|
||||||
set -e __last_unload_project_shell
|
|
||||||
end
|
|
||||||
|
|
||||||
# Source the new environment
|
|
||||||
if test -f "$INIT_PROJECT_SHELL"
|
|
||||||
source "$INIT_PROJECT_SHELL"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
|
||||||
'';
|
|
||||||
|
|
||||||
functions = lib.mergeAttrsList [
|
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
||||||
(lib.optionalAttrs config.homemodules.nnn.enable {
|
# stty start undef
|
||||||
nnncd = {
|
# stty stop undef
|
||||||
wraps = "nnn";
|
# stty lwrap undef
|
||||||
description = "support nnn quit and change directory";
|
# stty lnext undef
|
||||||
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)
|
# The command function allows one to alias this function to `nnn` without
|
||||||
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
# making an infinitely recursive alias
|
||||||
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
command nnn $argv
|
||||||
# without changing the paths.
|
|
||||||
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
|
|
||||||
|
|
||||||
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
if test -e $NNN_TMPFILE
|
||||||
# stty start undef
|
source $NNN_TMPFILE
|
||||||
# stty stop undef
|
rm $NNN_TMPFILE
|
||||||
# stty lwrap undef
|
end
|
||||||
# stty lnext undef
|
'';
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# The command function allows one to alias this function to `nnn` without
|
shellAbbrs = let
|
||||||
# making an infinitely recursive alias
|
# Only add " | bat" if bat is installed
|
||||||
command nnn $argv
|
batify = command: command + (lib.optionalString config.programs.bat.enable " | bat");
|
||||||
|
|
||||||
if test -e $NNN_TMPFILE
|
# Same as above but with args for bat
|
||||||
source $NNN_TMPFILE
|
batifyWithArgs = command: args: command + (lib.optionalString config.programs.bat.enable (" | bat " + args));
|
||||||
rm $NNN_TMPFILE
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
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 [
|
||||||
# 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
|
||||||
}
|
}
|
||||||
@ -193,33 +168,31 @@ in {
|
|||||||
|
|
||||||
# (abbrify pkgs.sd {sed = "sd";})
|
# (abbrify pkgs.sd {sed = "sd";})
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Common config
|
# Common config
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
shellAbbrs = lib.mkMerge [
|
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
|
||||||
|
abbrify = package: abbr: (lib.optionalAttrs (hasHomePackage package) abbr);
|
||||||
|
in
|
||||||
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
# Shell
|
# Shell basics
|
||||||
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 yazi";
|
sy = "sudo -u ${username} 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";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,9 +244,9 @@ in {
|
|||||||
(abbrify pkgs.lazygit {lg = "lazygit";})
|
(abbrify pkgs.lazygit {lg = "lazygit";})
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = [];
|
plugins = [];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@ -1,91 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
nixosConfig,
|
|
||||||
darwinConfig,
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (config.homemodules) jellyfin-tui color;
|
|
||||||
|
|
||||||
systemConfig =
|
|
||||||
if pkgs.stdenv.isLinux
|
|
||||||
then nixosConfig
|
|
||||||
else darwinConfig;
|
|
||||||
in {
|
|
||||||
options.homemodules.jellyfin-tui = import ./options.nix {inherit lib mylib;};
|
|
||||||
|
|
||||||
config = lib.mkIf jellyfin-tui.enable {
|
|
||||||
home = {
|
|
||||||
packages = [
|
|
||||||
pkgs.jellyfin-tui
|
|
||||||
];
|
|
||||||
|
|
||||||
file = let
|
|
||||||
jellyfinUrl =
|
|
||||||
if pkgs.stdenv.isLinux
|
|
||||||
then "https://jellyfin.local.chriphost.de"
|
|
||||||
else "https://jellyfin.vps.chriphost.de";
|
|
||||||
|
|
||||||
configFile = ''
|
|
||||||
servers:
|
|
||||||
- name: Mafia Dortmund
|
|
||||||
url: ${jellyfinUrl}
|
|
||||||
username: root
|
|
||||||
password_file: ${systemConfig.sops.secrets.jellyfin-password.path}
|
|
||||||
default: true
|
|
||||||
|
|
||||||
# All following settings are OPTIONAL. What you see here are the defaults.
|
|
||||||
|
|
||||||
# Show album cover image
|
|
||||||
art: true
|
|
||||||
# Save and restore the state of the player (queue, volume, etc.)
|
|
||||||
persist: true
|
|
||||||
# Grab the primary color from the cover image (false => uses the current theme's `accent` instead)
|
|
||||||
auto_color: false
|
|
||||||
# Time in milliseconds to fade between colors when the track changes
|
|
||||||
auto_color_fade_ms: 400
|
|
||||||
# Always show the lyrics pane, even if no lyrics are available
|
|
||||||
lyrics: 'always' # options: 'always', 'never', 'auto'
|
|
||||||
|
|
||||||
rounded_corners: true
|
|
||||||
|
|
||||||
transcoding:
|
|
||||||
bitrate: 320
|
|
||||||
# container: mp3
|
|
||||||
|
|
||||||
# Discord Rich Presence. Shows your listening status on your Discord profile if Discord is running.
|
|
||||||
# NOTE: I think we're allowed to leak this to the public (hopefully)?
|
|
||||||
discord: 1466134677537685546 # https://discord.com/developers/applications
|
|
||||||
# Displays album art on your Discord profile if enabled
|
|
||||||
# !!CAUTION!! - Enabling this will expose the URL of your Jellyfin instance to all Discord users!
|
|
||||||
discord_art: false
|
|
||||||
|
|
||||||
# Customize the title of the terminal window
|
|
||||||
window_title: true # default -> {title} – {artist} ({year})
|
|
||||||
# window_title: false # disable
|
|
||||||
# Custom title: choose from current track's {title} {artist} {album} {year}
|
|
||||||
# window_title: "\"{title}\" by {artist} ({year}) – jellyfin-tui"
|
|
||||||
|
|
||||||
# Options specified here will be passed to mpv - https://mpv.io/manual/master/#options
|
|
||||||
mpv:
|
|
||||||
log-file: /tmp/mpv.log
|
|
||||||
no-config: true
|
|
||||||
# af: lavfi=[loudnorm=I=-23:TP=-1]
|
|
||||||
gapless-audio: weak
|
|
||||||
prefetch-playlist: yes
|
|
||||||
replaygain: no
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
lib.mkMerge [
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
||||||
".config/jellyfin-tui/config.yaml".text = configFile;
|
|
||||||
})
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
||||||
"Library/Application Support/jellyfin-tui/config.yaml".text = configFile;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable jellyfin-tui";
|
|
||||||
}
|
|
||||||
@ -31,8 +31,8 @@ in {
|
|||||||
settings = lib.mkMerge [
|
settings = lib.mkMerge [
|
||||||
# Linux config
|
# Linux config
|
||||||
(lib.mkIf pkgs.stdenv.isLinux {
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
allow_remote_control = true; # For nnn file preview or nvim scrollback
|
allow_remote_control = "yes"; # For nnn file preview or nvim scrollback
|
||||||
listen_on = lib.mkDefault "unix:@mykitty"; # This conflicts with direnv-instant
|
listen_on = "unix:@mykitty";
|
||||||
})
|
})
|
||||||
|
|
||||||
# Common config
|
# Common config
|
||||||
@ -42,7 +42,6 @@ in {
|
|||||||
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
||||||
# hide_window_decorations = "yes";
|
# hide_window_decorations = "yes";
|
||||||
enabled_layouts = "grid,vertical,horizontal";
|
enabled_layouts = "grid,vertical,horizontal";
|
||||||
cursor_trail = 3;
|
|
||||||
|
|
||||||
tab_bar_min_tabs = 2; # Don't show a single tab
|
tab_bar_min_tabs = 2; # Don't show a single tab
|
||||||
tab_bar_edge = "bottom";
|
tab_bar_edge = "bottom";
|
||||||
|
|||||||
@ -30,62 +30,54 @@ in {
|
|||||||
|
|
||||||
(lib.optionals (!headless) [
|
(lib.optionals (!headless) [
|
||||||
# Language servers
|
# Language servers
|
||||||
autotools-language-server
|
|
||||||
basedpyright
|
|
||||||
clang-tools
|
clang-tools
|
||||||
clojure-lsp
|
clojure-lsp
|
||||||
cmake-language-server
|
cmake-language-server
|
||||||
haskell-language-server
|
haskell-language-server
|
||||||
jdt-language-server
|
jdt-language-server
|
||||||
just-lsp
|
|
||||||
ltex-ls # TODO: Only enable on-demand
|
ltex-ls # TODO: Only enable on-demand
|
||||||
lua-language-server
|
lua-language-server
|
||||||
nil
|
# nil
|
||||||
# perl5Packages.PLS
|
basedpyright
|
||||||
perlnavigator
|
|
||||||
pyrefly
|
pyrefly
|
||||||
# rPackages.languageserver
|
ty
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
svelte-language-server
|
svelte-language-server
|
||||||
tailwindcss-language-server
|
tailwindcss-language-server
|
||||||
tex-fmt
|
tex-fmt
|
||||||
texlab
|
texlab
|
||||||
tinymist
|
tinymist
|
||||||
ty
|
|
||||||
typescript
|
typescript
|
||||||
vscode-langservers-extracted # includes nodejs
|
vscode-langservers-extracted # includes nodejs
|
||||||
|
autotools-language-server
|
||||||
|
just-lsp
|
||||||
|
|
||||||
# Linters
|
# Linters
|
||||||
checkstyle # java
|
checkstyle # java
|
||||||
clippy # rust
|
clippy # rust
|
||||||
clj-kondo # clojure
|
clj-kondo # clojure
|
||||||
eslint_d # javascript
|
eslint_d # javascript
|
||||||
# python313Packages.ruff
|
python313Packages.ruff
|
||||||
# python313Packages.flake8
|
python313Packages.flake8
|
||||||
# python313Packages.pylint
|
python313Packages.pylint
|
||||||
lua54Packages.luacheck
|
lua54Packages.luacheck
|
||||||
vale # text
|
vale # text
|
||||||
# statix # nix (doesn't recognize pipe operator)
|
# statix # nix (doesn't recognize pipe operator)
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
air-formatter
|
|
||||||
cljfmt
|
cljfmt
|
||||||
|
python313Packages.black
|
||||||
google-java-format
|
google-java-format
|
||||||
html-tidy
|
html-tidy
|
||||||
jq # json
|
jq # json
|
||||||
just-formatter
|
|
||||||
mbake
|
|
||||||
# nodePackages_latest.prettier # Use local install as plugins change per project
|
|
||||||
# perl5Packages.PerlTidy
|
|
||||||
# prettierd # Use prettier instead because of plugins
|
# prettierd # Use prettier instead because of plugins
|
||||||
# python313Packages.black
|
# nodePackages_latest.prettier # Use local install as plugins change per project
|
||||||
rustfmt
|
rustfmt
|
||||||
stylua
|
stylua
|
||||||
tombi
|
|
||||||
typstyle
|
typstyle
|
||||||
|
mbake
|
||||||
nodejs_latest
|
just-formatter
|
||||||
uv
|
tombi
|
||||||
])
|
])
|
||||||
|
|
||||||
[
|
[
|
||||||
@ -95,52 +87,6 @@ in {
|
|||||||
lua54Packages.jsregexp # For tree-sitter
|
lua54Packages.jsregexp # For tree-sitter
|
||||||
# nodejs_latest
|
# nodejs_latest
|
||||||
|
|
||||||
# TODO: Create a perl module where I can add packages to, so I don't end up with multiple perl installations
|
|
||||||
# TODO: The same is required for python and R (below)
|
|
||||||
(perl.withPackages (p:
|
|
||||||
with p; [
|
|
||||||
PLS
|
|
||||||
PerlCritic
|
|
||||||
PerlTidy
|
|
||||||
NetOpenSSH
|
|
||||||
DateTime
|
|
||||||
DBI
|
|
||||||
DBDMariaDB
|
|
||||||
CursesUI
|
|
||||||
TextCSV_XS
|
|
||||||
]))
|
|
||||||
|
|
||||||
(python314.withPackages (p:
|
|
||||||
with p; [
|
|
||||||
# Linters
|
|
||||||
ruff
|
|
||||||
flake8
|
|
||||||
pylint
|
|
||||||
|
|
||||||
# Formatters
|
|
||||||
black
|
|
||||||
|
|
||||||
numpy
|
|
||||||
matplotlib
|
|
||||||
requests
|
|
||||||
]))
|
|
||||||
|
|
||||||
(rWrapper.override {
|
|
||||||
packages = with rPackages; [
|
|
||||||
languageserver
|
|
||||||
ggplot2
|
|
||||||
ggalluvial
|
|
||||||
plotly
|
|
||||||
shiny
|
|
||||||
readr
|
|
||||||
tibble
|
|
||||||
svglite
|
|
||||||
dplyr
|
|
||||||
tidyr
|
|
||||||
scales
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
nixd
|
nixd
|
||||||
alejandra # nix
|
alejandra # nix
|
||||||
]
|
]
|
||||||
@ -148,8 +94,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
# nixpkgs.pkgs = pkgs;
|
|
||||||
|
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
enableMan = false; # Nixvim man pages
|
enableMan = false; # Nixvim man pages
|
||||||
@ -172,7 +116,7 @@ in {
|
|||||||
performance.byteCompileLua = {
|
performance.byteCompileLua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configs = true;
|
configs = true;
|
||||||
initLua = true; # When debugging init.lua turn this off
|
initLua = false; # When debugging init.lua turn this off
|
||||||
nvimRuntime = true;
|
nvimRuntime = true;
|
||||||
plugins = true;
|
plugins = true;
|
||||||
};
|
};
|
||||||
@ -308,15 +252,6 @@ in {
|
|||||||
require("${name}").setup(opts)
|
require("${name}").setup(opts)
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Like mkDefaultConfig but takes the Lua module name explicitly.
|
|
||||||
# Use when the Lua module name (e.g. "noice") differs from what
|
|
||||||
# lazy.nvim expects as the plugin name (e.g. "noice.nvim").
|
|
||||||
mkDefaultConfigFor = moduleName: ''
|
|
||||||
function(_, opts)
|
|
||||||
require("${moduleName}").setup(opts)
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -588,10 +523,8 @@ in {
|
|||||||
make = ["bake"];
|
make = ["bake"];
|
||||||
markdown = ["prettierd" "prettier"];
|
markdown = ["prettierd" "prettier"];
|
||||||
nix = ["alejandra"];
|
nix = ["alejandra"];
|
||||||
perl = ["perltidy"];
|
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
qml = ["qmlformat"];
|
qml = ["qmlformat"];
|
||||||
r = ["air"];
|
|
||||||
rust = ["rustfmt"];
|
rust = ["rustfmt"];
|
||||||
svelte = ["prettierd" "prettier"];
|
svelte = ["prettierd" "prettier"];
|
||||||
toml = ["tombi"];
|
toml = ["tombi"];
|
||||||
@ -619,21 +552,6 @@ 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;
|
||||||
@ -927,8 +845,9 @@ in {
|
|||||||
dependencies = [_lazydev];
|
dependencies = [_lazydev];
|
||||||
config = let
|
config = let
|
||||||
servers = mylib.generators.toLuaObject [
|
servers = mylib.generators.toLuaObject [
|
||||||
{name = "autotools-language-server";}
|
|
||||||
{name = "basedpyright";}
|
{name = "basedpyright";}
|
||||||
|
# {name = "pyrefly";} # TODO: Config
|
||||||
|
# {name = "ty";} # TODO: Config
|
||||||
{
|
{
|
||||||
name = "clangd";
|
name = "clangd";
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
@ -980,6 +899,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{name = "autotools-language-server";}
|
||||||
# {name = "nil_ls";}
|
# {name = "nil_ls";}
|
||||||
{
|
{
|
||||||
name = "nixd";
|
name = "nixd";
|
||||||
@ -1021,8 +941,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{name = "perlpls";}
|
|
||||||
{name = "perlnavigator";}
|
|
||||||
{
|
{
|
||||||
name = "qmlls";
|
name = "qmlls";
|
||||||
extraOptions.cmd = [
|
extraOptions.cmd = [
|
||||||
@ -1030,8 +948,6 @@ in {
|
|||||||
"-E" # Use QML_IMPORT_PATH env variable
|
"-E" # Use QML_IMPORT_PATH env variable
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
# {name = "pyrefly";} # TODO: Config
|
|
||||||
{name = "r_language_server";}
|
|
||||||
{name = "svelte";}
|
{name = "svelte";}
|
||||||
{name = "tailwindcss";}
|
{name = "tailwindcss";}
|
||||||
{name = "texlab";}
|
{name = "texlab";}
|
||||||
@ -1043,7 +959,6 @@ in {
|
|||||||
semanticTokens = "disable";
|
semanticTokens = "disable";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# {name = "ty";} # TODO: Config
|
|
||||||
|
|
||||||
# {name = "jdtls";} # Don't set up when using nvim-jdtls
|
# {name = "jdtls";} # Don't set up when using nvim-jdtls
|
||||||
# {name = "rust_analyzer";} # Don't set up when using rustaceanvim
|
# {name = "rust_analyzer";} # Don't set up when using rustaceanvim
|
||||||
@ -1121,7 +1036,6 @@ in {
|
|||||||
pkg = pkgs.vimPlugins.lualine-nvim;
|
pkg = pkgs.vimPlugins.lualine-nvim;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
event = ["BufReadPost" "BufNewFile"];
|
event = ["BufReadPost" "BufNewFile"];
|
||||||
# dependencies = [opencode];
|
|
||||||
config = ''
|
config = ''
|
||||||
function(_, opts)
|
function(_, opts)
|
||||||
local lualine = require("lualine")
|
local lualine = require("lualine")
|
||||||
@ -1221,7 +1135,6 @@ in {
|
|||||||
lualine_c.__raw = ''{}''; # Use __raw: Nixvim does nothing with "[]", so the default config would be used
|
lualine_c.__raw = ''{}''; # Use __raw: Nixvim does nothing with "[]", so the default config would be used
|
||||||
|
|
||||||
lualine_x.__raw = ''{}'';
|
lualine_x.__raw = ''{}'';
|
||||||
# lualine_x.__raw = ''{ { require("opencode").statusline, }, }'';
|
|
||||||
lualine_y = ["filetype" "encoding" "fileformat"];
|
lualine_y = ["filetype" "encoding" "fileformat"];
|
||||||
lualine_z.__raw = ''{ { "location", separator = {}, } }'';
|
lualine_z.__raw = ''{ { "location", separator = {}, } }'';
|
||||||
};
|
};
|
||||||
@ -1387,19 +1300,19 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_nui = {
|
_nui = {
|
||||||
name = "nui.nvim";
|
name = "nui"; # For noice
|
||||||
pkg = pkgs.vimPlugins.nui-nvim;
|
pkg = pkgs.vimPlugins.nui-nvim;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
noice = rec {
|
noice = rec {
|
||||||
name = "noice.nvim";
|
name = "noice";
|
||||||
pkg = pkgs.vimPlugins.noice-nvim;
|
pkg = pkgs.vimPlugins.noice-nvim;
|
||||||
lazy = false;
|
lazy = false;
|
||||||
dependencies = [
|
dependencies = [
|
||||||
_nui
|
_nui
|
||||||
];
|
];
|
||||||
config = mkDefaultConfigFor "noice";
|
config = mkDefaultConfig name;
|
||||||
opts = {
|
opts = {
|
||||||
presets = {
|
presets = {
|
||||||
bottom_search = false;
|
bottom_search = false;
|
||||||
@ -1461,32 +1374,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
opencode = {
|
|
||||||
name = "opencode";
|
|
||||||
pkg = pkgs.vimPlugins.opencode-nvim;
|
|
||||||
lazy = false;
|
|
||||||
config = ''
|
|
||||||
function()
|
|
||||||
vim.g.opencode_opts = {
|
|
||||||
server = {
|
|
||||||
url = "http://localhost:12345",
|
|
||||||
start = false,
|
|
||||||
},
|
|
||||||
events = {
|
|
||||||
permissions = {
|
|
||||||
edits = {
|
|
||||||
-- Disable neovim diff popup tab
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.o.autoread = true -- Required for `vim.g.opencode_opts.events.reload`
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# obsidian = rec {
|
# obsidian = rec {
|
||||||
# name = "obsidian";
|
# name = "obsidian";
|
||||||
# pkg = pkgs.vimPlugins.obsidian-nvim;
|
# pkg = pkgs.vimPlugins.obsidian-nvim;
|
||||||
@ -1711,7 +1598,7 @@ in {
|
|||||||
gitbrowse.enabled = false;
|
gitbrowse.enabled = false;
|
||||||
image.enabled = false;
|
image.enabled = false;
|
||||||
indent.enabled = false;
|
indent.enabled = false;
|
||||||
input.enabled = true;
|
input.enabled = false;
|
||||||
keymap.enabled = false;
|
keymap.enabled = false;
|
||||||
layout.enabled = false;
|
layout.enabled = false;
|
||||||
lazygit.enabled = true;
|
lazygit.enabled = true;
|
||||||
@ -1747,20 +1634,6 @@ in {
|
|||||||
truncate = 80;
|
truncate = 80;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
actions = {
|
|
||||||
opencode_send.__raw = ''
|
|
||||||
function(picker)
|
|
||||||
local items = vim.tbl_map(function(item)
|
|
||||||
return item.file
|
|
||||||
and require("opencode").format({ path = item.file, from = item.pos, to = item.end_pos })
|
|
||||||
or item.text
|
|
||||||
end, picker:selected({ fallback = true }))
|
|
||||||
|
|
||||||
require("opencode").prompt(table.concat(items, ", ") .. " ")
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
profiler.enabled = false;
|
profiler.enabled = false;
|
||||||
@ -1831,7 +1704,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_plenary = {
|
_plenary = {
|
||||||
name = "plenary.nvim";
|
name = "plenary";
|
||||||
pkg = pkgs.vimPlugins.plenary-nvim;
|
pkg = pkgs.vimPlugins.plenary-nvim;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
};
|
};
|
||||||
@ -2250,12 +2123,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
yazi = rec {
|
yazi = rec {
|
||||||
name = "yazi.nvim";
|
name = "yazi";
|
||||||
pkg = pkgs.vimPlugins.yazi-nvim;
|
pkg = pkgs.vimPlugins.yazi-nvim;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
event = ["VeryLazy"];
|
event = ["VeryLazy"];
|
||||||
dependencies = [_plenary];
|
dependencies = [_plenary];
|
||||||
config = mkDefaultConfigFor "yazi";
|
config = mkDefaultConfig name;
|
||||||
opts = {
|
opts = {
|
||||||
open_for_directories = true;
|
open_for_directories = true;
|
||||||
highlight_hovered_buffers_in_same_directory = false;
|
highlight_hovered_buffers_in_same_directory = false;
|
||||||
@ -2287,7 +2160,6 @@ 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
|
||||||
@ -2317,7 +2189,6 @@ in {
|
|||||||
noice # Modern UI overhaul, e.g. floating cmdline
|
noice # Modern UI overhaul, e.g. floating cmdline
|
||||||
# obsidian # Integration with Obsidian.md
|
# obsidian # Integration with Obsidian.md
|
||||||
|
|
||||||
opencode # TODO: Doesn't work, can't find "opencode --port" process
|
|
||||||
# overseer # Run tasks from within neovim (e.g. cargo) # TODO:
|
# overseer # Run tasks from within neovim (e.g. cargo) # TODO:
|
||||||
|
|
||||||
persisted # Session management
|
persisted # Session management
|
||||||
|
|||||||
@ -66,16 +66,3 @@ local rmpc =
|
|||||||
vim.g.toggle_rmpc = function()
|
vim.g.toggle_rmpc = function()
|
||||||
rmpc:toggle()
|
rmpc:toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Toggle FailNix UI
|
|
||||||
local failnix = Terminal:new({
|
|
||||||
cmd = "cd /home/christoph/Notes/TU/MastersThesis/FailNix && nix develop --command bash -c 'perl ./scripts/menu.pl'",
|
|
||||||
hidden = true,
|
|
||||||
close_on_exit = true,
|
|
||||||
auto_scroll = false,
|
|
||||||
direction = "float",
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.g.toggle_failnix = function()
|
|
||||||
failnix:toggle()
|
|
||||||
end
|
|
||||||
|
|||||||
@ -340,13 +340,6 @@ _: let
|
|||||||
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
|
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
|
||||||
options.desc = "Show Rmpc";
|
options.desc = "Show Rmpc";
|
||||||
}
|
}
|
||||||
# TODO: Something with the environment activation doesn't work
|
|
||||||
# {
|
|
||||||
# mode = "n";
|
|
||||||
# key = "<leader>.";
|
|
||||||
# action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
|
|
||||||
# options.desc = "Show FailNix";
|
|
||||||
# }
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>i";
|
key = "<leader>i";
|
||||||
@ -415,58 +408,6 @@ _: let
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
leader-opencode = [
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>o";
|
|
||||||
action = "+opencode";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>oo";
|
|
||||||
action.__raw = ''function() require("opencode").ask("@this: ") end'';
|
|
||||||
options.desc = "Ask about @this";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>od";
|
|
||||||
action.__raw = ''function() require("opencode").prompt("Explain @diagnostics") end'';
|
|
||||||
options.desc = "Explain @diagnostics";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>oe";
|
|
||||||
action.__raw = ''function() require("opencode").prompt("Explain @this and its context") end'';
|
|
||||||
options.desc = "Explain @this";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>or";
|
|
||||||
action.__raw = ''function() require("opencode").prompt("Review @this for correctness and readability") end'';
|
|
||||||
options.desc = "Review @this";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = ["n" "v"];
|
|
||||||
key = "<leader>os";
|
|
||||||
action.__raw = ''function() require("opencode").select() end'';
|
|
||||||
options.desc = "Select Action";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>oa";
|
|
||||||
action.__raw = ''function() return require("opencode").operator("@this ") .. "_" end'';
|
|
||||||
options.desc = "Append Line to Prompt";
|
|
||||||
options.expr = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "v";
|
|
||||||
key = "<leader>oa";
|
|
||||||
action.__raw = ''function() return require("opencode").operator("@this ") end'';
|
|
||||||
options.desc = "Append Range to Prompt";
|
|
||||||
options.expr = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
leader-file = [
|
leader-file = [
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
@ -564,48 +505,6 @@ _: 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 = [
|
||||||
@ -1057,7 +956,6 @@ in
|
|||||||
no-leader
|
no-leader
|
||||||
|
|
||||||
leader
|
leader
|
||||||
leader-opencode
|
|
||||||
leader-file
|
leader-file
|
||||||
leader-help
|
leader-help
|
||||||
leader-quit
|
leader-quit
|
||||||
|
|||||||
@ -19,51 +19,30 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk = let
|
gtk = {
|
||||||
gtkConfig = {
|
enable = true;
|
||||||
enable = true;
|
iconTheme.package = color.iconPackage;
|
||||||
|
iconTheme.name = color.iconTheme;
|
||||||
|
|
||||||
colorScheme = "dark";
|
colorScheme = "dark";
|
||||||
|
gtk3.colorScheme = "dark";
|
||||||
|
gtk4.colorScheme = "dark";
|
||||||
|
|
||||||
iconTheme = {
|
theme = {
|
||||||
package = color.iconPackage;
|
# name = "adw-gtk3-dark";
|
||||||
name = color.iconTheme;
|
# package = pkgs.adw-gtk3;
|
||||||
};
|
name = "catppuccin-mocha-mauve-standard";
|
||||||
|
package = pkgs.catppuccin-gtk.override {
|
||||||
cursorTheme = {
|
variant = "mocha";
|
||||||
name = color.cursor;
|
accents = ["mauve"];
|
||||||
package = color.cursorPackage;
|
size = "standard";
|
||||||
};
|
|
||||||
|
|
||||||
theme = {
|
|
||||||
# name = "adw-gtk3-dark";
|
|
||||||
# package = pkgs.adw-gtk3;
|
|
||||||
name = "catppuccin-mocha-mauve-standard";
|
|
||||||
package = pkgs.catppuccin-gtk.override {
|
|
||||||
variant = "mocha";
|
|
||||||
accents = ["mauve"];
|
|
||||||
size = "standard";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkExtraConfig = {
|
gtk3.extraConfig = {
|
||||||
gtk-application-prefer-dark-theme = 1;
|
gtk-application-prefer-dark-theme = 1;
|
||||||
};
|
};
|
||||||
in
|
};
|
||||||
gtkConfig
|
|
||||||
// {
|
|
||||||
gtk3 =
|
|
||||||
gtkConfig
|
|
||||||
// {
|
|
||||||
extraConfig = gtkExtraConfig;
|
|
||||||
};
|
|
||||||
gtk4 =
|
|
||||||
gtkConfig
|
|
||||||
// {
|
|
||||||
extraConfig = gtkExtraConfig;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dconf = {
|
dconf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -151,9 +130,8 @@ in {
|
|||||||
xwayland-satellite
|
xwayland-satellite
|
||||||
# ncpamixer # Audio control
|
# ncpamixer # Audio control
|
||||||
wiremix # Audio control
|
wiremix # Audio control
|
||||||
awww
|
swww
|
||||||
waypaper
|
waypaper
|
||||||
wtype # For elephant
|
|
||||||
|
|
||||||
# GTK apps (look good and work well with xdg portals)
|
# GTK apps (look good and work well with xdg portals)
|
||||||
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
|
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
|
||||||
@ -217,10 +195,6 @@ in {
|
|||||||
default = ["desktopapplications"];
|
default = ["desktopapplications"];
|
||||||
};
|
};
|
||||||
empty = ["desktopapplications"];
|
empty = ["desktopapplications"];
|
||||||
|
|
||||||
selection_wrap = true;
|
|
||||||
hide_quick_activation = true;
|
|
||||||
actions_as_menu = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
themes."cattpuccin-mocha" = let
|
themes."cattpuccin-mocha" = let
|
||||||
@ -461,27 +435,10 @@ in {
|
|||||||
prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars)
|
prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars)
|
||||||
|
|
||||||
spawn-at-startup = [
|
spawn-at-startup = [
|
||||||
{
|
{argv = ["ashell" "-c" "${config.paths.dotfiles}/ashell/config.toml"];}
|
||||||
argv = [
|
{argv = ["waypaper" "--restore"];}
|
||||||
"ashell"
|
|
||||||
"-c"
|
|
||||||
"${config.paths.dotfiles}/ashell/config.toml"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
argv = [
|
|
||||||
"waypaper"
|
|
||||||
"--restore"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{argv = ["kitty" "--hold" "fastfetch"];}
|
||||||
argv = [
|
|
||||||
"kitty"
|
|
||||||
"--hold"
|
|
||||||
"fastfetch"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{argv = ["fcitx5"];}
|
{argv = ["fcitx5"];}
|
||||||
# {argv = ["zeal"];}
|
# {argv = ["zeal"];}
|
||||||
# {argv = ["protonvpn-app"];}
|
# {argv = ["protonvpn-app"];}
|
||||||
@ -492,36 +449,16 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
workspaces = {
|
workspaces = {
|
||||||
"1" = {
|
"1" = {open-on-output = "DP-1";};
|
||||||
open-on-output = "DP-1";
|
"2" = {open-on-output = "DP-1";};
|
||||||
};
|
"3" = {open-on-output = "DP-1";};
|
||||||
"2" = {
|
"4" = {open-on-output = "DP-1";};
|
||||||
open-on-output = "DP-1";
|
"5" = {open-on-output = "DP-1";};
|
||||||
};
|
"6" = {open-on-output = "DP-1";};
|
||||||
"3" = {
|
"7" = {open-on-output = "DP-1";};
|
||||||
open-on-output = "DP-1";
|
"8" = {open-on-output = "DP-1";};
|
||||||
};
|
"9" = {open-on-output = "DP-1";};
|
||||||
"4" = {
|
"10" = {open-on-output = "DP-2";};
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"5" = {
|
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"6" = {
|
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"7" = {
|
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"8" = {
|
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"9" = {
|
|
||||||
open-on-output = "DP-1";
|
|
||||||
};
|
|
||||||
"10" = {
|
|
||||||
open-on-output = "DP-2";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
@ -562,12 +499,8 @@ in {
|
|||||||
border = {
|
border = {
|
||||||
enable = true;
|
enable = true;
|
||||||
width = 2;
|
width = 2;
|
||||||
active = {
|
active = {color = color.hex.accent;};
|
||||||
color = color.hex.accent;
|
inactive = {color = color.hex.base;};
|
||||||
};
|
|
||||||
inactive = {
|
|
||||||
color = color.hex.base;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This border is drawn OUTSIDE of the focused window
|
# This border is drawn OUTSIDE of the focused window
|
||||||
@ -578,9 +511,7 @@ in {
|
|||||||
# Hint where a dragged window will be inserted
|
# Hint where a dragged window will be inserted
|
||||||
insert-hint = {
|
insert-hint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
display = {
|
display = {color = color.hex.accentDim;};
|
||||||
color = color.hex.accentDim;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
always-center-single-column = true;
|
always-center-single-column = true;
|
||||||
@ -603,9 +534,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
gestures = {
|
gestures = {
|
||||||
hot-corners = {
|
hot-corners = {enable = false;};
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window-rules = [
|
window-rules = [
|
||||||
@ -634,50 +563,20 @@ in {
|
|||||||
# opacity = 0.8;
|
# opacity = 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Floating + unmaximized windows
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
{app-id = "com.github.finefindus.eyedropper";}
|
|
||||||
{app-id = "re.sonny.Junction";}
|
|
||||||
];
|
|
||||||
|
|
||||||
open-maximized = false;
|
|
||||||
open-floating = true;
|
|
||||||
|
|
||||||
# default-floating-position = {
|
|
||||||
# x = 0;
|
|
||||||
# y = 0;
|
|
||||||
# relative-to = "center";
|
|
||||||
# };
|
|
||||||
}
|
|
||||||
|
|
||||||
# Specific floating windows
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
{app-id = "re.sonny.Junction";}
|
|
||||||
];
|
|
||||||
default-column-width.fixed = 500;
|
|
||||||
default-window-height.fixed = 250;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
{app-id = "com.github.finefindus.eyedropper";}
|
|
||||||
];
|
|
||||||
default-column-width.fixed = 250;
|
|
||||||
default-window-height.fixed = 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Rules for specific windows
|
# Rules for specific windows
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [{app-id = "Zotero";}];
|
||||||
{app-id = "neovide";}
|
open-on-workspace = "2";
|
||||||
{app-id = "dev.zed.Zed";}
|
}
|
||||||
{app-id = "code";}
|
{
|
||||||
{app-id = "jetbrains-clion";}
|
matches = [{app-id = "neovide";}];
|
||||||
];
|
open-on-workspace = "2";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "jetbrains-clion";}];
|
||||||
open-on-workspace = "2";
|
open-on-workspace = "2";
|
||||||
open-maximized = true;
|
open-maximized = true;
|
||||||
open-focused = true;
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "code-url-handler";}];
|
matches = [{app-id = "code-url-handler";}];
|
||||||
@ -685,21 +584,8 @@ in {
|
|||||||
open-floating = true;
|
open-floating = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [{app-id = "obsidian";}];
|
||||||
{
|
|
||||||
app-id = "electron";
|
|
||||||
title = ".*Chriphost - Obsidian.*";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
open-on-workspace = "3";
|
open-on-workspace = "3";
|
||||||
# open-maximized = true;
|
|
||||||
open-focused = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
matches = [{app-id = "Zotero";}];
|
|
||||||
open-on-workspace = "3";
|
|
||||||
# open-maximized = true;
|
|
||||||
open-focused = true;
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "firefox";}];
|
matches = [{app-id = "firefox";}];
|
||||||
@ -728,12 +614,6 @@ in {
|
|||||||
open-floating = true;
|
open-floating = true;
|
||||||
open-maximized = true;
|
open-maximized = true;
|
||||||
}
|
}
|
||||||
{
|
|
||||||
matches = [{app-id = "factorio";}];
|
|
||||||
open-on-workspace = "6";
|
|
||||||
# open-floating = true;
|
|
||||||
open-maximized = true;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
matches = [{app-id = "signal";}];
|
matches = [{app-id = "signal";}];
|
||||||
open-on-workspace = "7";
|
open-on-workspace = "7";
|
||||||
@ -756,14 +636,6 @@ in {
|
|||||||
draw-behind-window = true;
|
draw-behind-window = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# TODO: Missing niri-flake update
|
|
||||||
# {
|
|
||||||
# matches = [{namespace = "walker";}];
|
|
||||||
#
|
|
||||||
# background-effect = {
|
|
||||||
# blur = true;
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
];
|
];
|
||||||
|
|
||||||
debug = {
|
debug = {
|
||||||
@ -772,211 +644,93 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Move values to config option and set in home/christoph/niri.nix
|
# TODO: Move values to config option and set in home/christoph/niri.nix
|
||||||
binds = with config.lib.niri.actions; let
|
binds = with config.lib.niri.actions; {
|
||||||
sessionMenu = mylib.rofi.mkMenu {
|
# Applications
|
||||||
prompt = "Session";
|
"Mod+T" = {
|
||||||
layers = [
|
action = spawn "kitty";
|
||||||
{
|
hotkey-overlay = {title = "Spawn Kitty.";};
|
||||||
|
};
|
||||||
|
"Mod+E" = {
|
||||||
|
action = spawn "kitty" "--title=Yazi" "yazi";
|
||||||
|
hotkey-overlay = {title = "Spawn Yazi.";};
|
||||||
|
};
|
||||||
|
"Mod+B" = {
|
||||||
|
action = spawn "kitty" "--title=Btop" "btop";
|
||||||
|
hotkey-overlay = {title = "Spawn Btop.";};
|
||||||
|
};
|
||||||
|
"Mod+R" = {
|
||||||
|
action = spawn "kitty" "--title=Rmpc" "rmpc";
|
||||||
|
hotkey-overlay = {title = "Spawn Rmpc.";};
|
||||||
|
};
|
||||||
|
"Mod+N" = {
|
||||||
|
action = spawn "neovide";
|
||||||
|
hotkey-overlay = {title = "Spawn Neovide.";};
|
||||||
|
};
|
||||||
|
"Mod+Ctrl+N" = {
|
||||||
|
action = spawn "kitty" "--title=Navi" "navi";
|
||||||
|
hotkey-overlay = {title = "Call Navi for help.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+N" = {
|
||||||
|
action = spawn "neovide" "${config.paths.dotfiles}/navi/christoph.cheat";
|
||||||
|
hotkey-overlay = {title = "Edit the Navi cheats.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+F" = {
|
||||||
|
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
|
||||||
|
hotkey-overlay = {title = "Edit the NixFlake.";};
|
||||||
|
};
|
||||||
|
"Mod+W" = {
|
||||||
|
action = spawn "waypaper";
|
||||||
|
hotkey-overlay = {title = "Open wallpaper chooser.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+W" = {
|
||||||
|
action = spawn "waypaper" "--random";
|
||||||
|
hotkey-overlay = {title = "Select random wallpaper.";};
|
||||||
|
};
|
||||||
|
|
||||||
|
"Mod+A" = {
|
||||||
|
action = spawn "walker" "-m" "desktopapplications";
|
||||||
|
hotkey-overlay = {title = "Toggle the application launcher.";};
|
||||||
|
};
|
||||||
|
"Mod+Shift+A" = {
|
||||||
|
action = spawn "walker" "-m" "providerlist";
|
||||||
|
hotkey-overlay = {title = "Toggle the launcher.";};
|
||||||
|
};
|
||||||
|
"Mod+Escape" = let
|
||||||
|
powerMenu = mylib.rofi.mkSimpleMenu rec {
|
||||||
|
prompt = "Session";
|
||||||
|
attrs = {
|
||||||
" Poweroff" = "poweroff";
|
" Poweroff" = "poweroff";
|
||||||
" Reboot" = "reboot";
|
" Reboot" = "reboot";
|
||||||
" Lock" = "loginctl lock-session";
|
" Lock" = "loginctl lock-session";
|
||||||
# " Reload Hyprpanel" = "systemctl --user restart hyprpanel.service";
|
# " Reload Hyprpanel" = "systemctl --user restart hyprpanel.service";
|
||||||
# " Reload Hyprland" = "hyprctl reload";
|
# " Reload Hyprland" = "hyprctl reload";
|
||||||
# " Exit Hyprland" = "hyprctl dispatch exit";
|
# " Exit Hyprland" = "hyprctl dispatch exit";
|
||||||
" Exit Niri" = "niri msg action quit";
|
};
|
||||||
}
|
command = "walker -d -p ${prompt}";
|
||||||
];
|
|
||||||
prompts = ["Select Session Action"];
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
wallpaperMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "Wallpaper";
|
|
||||||
layers = [
|
|
||||||
"eza -1 ${config.paths.nixflake}/wallpapers"
|
|
||||||
];
|
|
||||||
prompts = ["Select Wallpaper"];
|
|
||||||
# Use waypaper instead of swww directly, so the chosen wallpaper will be restored after reboot
|
|
||||||
command = "waypaper --wallpaper ${config.paths.nixflake}/wallpapers/$OPTION0";
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
# No lectures anymore :) - Kept as example
|
|
||||||
lecturesMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "Lecture";
|
|
||||||
layers = [
|
|
||||||
"eza -1 -D ~/Notes/TU"
|
|
||||||
"eza -1 -D ~/Notes/TU/$OPTION0"
|
|
||||||
"eza -1 ~/Notes/TU/$OPTION0/$OPTION1 | grep '.pdf'"
|
|
||||||
];
|
|
||||||
prompts = [
|
|
||||||
"Select Lecture"
|
|
||||||
"Select Subfolder"
|
|
||||||
"Select Deck"
|
|
||||||
];
|
|
||||||
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
# niriMenu = mylib.rofi.mkMenu {
|
|
||||||
# prompt = "Niri";
|
|
||||||
# layers = [
|
|
||||||
# {
|
|
||||||
# " Take Region Screenshot" = "niri msg action screenshot -p false";
|
|
||||||
# " Take Window Screenshot" = "niri msg action screenshot-window -p false -d true";
|
|
||||||
# " Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true";
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# prompts = ["Execute Niri Action"];
|
|
||||||
# rofiCmd = "walker -d";
|
|
||||||
# };
|
|
||||||
globalMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "Global";
|
|
||||||
layers = [
|
|
||||||
{
|
|
||||||
" Control Session" = "${sessionMenu}/bin/rofi-menu-Session";
|
|
||||||
" Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
|
||||||
" View Keybindings" = "niri msg action show-hotkey-overlay";
|
|
||||||
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
|
|
||||||
# " Niri Actions" = "${niriMenu}/bin/rofi-menu-Niri";
|
|
||||||
# TODO: What else? SSH menu?
|
|
||||||
}
|
|
||||||
];
|
|
||||||
prompts = ["Select Action"];
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
# DMenu
|
|
||||||
"Mod+Shift+A" = {
|
|
||||||
action = spawn "walker" "-m" "providerlist";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Toggle the launcher.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+A" = {
|
|
||||||
action = spawn "walker" "-m" "desktopapplications";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Toggle the application launcher.";
|
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
action = spawn "${powerMenu}/bin/rofi-menu-Session";
|
||||||
|
hotkey-overlay = {title = "Toggle the session menu.";};
|
||||||
};
|
};
|
||||||
"Mod+C" = {
|
"Mod+C" = {
|
||||||
action = spawn "walker" "-m" "clipboard";
|
action = spawn "walker" "-m" "clipboard";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Show clipboard history.";};
|
||||||
title = "Show clipboard history.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Escape" = {
|
|
||||||
action = spawn "${sessionMenu}/bin/rofi-menu-Session";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Toggle the session menu.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+W" = {
|
|
||||||
action = spawn "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Open wallpaper menu.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+D" = {
|
|
||||||
action = spawn "${globalMenu}/bin/rofi-menu-Global";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Open global menu.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Applications
|
|
||||||
"Mod+Ctrl+W" = {
|
|
||||||
action = spawn "waypaper";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Open waypaper.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Shift+W" = {
|
|
||||||
action = spawn "waypaper" "--random";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Select random wallpaper.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+T" = {
|
|
||||||
action = spawn "kitty";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Spawn Kitty.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+E" = {
|
|
||||||
action = spawn "kitty" "--title=Yazi" "yazi";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Spawn Yazi.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+B" = {
|
|
||||||
action = spawn "kitty" "--title=Btop" "btop";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Spawn Btop.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+R" = {
|
|
||||||
action = spawn "kitty" "--title=Rmpc" "rmpc";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Spawn Rmpc.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+N" = {
|
|
||||||
action = spawn "neovide";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Spawn Neovide.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Ctrl+N" = {
|
|
||||||
action = spawn "kitty" "--title=Navi" "navi";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Call Navi for help.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Shift+N" = {
|
|
||||||
action = spawn "neovide" "${config.paths.dotfiles}/navi/christoph.cheat";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Edit the Navi cheats.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Shift+F" = {
|
|
||||||
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Edit the NixFlake.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
"Mod+S" = {
|
"Mod+S" = {
|
||||||
action.screenshot-window = {
|
action.screenshot-window = {write-to-disk = true;};
|
||||||
write-to-disk = true;
|
hotkey-overlay = {title = "Take a screenshot of the current window.";};
|
||||||
show-pointer = false;
|
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Take a screenshot of the current window.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Ctrl+S" = {
|
|
||||||
action.screenshot-screen = {
|
|
||||||
write-to-disk = true;
|
|
||||||
show-pointer = false;
|
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Take a screenshot of the current screen.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+S" = {
|
"Mod+Shift+S" = {
|
||||||
action.screenshot = {
|
action.screenshot = {show-pointer = true;};
|
||||||
show-pointer = false;
|
hotkey-overlay = {title = "Take a screenshot of a region.";};
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Take a screenshot of a region.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Niri
|
# Niri
|
||||||
"Mod+Shift+Slash" = {
|
"Mod+Shift+Slash" = {
|
||||||
action = show-hotkey-overlay;
|
action = show-hotkey-overlay;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# "Alt+Tab" = {
|
# "Alt+Tab" = {
|
||||||
# action = "next-window";
|
# action = "next-window";
|
||||||
@ -990,283 +744,191 @@ in {
|
|||||||
# Audio
|
# Audio
|
||||||
"XF86AudioRaiseVolume" = {
|
"XF86AudioRaiseVolume" = {
|
||||||
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%+";
|
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%+";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"XF86AudioLowerVolume" = {
|
"XF86AudioLowerVolume" = {
|
||||||
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%-";
|
action = spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%-";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"XF86AudioPlay" = {
|
"XF86AudioPlay" = {
|
||||||
action = spawn "playerctl" "play-pause";
|
action = spawn "playerctl" "play-pause";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"XF86AudioPrev" = {
|
"XF86AudioPrev" = {
|
||||||
action = spawn "playerctl" "previous";
|
action = spawn "playerctl" "previous";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"XF86AudioNext" = {
|
"XF86AudioNext" = {
|
||||||
action = spawn "playerctl" "next";
|
action = spawn "playerctl" "next";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Niri windows
|
# Niri windows
|
||||||
"Mod+Q" = {
|
"Mod+Q" = {
|
||||||
action = close-window;
|
action = close-window;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Close the current window.";};
|
||||||
title = "Close the current window.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+F" = {
|
"Mod+F" = {
|
||||||
action = fullscreen-window;
|
action = fullscreen-window;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle between fullscreen and tiled window.";};
|
||||||
title = "Toggle between fullscreen and tiled window.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Equal" = {
|
"Mod+Equal" = {
|
||||||
action = set-column-width "+10%";
|
action = set-column-width "+10%";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Increase column width";};
|
||||||
title = "Increase column width";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Minus" = {
|
"Mod+Minus" = {
|
||||||
action = set-column-width "-10%";
|
action = set-column-width "-10%";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Decrease column width";};
|
||||||
title = "Decrease column width";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+M" = {
|
"Mod+Shift+M" = {
|
||||||
action = set-column-width "50%";
|
action = set-column-width "50%";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Set column width to 50%";};
|
||||||
title = "Set column width to 50%";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+M" = {
|
"Mod+M" = {
|
||||||
action = maximize-column;
|
action = maximize-column;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Maximize column.";};
|
||||||
title = "Maximize column.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Comma" = {
|
"Mod+Comma" = {
|
||||||
action = reset-window-height;
|
action = reset-window-height;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Reset window height.";};
|
||||||
title = "Reset window height.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+V" = {
|
"Mod+V" = {
|
||||||
action = toggle-window-floating;
|
action = toggle-window-floating;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle between floating and tiled window.";};
|
||||||
title = "Toggle between floating and tiled window.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+O" = {
|
"Mod+O" = {
|
||||||
action = toggle-overview;
|
action = toggle-overview;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle overlay.";};
|
||||||
title = "Toggle overlay.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+H" = {
|
"Mod+H" = {
|
||||||
action = focus-column-or-monitor-left;
|
action = focus-column-or-monitor-left;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Focus column on the left. Equivalent bindings for other directions.";};
|
||||||
title = "Focus column on the left. Equivalent bindings for other directions.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+J" = {
|
"Mod+J" = {
|
||||||
action = focus-window-or-workspace-down;
|
action = focus-window-or-workspace-down;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+K" = {
|
"Mod+K" = {
|
||||||
action = focus-window-or-workspace-up;
|
action = focus-window-or-workspace-up;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+L" = {
|
"Mod+L" = {
|
||||||
action = focus-column-or-monitor-right;
|
action = focus-column-or-monitor-right;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+WheelScrollUp" = {
|
"Mod+WheelScrollUp" = {
|
||||||
action = focus-column-left;
|
action = focus-column-left;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Focus column on the left. Equivalent binding for other direction.";};
|
||||||
title = "Focus column on the left. Equivalent binding for other direction.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+WheelScrollDown" = {
|
"Mod+WheelScrollDown" = {
|
||||||
action = focus-column-right;
|
action = focus-column-right;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+WheelScrollUp" = {
|
"Mod+Shift+WheelScrollUp" = {
|
||||||
action = focus-workspace-up;
|
action = focus-workspace-up;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Focus previous workspace. Equivalent binding for other direction.";};
|
||||||
title = "Focus previous workspace. Equivalent binding for other direction.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+WheelScrollDown" = {
|
"Mod+Shift+WheelScrollDown" = {
|
||||||
action = focus-workspace-down;
|
action = focus-workspace-down;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+H" = {
|
"Mod+Shift+H" = {
|
||||||
action = move-column-left-or-to-monitor-left;
|
action = move-column-left-or-to-monitor-left;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Move column to the left. Equivalent bindings for other directions.";};
|
||||||
title = "Move column to the left. Equivalent bindings for other directions.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+J" = {
|
"Mod+Shift+J" = {
|
||||||
action = move-window-down-or-to-workspace-down;
|
action = move-window-down-or-to-workspace-down;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+K" = {
|
"Mod+Shift+K" = {
|
||||||
action = move-window-up-or-to-workspace-up;
|
action = move-window-up-or-to-workspace-up;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+L" = {
|
"Mod+Shift+L" = {
|
||||||
action = move-column-right-or-to-monitor-right;
|
action = move-column-right-or-to-monitor-right;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Niri workspaces
|
# Niri workspaces
|
||||||
"Mod+1" = {
|
"Mod+1" = {
|
||||||
action = focus-workspace 1;
|
action = focus-workspace 1;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Focus workspace 1. Equivalent bindings for other workspaces.";};
|
||||||
title = "Focus workspace 1. Equivalent bindings for other workspaces.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+2" = {
|
"Mod+2" = {
|
||||||
action = focus-workspace 2;
|
action = focus-workspace 2;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+3" = {
|
"Mod+3" = {
|
||||||
action = focus-workspace 3;
|
action = focus-workspace 3;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+4" = {
|
"Mod+4" = {
|
||||||
action = focus-workspace 4;
|
action = focus-workspace 4;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+5" = {
|
"Mod+5" = {
|
||||||
action = focus-workspace 5;
|
action = focus-workspace 5;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+6" = {
|
"Mod+6" = {
|
||||||
action = focus-workspace 6;
|
action = focus-workspace 6;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+7" = {
|
"Mod+7" = {
|
||||||
action = focus-workspace 7;
|
action = focus-workspace 7;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+8" = {
|
"Mod+8" = {
|
||||||
action = focus-workspace 8;
|
action = focus-workspace 8;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+9" = {
|
"Mod+9" = {
|
||||||
action = focus-workspace 9;
|
action = focus-workspace 9;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+0" = {
|
"Mod+0" = {
|
||||||
action = focus-workspace 10;
|
action = focus-workspace 10;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+1" = {
|
"Mod+Shift+1" = {
|
||||||
action.move-window-to-workspace = 1;
|
action.move-window-to-workspace = 1;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Move current window to workspace 1. Equivalent bindings for other workspaces.";};
|
||||||
title = "Move current window to workspace 1. Equivalent bindings for other workspaces.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+2" = {
|
"Mod+Shift+2" = {
|
||||||
action.move-window-to-workspace = 2;
|
action.move-window-to-workspace = 2;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+3" = {
|
"Mod+Shift+3" = {
|
||||||
action.move-window-to-workspace = 3;
|
action.move-window-to-workspace = 3;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+4" = {
|
"Mod+Shift+4" = {
|
||||||
action.move-window-to-workspace = 4;
|
action.move-window-to-workspace = 4;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+5" = {
|
"Mod+Shift+5" = {
|
||||||
action.move-window-to-workspace = 5;
|
action.move-window-to-workspace = 5;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+6" = {
|
"Mod+Shift+6" = {
|
||||||
action.move-window-to-workspace = 6;
|
action.move-window-to-workspace = 6;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+7" = {
|
"Mod+Shift+7" = {
|
||||||
action.move-window-to-workspace = 7;
|
action.move-window-to-workspace = 7;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+8" = {
|
"Mod+Shift+8" = {
|
||||||
action.move-window-to-workspace = 8;
|
action.move-window-to-workspace = 8;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+9" = {
|
"Mod+Shift+9" = {
|
||||||
action.move-window-to-workspace = 9;
|
action.move-window-to-workspace = 9;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+0" = {
|
"Mod+Shift+0" = {
|
||||||
action.move-window-to-workspace = 10;
|
action.move-window-to-workspace = 10;
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {hidden = true;};
|
||||||
hidden = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,250 +0,0 @@
|
|||||||
{
|
|
||||||
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 {
|
|
||||||
# TODO: Add extra packages option and use that from host-specific configs
|
|
||||||
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
|
|
||||||
ttyper
|
|
||||||
wiki-tui
|
|
||||||
|
|
||||||
# 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
|
|
||||||
bandwhich
|
|
||||||
snitch
|
|
||||||
|
|
||||||
# Use NixCommunity binary cache
|
|
||||||
cachix
|
|
||||||
]
|
|
||||||
|
|
||||||
# Common !headless packages
|
|
||||||
(lib.optionals (!headless) [
|
|
||||||
ripdrag # drag & drop from terminal
|
|
||||||
# jellyfin-tui # Use module
|
|
||||||
|
|
||||||
inputs.masssprings.packages.${stdenv.hostPlatform.system}.default
|
|
||||||
])
|
|
||||||
|
|
||||||
# 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
|
|
||||||
disktui
|
|
||||||
lldb
|
|
||||||
|
|
||||||
# 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)) [
|
|
||||||
wl-clipboard
|
|
||||||
|
|
||||||
# Proton
|
|
||||||
proton-vpn
|
|
||||||
protonmail-bridge-gui
|
|
||||||
|
|
||||||
# GUI stuff
|
|
||||||
signal-desktop
|
|
||||||
anki
|
|
||||||
nextcloud-client
|
|
||||||
keepassxc
|
|
||||||
thunderbird # TODO: Email module
|
|
||||||
obsidian
|
|
||||||
zotero
|
|
||||||
zeal # docs browser
|
|
||||||
vlc
|
|
||||||
audacity
|
|
||||||
# ferdium
|
|
||||||
# feishin # electron :(
|
|
||||||
playerctl # Media player control
|
|
||||||
czkawka-full # file deduplicator
|
|
||||||
binaryninja-free # reverse engineering
|
|
||||||
tableplus # database explorer
|
|
||||||
# opencode-desktop
|
|
||||||
lmstudio # TODO: Ollama
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# GTK-Apps
|
|
||||||
# gnome-calculator
|
|
||||||
# gnome-calendar
|
|
||||||
# helvum # unmaintained
|
|
||||||
crosspipe
|
|
||||||
nautilus # Just in case
|
|
||||||
font-manager # Previews fonts, but doesn't set them
|
|
||||||
gparted
|
|
||||||
resources
|
|
||||||
# celluloid
|
|
||||||
# cine
|
|
||||||
eyedropper
|
|
||||||
junction
|
|
||||||
])
|
|
||||||
|
|
||||||
# Darwin exclusive packages
|
|
||||||
(lib.optionals pkgs.stdenv.isDarwin [
|
|
||||||
# Use homebrew instead
|
|
||||||
# alt-tab-macos
|
|
||||||
# discord
|
|
||||||
# obsidian
|
|
||||||
# nextcloud-client
|
|
||||||
# proton-vpn
|
|
||||||
# iina
|
|
||||||
|
|
||||||
# TODO: Update the docs module to be darwinix compatible
|
|
||||||
# - The filepaths need to be adapted
|
|
||||||
texliveFull
|
|
||||||
typst
|
|
||||||
])
|
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
# The home-manager management tool.
|
|
||||||
# Will only be enabled if HM is installed standalone.
|
|
||||||
home-manager.enable = true;
|
|
||||||
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
silent = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# This replaces the normal direnv.enableFishIntegration.
|
|
||||||
# direnv-instant = {
|
|
||||||
# enable = true;
|
|
||||||
# enableFishIntegration = true;
|
|
||||||
# enableKittyIntegration = true;
|
|
||||||
# settings.use_cache = 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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable common packages";
|
|
||||||
}
|
|
||||||
@ -47,8 +47,6 @@ in {
|
|||||||
wrap_navigation: false,
|
wrap_navigation: false,
|
||||||
enable_mouse: true,
|
enable_mouse: true,
|
||||||
enable_config_hot_reload: true,
|
enable_config_hot_reload: true,
|
||||||
enable_lyrics_hot_reload: true,
|
|
||||||
enable_lyrics_index: true,
|
|
||||||
status_update_interval_ms: 1000,
|
status_update_interval_ms: 1000,
|
||||||
rewind_to_start_sec: 30,
|
rewind_to_start_sec: 30,
|
||||||
lyrics_dir: "${config.home.homeDirectory}/Music",
|
lyrics_dir: "${config.home.homeDirectory}/Music",
|
||||||
@ -90,37 +88,24 @@ in {
|
|||||||
(
|
(
|
||||||
name: "Queue (1)",
|
name: "Queue (1)",
|
||||||
pane: Split(
|
pane: Split(
|
||||||
|
borders: "NONE",
|
||||||
direction: Horizontal,
|
direction: Horizontal,
|
||||||
panes: [
|
panes: [
|
||||||
// Left Column (Queue + Cava)
|
// Left Column (Queue + Cava)
|
||||||
(
|
(
|
||||||
size: "70%",
|
size: "70%",
|
||||||
|
borders: "NONE",
|
||||||
pane: Split(
|
pane: Split(
|
||||||
direction: Vertical,
|
direction: Vertical,
|
||||||
panes: [
|
panes: [
|
||||||
(
|
(
|
||||||
size: "75%",
|
size: "75%",
|
||||||
borders: "ALL",
|
borders: "ALL",
|
||||||
border_symbols: Rounded,
|
pane: Pane(Queue),
|
||||||
pane: Split(
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [
|
|
||||||
(
|
|
||||||
size: "2",
|
|
||||||
pane: Pane(QueueHeader()),
|
|
||||||
),
|
|
||||||
(
|
|
||||||
size: "100%",
|
|
||||||
pane: Pane(Queue),
|
|
||||||
),
|
|
||||||
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
size: "25%",
|
size: "25%",
|
||||||
borders: "ALL",
|
borders: "ALL",
|
||||||
border_symbols: Rounded,
|
|
||||||
pane: Pane(Cava),
|
pane: Pane(Cava),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
@ -130,19 +115,18 @@ in {
|
|||||||
// Right Column (AlbumArt + Lyrics)
|
// Right Column (AlbumArt + Lyrics)
|
||||||
(
|
(
|
||||||
size: "30%",
|
size: "30%",
|
||||||
|
borders: "NONE",
|
||||||
pane: Split(
|
pane: Split(
|
||||||
direction: Vertical,
|
direction: Vertical,
|
||||||
panes: [
|
panes: [
|
||||||
(
|
(
|
||||||
size: "75%",
|
size: "75%",
|
||||||
borders: "ALL",
|
borders: "ALL",
|
||||||
border_symbols: Rounded,
|
|
||||||
pane: Pane(AlbumArt),
|
pane: Pane(AlbumArt),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
size: "25%",
|
size: "25%",
|
||||||
borders: "ALL",
|
borders: "ALL",
|
||||||
border_symbols: Rounded,
|
|
||||||
pane: Pane(Lyrics),
|
pane: Pane(Lyrics),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
@ -153,59 +137,31 @@ in {
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
name: "Albums (2)",
|
name: "Albums (2)",
|
||||||
pane: Split(
|
pane: Pane(Albums),
|
||||||
size: "100%",
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Albums))],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
name: "Album Artists (3)",
|
name: "Album Artists (3)",
|
||||||
pane: Split(
|
pane: Pane(AlbumArtists),
|
||||||
size: "100%",
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(AlbumArtists))],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
name: "Artists (4)",
|
name: "Artists (4)",
|
||||||
pane: Split(
|
pane: Pane(Artists),
|
||||||
size: "100%",
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Artists))],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
name: "Playlists (5)",
|
name: "Playlists (5)",
|
||||||
pane: Split(
|
pane: Pane(Playlists),
|
||||||
size: "100%",
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Playlists))],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
// (
|
// (
|
||||||
// name: "Directories (6)",
|
// name: "Directories (6)",
|
||||||
// pane: Split(
|
// pane: Pane(Directories),
|
||||||
// size: "100%",
|
|
||||||
// direction: Vertical,
|
|
||||||
// panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Directories))],
|
|
||||||
// )
|
|
||||||
// ),
|
// ),
|
||||||
(
|
(
|
||||||
name: "Search (6)",
|
name: "Search (6)",
|
||||||
pane: Split(
|
pane: Pane(Search),
|
||||||
size: "100%",
|
|
||||||
direction: Vertical,
|
|
||||||
panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Search))],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
// (
|
// (
|
||||||
// name: "Visualizer (8)",
|
// name: "Visualizer (8)",
|
||||||
// pane: Split(
|
// pane: Pane(Cava),
|
||||||
// size: "100%",
|
|
||||||
// direction: Vertical,
|
|
||||||
// panes: [(size: "100%", borders: "ALL", border_symbols: Rounded, pane: Pane(Cava))],
|
|
||||||
// )
|
|
||||||
// ),
|
// ),
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -331,6 +287,8 @@ in {
|
|||||||
#![enable(unwrap_variant_newtypes)]
|
#![enable(unwrap_variant_newtypes)]
|
||||||
(
|
(
|
||||||
default_album_art_path: None,
|
default_album_art_path: None,
|
||||||
|
show_song_table_header: true,
|
||||||
|
draw_borders: true,
|
||||||
format_tag_separator: " | ",
|
format_tag_separator: " | ",
|
||||||
browser_column_widths: [20, 38, 42],
|
browser_column_widths: [20, 38, 42],
|
||||||
modal_backdrop: false,
|
modal_backdrop: false,
|
||||||
@ -437,8 +395,6 @@ in {
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
pane: Pane(Tabs),
|
pane: Pane(Tabs),
|
||||||
borders: "ALL",
|
|
||||||
border_symbols: Rounded,
|
|
||||||
size: "3",
|
size: "3",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,73 +0,0 @@
|
|||||||
{
|
|
||||||
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;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
"*" = {
|
|
||||||
ForwardAgent = false;
|
|
||||||
AddKeysToAgent =
|
|
||||||
if pkgs.stdenv.isLinux
|
|
||||||
then "no"
|
|
||||||
else "yes"; # Don't have keychain on darwin
|
|
||||||
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;
|
|
||||||
LocalForward = [
|
|
||||||
{
|
|
||||||
# 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;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable ssh";
|
|
||||||
}
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
jellyfin-tui.enable = true;
|
|
||||||
kitty.enable = true;
|
|
||||||
lazygit.enable = true;
|
|
||||||
|
|
||||||
neovim = {
|
|
||||||
enable = true;
|
|
||||||
alias = true;
|
|
||||||
neovide = !headless;
|
|
||||||
};
|
|
||||||
|
|
||||||
ssh.enable = true;
|
|
||||||
tmux.enable = true;
|
|
||||||
yazi.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable terminal tools";
|
|
||||||
}
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
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"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable tmux";
|
|
||||||
}
|
|
||||||
@ -1,89 +0,0 @@
|
|||||||
# TODO: Expose some settings
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
nixosConfig,
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
with mylib.modules; let
|
|
||||||
cfg = config.homemodules.vscode;
|
|
||||||
in {
|
|
||||||
options.homemodules.vscode = import ./options.nix {inherit lib mylib;};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs.vscode = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscode;
|
|
||||||
mutableExtensionsDir = false;
|
|
||||||
|
|
||||||
profiles.default = {
|
|
||||||
enableUpdateCheck = false;
|
|
||||||
enableExtensionUpdateCheck = false;
|
|
||||||
enableMcpIntegration = true;
|
|
||||||
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
|
||||||
# Theme
|
|
||||||
catppuccin.catppuccin-vsc
|
|
||||||
catppuccin.catppuccin-vsc-icons
|
|
||||||
vscode-icons-team.vscode-icons
|
|
||||||
|
|
||||||
# General
|
|
||||||
vscodevim.vim
|
|
||||||
christian-kohler.path-intellisense
|
|
||||||
ryu1kn.partial-diff
|
|
||||||
redhat.vscode-yaml
|
|
||||||
ms-vscode-remote.remote-ssh
|
|
||||||
ms-vscode-remote.remote-ssh-edit
|
|
||||||
ms-vscode.remote-explorer
|
|
||||||
anthropic.claude-code
|
|
||||||
|
|
||||||
# Python
|
|
||||||
ms-python.python
|
|
||||||
ms-python.vscode-pylance
|
|
||||||
ms-python.black-formatter
|
|
||||||
|
|
||||||
# C/C++
|
|
||||||
ms-vscode.cpptools
|
|
||||||
# llvm-vs-code-extensions.vscode-clangd
|
|
||||||
ms-vscode.cmake-tools
|
|
||||||
ms-vscode.makefile-tools
|
|
||||||
# llvm-org.lldb-vscode
|
|
||||||
vadimcn.vscode-lldb
|
|
||||||
# "13xforever".language-x86-64-assembly
|
|
||||||
|
|
||||||
# Latex
|
|
||||||
# james-yu.latex-workshop
|
|
||||||
# valentjn.vscode-ltex
|
|
||||||
];
|
|
||||||
|
|
||||||
keybindings = [];
|
|
||||||
globalSnippets = {};
|
|
||||||
languageSnippets = {};
|
|
||||||
userMcp = {};
|
|
||||||
|
|
||||||
userSettings = {
|
|
||||||
"editor.fontFamily" = config.homemodules.color.font;
|
|
||||||
"editor.fontSize" = 14;
|
|
||||||
"editor.smoothScrolling" = true;
|
|
||||||
"editor.cursorSmoothCaretAnimation" = "on";
|
|
||||||
"workbench.enableExperiments" = false;
|
|
||||||
"workbench.list.smoothScrolling" = true;
|
|
||||||
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
||||||
"workbench.iconTheme" = "catppuccin-mocha";
|
|
||||||
"remote.SSH.configFile" = "~/.ssh/custom-config";
|
|
||||||
"workbench.welcomePage.walkthroughs.openOnInstall" = false;
|
|
||||||
"security.workspace.trust.enabled" = false;
|
|
||||||
"chat.disableAIFeatures" = false;
|
|
||||||
|
|
||||||
# C++
|
|
||||||
# "C_Cpp.intelliSenseEngine" = "disabled"; # IntelliSense conflics with Clangd
|
|
||||||
};
|
|
||||||
|
|
||||||
userTasks = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -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 = ["mpris"]; # "systemd-failed-units"
|
modules-center = ["systemd-failed-units" "mpris"];
|
||||||
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,29 +105,30 @@ 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 = {
|
||||||
interval = 1;
|
states = {
|
||||||
# states = {
|
"warning" = 65;
|
||||||
# "critical" = 85;
|
"critical" = 85;
|
||||||
# };
|
};
|
||||||
format = "<span></span> {load}%";
|
format = "<span></span> {load}%";
|
||||||
# format-critical = "<span color='#${color.hex.red}'><span></span> {load}%</span>";
|
format-warning = "<span color='#${color.hex.yellow}'><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 = {
|
||||||
interval = 1;
|
states = {
|
||||||
# states = {
|
"warning" = 65;
|
||||||
# "critical" = 85;
|
"critical" = 85;
|
||||||
# };
|
};
|
||||||
format = "<span></span> {percentage}%";
|
format = "<span></span> {percentage}%";
|
||||||
# format-critical = "<span color='#${color.hex.red}'><span></span> {percentage}%</span>";
|
format-warning = "<span color='#${color.hex.yellow}'><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";
|
||||||
@ -143,7 +144,7 @@ in {
|
|||||||
mode-mon-col = 3;
|
mode-mon-col = 3;
|
||||||
on-scroll = -1;
|
on-scroll = -1;
|
||||||
format = {
|
format = {
|
||||||
months = "<span color='#${color.hex.peach}'><b>{}</b></span>";
|
months = "<span color='#${color.hex.yellow}'><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>";
|
||||||
@ -193,26 +194,24 @@ 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.blue};}
|
#workspaces button {background-color: #${color.hex.lavender};}
|
||||||
#workspaces button.empty {background-color: #${color.hex.lavender};}
|
#workspaces button.active {background-color: #${color.hex.pink};}
|
||||||
#workspaces button.active {background-color: #${color.hex.green};}
|
#window {background-color: #${color.hex.maroon};}
|
||||||
#workspaces button.urgent {background-color: #${color.hex.red};}
|
#systemd-failed-units {background-color: #${color.hex.red};}
|
||||||
#window {background-color: #${color.hex.maroon};}
|
#mpris {background-color: #${color.hex.accent};}
|
||||||
|
#privacy {background-color: #${color.hex.red};}
|
||||||
#mpris {background-color: #${color.hex.accent};}
|
#pulseaudio {background-color: #${color.hex.maroon};}
|
||||||
|
#network {background-color: #${color.hex.peach};}
|
||||||
#privacy {background-color: #${color.hex.red};}
|
#disk {background-color: #${color.hex.yellow};}
|
||||||
#pulseaudio {background-color: #${color.hex.maroon};}
|
#cpu {background-color: #${color.hex.green};}
|
||||||
#network {background-color: #${color.hex.peach};}
|
#memory {background-color: #${color.hex.teal};}
|
||||||
#disk {background-color: #${color.hex.yellow};}
|
#clock {background-color: #${color.hex.sky};}
|
||||||
#cpu {background-color: #${color.hex.green};}
|
#tray {background-color: #${color.hex.accent};}
|
||||||
#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};
|
||||||
@ -261,6 +260,10 @@ 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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,19 +17,7 @@ in {
|
|||||||
shellWrapperName = "y";
|
shellWrapperName = "y";
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
inherit
|
inherit (pkgs.yaziPlugins) chmod diff full-border git lazygit mount ouch rsync starship sudo; # smart-paste
|
||||||
(pkgs.yaziPlugins)
|
|
||||||
chmod
|
|
||||||
diff
|
|
||||||
full-border
|
|
||||||
git
|
|
||||||
lazygit
|
|
||||||
mount
|
|
||||||
ouch
|
|
||||||
rsync
|
|
||||||
starship
|
|
||||||
sudo
|
|
||||||
; # smart-paste
|
|
||||||
};
|
};
|
||||||
|
|
||||||
initLua = ''
|
initLua = ''
|
||||||
@ -82,12 +70,7 @@ in {
|
|||||||
{
|
{
|
||||||
run = ''mpv "$@"'';
|
run = ''mpv "$@"'';
|
||||||
orphan = true;
|
orphan = true;
|
||||||
desc = "Play selection with mpv";
|
desc = "Play selection";
|
||||||
}
|
|
||||||
{
|
|
||||||
run = ''vlc "$@"'';
|
|
||||||
orphan = true;
|
|
||||||
desc = "Play selection with vlc";
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
edit = [
|
edit = [
|
||||||
@ -100,16 +83,7 @@ in {
|
|||||||
open = [
|
open = [
|
||||||
{
|
{
|
||||||
run = ''xdg-open "$@"'';
|
run = ''xdg-open "$@"'';
|
||||||
desc = "Open selection with xdg-open";
|
desc = "Open selection";
|
||||||
}
|
|
||||||
{
|
|
||||||
run = ''imv "$@"'';
|
|
||||||
desc = "Open selection with imv";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# TODO: For some reason, junction does not exit after choosing an application...
|
|
||||||
run = ''junction "$@"'';
|
|
||||||
desc = "Open selection with junction";
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
extract = [
|
extract = [
|
||||||
@ -127,13 +101,13 @@ in {
|
|||||||
|
|
||||||
plugin.prepend_fetchers = [
|
plugin.prepend_fetchers = [
|
||||||
{
|
{
|
||||||
group = "git";
|
id = "git";
|
||||||
url = "*";
|
name = "*";
|
||||||
run = "git";
|
run = "git";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
group = "git";
|
id = "git";
|
||||||
url = "*/";
|
name = "*/";
|
||||||
run = "git";
|
run = "git";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -183,66 +157,42 @@ in {
|
|||||||
|
|
||||||
mgr.prepend_keymap = [
|
mgr.prepend_keymap = [
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "m"];
|
||||||
"<C-p>"
|
|
||||||
"m"
|
|
||||||
];
|
|
||||||
run = "plugin mount";
|
run = "plugin mount";
|
||||||
desc = "Manage device mounts";
|
desc = "Manage device mounts";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "c"];
|
||||||
"<C-p>"
|
|
||||||
"c"
|
|
||||||
];
|
|
||||||
run = "plugin chmod";
|
run = "plugin chmod";
|
||||||
desc = "Chmod selection";
|
desc = "Chmod selection";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "g"];
|
||||||
"<C-p>"
|
|
||||||
"g"
|
|
||||||
];
|
|
||||||
run = "plugin lazygit";
|
run = "plugin lazygit";
|
||||||
desc = "Run LazyGit";
|
desc = "Run LazyGit";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "a"];
|
||||||
"<C-p>"
|
|
||||||
"a"
|
|
||||||
];
|
|
||||||
run = "plugin ouch";
|
run = "plugin ouch";
|
||||||
desc = "Add selection to archive";
|
desc = "Add selection to archive";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "d"];
|
||||||
"<C-p>"
|
|
||||||
"d"
|
|
||||||
];
|
|
||||||
run = ''shell -- ripdrag -a -n "$@"'';
|
run = ''shell -- ripdrag -a -n "$@"'';
|
||||||
desc = "Drag & drop selection";
|
desc = "Drag & drop selection";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "D"];
|
||||||
"<C-p>"
|
|
||||||
"D"
|
|
||||||
];
|
|
||||||
run = "plugin diff";
|
run = "plugin diff";
|
||||||
desc = "Diff the selected with the hovered file";
|
desc = "Diff the selected with the hovered file";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "r"];
|
||||||
"<C-p>"
|
|
||||||
"r"
|
|
||||||
];
|
|
||||||
run = "plugin rsync";
|
run = "plugin rsync";
|
||||||
desc = "Copy files using rsync";
|
desc = "Copy files using rsync";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = ["<C-p>" "w"];
|
||||||
"<C-p>"
|
|
||||||
"w"
|
|
||||||
];
|
|
||||||
run = ''wl-copy < "$0"'';
|
run = ''wl-copy < "$0"'';
|
||||||
desc = "Copy hovered file contents using wl-copy";
|
desc = "Copy hovered file contents using wl-copy";
|
||||||
}
|
}
|
||||||
@ -254,10 +204,7 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = "y";
|
on = "y";
|
||||||
run = [
|
run = [''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'' "yank"];
|
||||||
''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list''
|
|
||||||
"yank"
|
|
||||||
];
|
|
||||||
desc = "Copy files to system clipboard on yank";
|
desc = "Copy files to system clipboard on yank";
|
||||||
}
|
}
|
||||||
# {
|
# {
|
||||||
@ -276,9 +223,7 @@ in {
|
|||||||
# https://github.com/catppuccin/yazi/blob/main/themes/mocha/catppuccin-mocha-lavender.toml
|
# https://github.com/catppuccin/yazi/blob/main/themes/mocha/catppuccin-mocha-lavender.toml
|
||||||
theme = {
|
theme = {
|
||||||
mgr = {
|
mgr = {
|
||||||
cwd = {
|
cwd = {fg = color.hexS.teal;};
|
||||||
fg = color.hexS.teal;
|
|
||||||
};
|
|
||||||
|
|
||||||
hovered = {
|
hovered = {
|
||||||
fg = color.hexS.accentText;
|
fg = color.hexS.accentText;
|
||||||
@ -335,9 +280,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
border_symbol = "│";
|
border_symbol = "│";
|
||||||
border_style = {
|
border_style = {fg = color.hexS.overlay0;};
|
||||||
fg = color.hexS.overlay0;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
tabs = {
|
tabs = {
|
||||||
@ -406,104 +349,58 @@ in {
|
|||||||
bg = color.hexS.surface0;
|
bg = color.hexS.surface0;
|
||||||
};
|
};
|
||||||
|
|
||||||
perm_type = {
|
perm_type = {fg = color.hexS.blue;};
|
||||||
fg = color.hexS.blue;
|
perm_read = {fg = color.hexS.yellow;};
|
||||||
};
|
perm_write = {fg = color.hexS.red;};
|
||||||
perm_read = {
|
perm_exec = {fg = color.hexS.green;};
|
||||||
fg = color.hexS.yellow;
|
perm_sep = {fg = color.hexS.overlay0;};
|
||||||
};
|
|
||||||
perm_write = {
|
|
||||||
fg = color.hexS.red;
|
|
||||||
};
|
|
||||||
perm_exec = {
|
|
||||||
fg = color.hexS.green;
|
|
||||||
};
|
|
||||||
perm_sep = {
|
|
||||||
fg = color.hexS.overlay0;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
border = {
|
border = {fg = color.hexS.accentDim;};
|
||||||
fg = color.hexS.accentDim;
|
|
||||||
};
|
|
||||||
title = {};
|
title = {};
|
||||||
value = {};
|
value = {};
|
||||||
selected = {
|
selected = {reversed = true;};
|
||||||
reversed = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pick = {
|
pick = {
|
||||||
border = {
|
border = {fg = color.hexS.accentDim;};
|
||||||
fg = color.hexS.accentDim;
|
active = {fg = color.hexS.accentHl;};
|
||||||
};
|
|
||||||
active = {
|
|
||||||
fg = color.hexS.accentHl;
|
|
||||||
};
|
|
||||||
inactive = {};
|
inactive = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
confirm = {
|
confirm = {
|
||||||
border = {
|
border = {fg = color.hexS.accentDim;};
|
||||||
fg = color.hexS.accentDim;
|
title = {fg = color.hexS.accentDim;};
|
||||||
};
|
|
||||||
title = {
|
|
||||||
fg = color.hexS.accentDim;
|
|
||||||
};
|
|
||||||
content = {};
|
content = {};
|
||||||
list = {};
|
list = {};
|
||||||
btn_yes = {
|
btn_yes = {reversed = true;};
|
||||||
reversed = true;
|
|
||||||
};
|
|
||||||
btn_no = {};
|
btn_no = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
cmp = {
|
cmp = {
|
||||||
border = {
|
border = {fg = color.hexS.accentDim;};
|
||||||
fg = color.hexS.accentDim;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
tasks = {
|
tasks = {
|
||||||
border = {
|
border = {fg = color.hexS.accentDim;};
|
||||||
fg = color.hexS.accentDim;
|
|
||||||
};
|
|
||||||
title = {};
|
title = {};
|
||||||
hovered = {
|
hovered = {underline = true;};
|
||||||
underline = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
which = {
|
which = {
|
||||||
cand = {
|
cand = {fg = color.hexS.accent;};
|
||||||
fg = color.hexS.accent;
|
desc = {fg = color.hexS.accentHl;};
|
||||||
};
|
mask = {bg = color.hexS.surface0;};
|
||||||
desc = {
|
rest = {fg = color.hexS.surface0;};
|
||||||
fg = color.hexS.accentHl;
|
|
||||||
};
|
|
||||||
mask = {
|
|
||||||
bg = color.hexS.surface0;
|
|
||||||
};
|
|
||||||
rest = {
|
|
||||||
fg = color.hexS.surface0;
|
|
||||||
};
|
|
||||||
separator = " ";
|
separator = " ";
|
||||||
separator_style = {
|
separator_style = {fg = color.hexS.text;};
|
||||||
fg = color.hexS.text;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
help = {
|
help = {
|
||||||
on = {
|
on = {fg = color.hexS.accent;};
|
||||||
fg = color.hexS.accent;
|
run = {fg = color.hexS.accentHl;};
|
||||||
};
|
desc = {fg = color.hexS.text;};
|
||||||
run = {
|
|
||||||
fg = color.hexS.accentHl;
|
|
||||||
};
|
|
||||||
desc = {
|
|
||||||
fg = color.hexS.text;
|
|
||||||
};
|
|
||||||
hovered = {
|
hovered = {
|
||||||
fg = color.hexS.accentText; # TODO: This is not applied
|
fg = color.hexS.accentText; # TODO: This is not applied
|
||||||
|
|
||||||
@ -518,31 +415,19 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
notify = {
|
notify = {
|
||||||
title_info = {
|
title_info = {fg = color.hexS.teal;};
|
||||||
fg = color.hexS.teal;
|
title_warn = {fg = color.hexS.yellow;};
|
||||||
};
|
title_error = {fg = color.hexS.red;};
|
||||||
title_warn = {
|
|
||||||
fg = color.hexS.yellow;
|
|
||||||
};
|
|
||||||
title_error = {
|
|
||||||
fg = color.hexS.red;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
spot = {
|
spot = {
|
||||||
border = {
|
border = {fg = color.hexS.lavender;};
|
||||||
fg = color.hexS.lavender;
|
title = {fg = color.hexS.lavender;};
|
||||||
};
|
|
||||||
title = {
|
|
||||||
fg = color.hexS.lavender;
|
|
||||||
};
|
|
||||||
tbl_cell = {
|
tbl_cell = {
|
||||||
fg = color.hexS.lavender;
|
fg = color.hexS.lavender;
|
||||||
reversed = true;
|
reversed = true;
|
||||||
};
|
};
|
||||||
tbl_col = {
|
tbl_col = {bold = true;};
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Default rules good enough
|
# Default rules good enough
|
||||||
|
|||||||
@ -1,199 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
nixosConfig,
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (config.homemodules) zed color;
|
|
||||||
in {
|
|
||||||
options.homemodules.zed = import ./options.nix {inherit lib mylib;};
|
|
||||||
|
|
||||||
config = lib.mkIf zed.enable {
|
|
||||||
programs.zed-editor = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.zed-editor;
|
|
||||||
enableMcpIntegration = true;
|
|
||||||
mutableUserKeymaps = false;
|
|
||||||
mutableUserSettings = false;
|
|
||||||
mutableUserTasks = false;
|
|
||||||
mutableUserDebug = false;
|
|
||||||
|
|
||||||
extensions = [
|
|
||||||
"catppuccin"
|
|
||||||
"catppuccin-icons"
|
|
||||||
"comment"
|
|
||||||
"git-firefly"
|
|
||||||
|
|
||||||
"nix"
|
|
||||||
"perl"
|
|
||||||
"fish"
|
|
||||||
"lua"
|
|
||||||
"toml"
|
|
||||||
"csharp"
|
|
||||||
"java"
|
|
||||||
"latex"
|
|
||||||
"typst"
|
|
||||||
"haskell"
|
|
||||||
"glsl"
|
|
||||||
"mermaid"
|
|
||||||
"clojure"
|
|
||||||
"verilog"
|
|
||||||
"qml"
|
|
||||||
"plantuml"
|
|
||||||
"graphviz"
|
|
||||||
|
|
||||||
"dockerfile"
|
|
||||||
"docker-compose"
|
|
||||||
|
|
||||||
"html"
|
|
||||||
"xml"
|
|
||||||
"scss"
|
|
||||||
"rainbow-csv"
|
|
||||||
"sql"
|
|
||||||
"svelte"
|
|
||||||
"svelte-mcp"
|
|
||||||
"jinja2"
|
|
||||||
|
|
||||||
"just"
|
|
||||||
"make"
|
|
||||||
"neocmake"
|
|
||||||
"assembly"
|
|
||||||
"wat"
|
|
||||||
"linkerscript"
|
|
||||||
"r"
|
|
||||||
];
|
|
||||||
|
|
||||||
themes = {};
|
|
||||||
userDebug = [];
|
|
||||||
|
|
||||||
# TODO: Add neovim keymaps
|
|
||||||
userKeymaps = [
|
|
||||||
{
|
|
||||||
context = "Workspace";
|
|
||||||
bindings = {
|
|
||||||
"ctrl-/" = "terminal_panel::Toggle";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
context = "Editor";
|
|
||||||
unbind = {
|
|
||||||
"ctrl-/" = [
|
|
||||||
"editor::ToggleComments"
|
|
||||||
{
|
|
||||||
advance_downwards = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
context = "(vim_mode == normal || vim_mode == visual) && !menu";
|
|
||||||
bindings = {
|
|
||||||
"ctrl-c" = "editor::ToggleComments";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
userSettings = {
|
|
||||||
buffer_font_family = config.homemodules.color.font;
|
|
||||||
terminal.font_family = config.homemodules.color.font;
|
|
||||||
theme = "Catppuccin Mocha";
|
|
||||||
icon_theme = "Catppuccin Mocha";
|
|
||||||
ui_font_size = 16;
|
|
||||||
buffer_font_size = 14;
|
|
||||||
|
|
||||||
project_panel.dock = "left";
|
|
||||||
outline_panel.dock = "left";
|
|
||||||
collaboration_panel.dock = "left";
|
|
||||||
git_panel = {
|
|
||||||
dock = "left";
|
|
||||||
tree_view = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: Doesn't work, although perlnavigator advertises Perl::Tidy autoformatting...
|
|
||||||
languages = {
|
|
||||||
Perl = {
|
|
||||||
formatter = "language_server";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
auto_signature_help = true;
|
|
||||||
lsp = {
|
|
||||||
nil = {
|
|
||||||
initialization_options = {
|
|
||||||
formatting = {
|
|
||||||
# command = null;
|
|
||||||
command = ["${pkgs.alejandra}/bin/alejandra"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixd = {
|
|
||||||
initialization_options = {
|
|
||||||
formatting = {
|
|
||||||
command = ["${pkgs.alejandra}/bin/alejandra"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# No idea how to configure the formatter
|
|
||||||
# perlnavigator-server = let
|
|
||||||
# # TODO: Duplicated in neovim/default.nix. Need Perl module.
|
|
||||||
# perl = pkgs.perl.withPackages (p:
|
|
||||||
# with p; [
|
|
||||||
# PLS
|
|
||||||
# PerlCritic
|
|
||||||
# PerlTidy
|
|
||||||
# NetOpenSSH
|
|
||||||
# DateTime
|
|
||||||
# DBI
|
|
||||||
# DBDMariaDB
|
|
||||||
# CursesUI
|
|
||||||
# TextCSV_XS
|
|
||||||
# ]);
|
|
||||||
# in {
|
|
||||||
# initialization_options = {
|
|
||||||
# "perlnavigator.perlPath" = "${perl}/bin";
|
|
||||||
# "perlnavigator.includePaths" = ["${perl}/lib/perl5"];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
disable_ai = false;
|
|
||||||
agent = {
|
|
||||||
dock = "right";
|
|
||||||
sidebar_side = "right";
|
|
||||||
};
|
|
||||||
agent_servers = {
|
|
||||||
claude-acp = {
|
|
||||||
type = "registry";
|
|
||||||
};
|
|
||||||
codex-acp = {
|
|
||||||
type = "registry";
|
|
||||||
};
|
|
||||||
gemini = {
|
|
||||||
type = "registry";
|
|
||||||
};
|
|
||||||
mistral-vibe = {
|
|
||||||
type = "registry";
|
|
||||||
};
|
|
||||||
opencode = {
|
|
||||||
type = "registry";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
telemetry = {
|
|
||||||
diagnostics = false;
|
|
||||||
metrics = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
vim_mode = true;
|
|
||||||
which_key = {
|
|
||||||
enabled = true;
|
|
||||||
delay_ms = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
userTasks = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
enable = lib.mkEnableOption "Enable zed editor";
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
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,5 +13,4 @@
|
|||||||
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,8 +43,6 @@
|
|||||||
routers,
|
routers,
|
||||||
nameservers,
|
nameservers,
|
||||||
routable,
|
routable,
|
||||||
# Extra addresses declared without creating routes (e.g. IPv6 ULA).
|
|
||||||
extraAddresses ? [],
|
|
||||||
}: {
|
}: {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -58,8 +56,7 @@
|
|||||||
address = ips;
|
address = ips;
|
||||||
gateway = routers;
|
gateway = routers;
|
||||||
dns = nameservers;
|
dns = nameservers;
|
||||||
routes = builtins.map (r: {Gateway = r;}) routers;
|
routes = builtins.map (r: {Gateway = r;}) routers; # TODO: We need to add a way to specify addresses without routes (IPv6 ULA)
|
||||||
addresses = builtins.map (a: {Address = a;}) extraAddresses;
|
|
||||||
|
|
||||||
# See man systemd.network
|
# See man systemd.network
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
|||||||
@ -4,50 +4,6 @@
|
|||||||
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];
|
|
||||||
auto-optimise-store = true;
|
|
||||||
|
|
||||||
download-buffer-size = 524288000; # 500MB
|
|
||||||
|
|
||||||
substituters = [
|
|
||||||
"https://cache.nixos.org"
|
|
||||||
"https://nix-community.cachix.org"
|
|
||||||
# "https://app.cachix.org/cache/nixos-rocm"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = false;
|
|
||||||
options = "--delete-older-than 5d";
|
|
||||||
};
|
|
||||||
|
|
||||||
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,
|
||||||
@ -73,6 +29,7 @@
|
|||||||
|
|
||||||
# Import the toplevel system configuration module.
|
# Import the toplevel system configuration module.
|
||||||
../system
|
../system
|
||||||
|
../system/cachix.nix
|
||||||
|
|
||||||
# Host specific configuration
|
# Host specific configuration
|
||||||
../system/${hostname}
|
../system/${hostname}
|
||||||
@ -146,11 +103,14 @@
|
|||||||
# to allow installation of unfree software and my own overlays.
|
# to allow installation of unfree software and my own overlays.
|
||||||
{nixpkgs.pkgs = pkgs;}
|
{nixpkgs.pkgs = pkgs;}
|
||||||
|
|
||||||
|
# Import the toplevel system configuration module.
|
||||||
|
../system/cachix.nix
|
||||||
|
|
||||||
# Host specific configuration
|
# Host specific configuration
|
||||||
../system/${hostname}
|
../system/${hostname}
|
||||||
|
|
||||||
# Import all of my custom system modules
|
# Import all of my custom system modules
|
||||||
../system/systemmodules/darwin.nix
|
# ../system/systemmodules # TODO:
|
||||||
]
|
]
|
||||||
|
|
||||||
extraModules
|
extraModules
|
||||||
|
|||||||
197
lib/rofi.nix
197
lib/rofi.nix
@ -3,164 +3,79 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: rec {
|
||||||
# Receives attrs like:
|
# Receives attrs like:
|
||||||
# {
|
# {
|
||||||
# "Poweroff" = "poweroff";
|
# "Poweroff" = "poweroff";
|
||||||
# "Reload Hyprland" = "hyprctl reload";
|
# "Reload Hyprland" = "hyprctl reload";
|
||||||
# }
|
# }
|
||||||
# mkSimpleMenu = let
|
mkSimpleMenu = let
|
||||||
# # Makes a string like ''"Poweroff" "Reload Hyprland"''
|
# Makes a string like ''"Poweroff" "Reload Hyprland"''
|
||||||
# unpack-options = attrs: "\"${lib.concatStringsSep "\" \"" (builtins.attrNames attrs)}\"";
|
unpack-options = attrs: "\"${lib.concatStringsSep "\" \"" (builtins.attrNames attrs)}\"";
|
||||||
#
|
|
||||||
# mkCase = option: action: "else if test \"${option}\" = $OPTION\n set ACTION \"${action}\"";
|
|
||||||
#
|
|
||||||
# cases = attrs:
|
|
||||||
# attrs
|
|
||||||
# |> builtins.mapAttrs mkCase
|
|
||||||
# |> builtins.attrValues
|
|
||||||
# |> builtins.concatStringsSep "\n";
|
|
||||||
# in
|
|
||||||
# {
|
|
||||||
# prompt,
|
|
||||||
# attrs,
|
|
||||||
# command ? ''rofi -dmenu -i'',
|
|
||||||
# }:
|
|
||||||
# pkgs.writeScriptBin "rofi-menu-${prompt}" ''
|
|
||||||
# #! ${pkgs.fish}/bin/fish
|
|
||||||
#
|
|
||||||
# # OPTIONS contains all possible values Rofi will display
|
|
||||||
# set OPTIONS ${unpack-options attrs}
|
|
||||||
#
|
|
||||||
# # We choose a single OPTION using Rofi
|
|
||||||
# set OPTION (echo -e (string join "\n" $OPTIONS) | ${command} -p "${prompt}")
|
|
||||||
#
|
|
||||||
# # Check if the chosen OPTION is a valid choice from OPTIONS
|
|
||||||
# if not contains $OPTION $OPTIONS
|
|
||||||
# exit
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# # Set a command to execute based on the chosen OPTION
|
|
||||||
# if false
|
|
||||||
# exit # Easier to generate with this
|
|
||||||
# ${cases attrs}
|
|
||||||
# else
|
|
||||||
# exit
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# # Execute the command
|
|
||||||
# eval $ACTION
|
|
||||||
# '';
|
|
||||||
|
|
||||||
# Rofi/Dmenu menu generator.
|
mkCase = option: action: "else if test \"${option}\" = $OPTION\n set ACTION \"${action}\"";
|
||||||
#
|
|
||||||
# Each element in `layers` is one of:
|
|
||||||
# - attrset { "Label" = "value"; } # static options: selected value → $OPTIONn
|
|
||||||
# - string "shell-cmd" # dynamic options from command: selected text → $OPTIONn
|
|
||||||
# # may reference $OPTION0, $OPTION1, ... from earlier layers
|
|
||||||
#
|
|
||||||
# The "command" is the last action, it can reference $OPTION0, $OPTION1, ...
|
|
||||||
# If no "command" is given and the last layer is a static attrset, its selected value is evaluated directly.
|
|
||||||
#
|
|
||||||
# The "prompts" list are optional per-layer prompt strings (falls back to "prompt" if not provided).
|
|
||||||
#
|
|
||||||
# vpn.fish equivalent:
|
|
||||||
# mkMenu {
|
|
||||||
# prompt = "vpn";
|
|
||||||
# layers = [
|
|
||||||
# "cat /etc/rofi-vpns"
|
|
||||||
# { "start" = "start"; "stop" = "stop"; "status" = "status"; }
|
|
||||||
# ];
|
|
||||||
# command = "systemctl $OPTION1 $OPTION0.service";
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# lectures.fish equivalent:
|
|
||||||
# mkMenu {
|
|
||||||
# prompt = "lecture";
|
|
||||||
# layers = [
|
|
||||||
# "eza -1 -D ~/Notes/TU"
|
|
||||||
# "eza -1 ~/Notes/TU/$OPTION0/Lecture | grep '.pdf'"
|
|
||||||
# ];
|
|
||||||
# command = "xdg-open ~/Notes/TU/$OPTION0/Lecture/$OPTION1";
|
|
||||||
# }
|
|
||||||
mkMenu = {
|
|
||||||
prompt,
|
|
||||||
layers,
|
|
||||||
prompts ? [],
|
|
||||||
command ? null,
|
|
||||||
rofiCmd ? "rofi -dmenu -i",
|
|
||||||
}: let
|
|
||||||
isStaticLayer = layer: builtins.isAttrs layer && !(layer ? options);
|
|
||||||
isDynamicLayer = layer: builtins.isString layer;
|
|
||||||
|
|
||||||
escStr = s: builtins.replaceStrings [''"'' "\\"] [''\"'' "\\\\"] s;
|
cases = attrs:
|
||||||
|
attrs
|
||||||
|
|> builtins.mapAttrs mkCase
|
||||||
|
|> builtins.attrValues
|
||||||
|
|> builtins.concatStringsSep "\n";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
prompt,
|
||||||
|
attrs,
|
||||||
|
command ? ''rofi -dmenu -p " ${prompt} " -i'',
|
||||||
|
}:
|
||||||
|
pkgs.writeScriptBin "rofi-menu-${prompt}" ''
|
||||||
|
#! ${pkgs.fish}/bin/fish
|
||||||
|
|
||||||
layerPrompt = i:
|
# OPTIONS contains all possible values Rofi will display
|
||||||
if i < builtins.length prompts
|
set OPTIONS ${unpack-options attrs}
|
||||||
then lib.elemAt prompts i
|
|
||||||
else prompt;
|
|
||||||
|
|
||||||
# Static layer: attrset of label -> value
|
# We choose a single OPTION using Rofi
|
||||||
# Displays labels in rofi; maps selected label to its value -> $OPTIONi
|
set OPTION (echo -e (string join "\n" $OPTIONS) | ${command})
|
||||||
mkStaticLayer = i: attrs: let
|
|
||||||
lp = layerPrompt i;
|
# Check if the chosen OPTION is a valid choice from OPTIONS
|
||||||
labels = builtins.attrNames attrs;
|
if not contains $OPTION $OPTIONS
|
||||||
optsStr = "\"${lib.concatStringsSep "\" \"" (map escStr labels)}\"";
|
|
||||||
mkCase = label: value: "else if test \"${escStr label}\" = $_LABEL${toString i}\n set OPTION${toString i} \"${escStr value}\"";
|
|
||||||
casesStr =
|
|
||||||
builtins.concatStringsSep "\n"
|
|
||||||
(builtins.attrValues (builtins.mapAttrs mkCase attrs));
|
|
||||||
in {
|
|
||||||
script = ''
|
|
||||||
set _OPTS${toString i} ${optsStr}
|
|
||||||
set _LABEL${toString i} (echo -e (string join "\n" $_OPTS${toString i}) | ${rofiCmd} -p "${lp}")
|
|
||||||
if not contains $_LABEL${toString i} $_OPTS${toString i}
|
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Set a command to execute based on the chosen OPTION
|
||||||
if false
|
if false
|
||||||
exit
|
exit # Easier to generate with this
|
||||||
${casesStr}
|
${cases attrs}
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Execute the command
|
||||||
|
eval $ACTION
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
# Dynamic layer: shell command string whose output is piped to rofi
|
# TODO: I want to generate the containers menu using the actionsA and actionsB attrs:
|
||||||
# Selected text -> $OPTIONi; may reference earlier $OPTIONn variables
|
# - actionsA will be generated from the stuff in oci-containers.containers
|
||||||
mkDynamicLayer = i: cmd: let
|
# - actionsB will be set statically for start, stop, status
|
||||||
lp = layerPrompt i;
|
|
||||||
in {
|
|
||||||
script = ''
|
|
||||||
set OPTION${toString i} (${cmd} | ${rofiCmd} -p "${lp}")
|
|
||||||
if test -z $OPTION${toString i}
|
|
||||||
exit
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
mkLayer = i: layer:
|
# Receives attrs like:
|
||||||
if isStaticLayer layer
|
# {
|
||||||
then mkStaticLayer i layer
|
# optionA = "exa -1 -D ~/Notes/TU";
|
||||||
else if isDynamicLayer layer
|
# optionB = "exa -1 -D ~/Notes/TU/$OPTIONA/Lecture | grep \".pdf\"";
|
||||||
then mkDynamicLayer i layer
|
# commandB = "xdg-open ~/Notes/TU/$OPTIONA/Lecture/$OPTIONB";
|
||||||
else throw "mkMenu: layer ${toString i} has invalid type";
|
# }
|
||||||
|
#
|
||||||
layerResults = lib.imap0 mkLayer layers; # Map with 0-based index
|
# Keys:
|
||||||
layerScripts = map (r: r.script) layerResults;
|
# - optionA, optionB # Command that generates Rofi options:
|
||||||
lastLayer = lib.last layers;
|
# exa -1 -D ~/Notes/TU
|
||||||
|
# cat /etc/rofi-vpns
|
||||||
finalCmd =
|
# - commandA, commandB # Action to execute after sth. was chosen (mutually excl. with command)
|
||||||
if command != null
|
# - actionsA, actionsB # Configure actions by lookup (mutually excl. with command):
|
||||||
then command
|
# actionsB = {"status" = "systemctl status..."}
|
||||||
else if isStaticLayer lastLayer
|
# - colorA, colorB # Configure highlighting conditions:
|
||||||
then "$OPTION${toString (builtins.length layers - 1)}"
|
# colorA = {"red" = "systemctl ... | grep ..."};
|
||||||
else throw "mkMenu: 'command' must be set when the last layer is not a static attrset";
|
#
|
||||||
|
# Use $OPTIONA and $OPTIONB to use the options chosen by option<A/B>-command and rofi
|
||||||
|
# Use $EVALA and $EVALB to use the outputs generated by command<A/B>
|
||||||
|
mkMenu = let
|
||||||
in
|
in
|
||||||
pkgs.writeScriptBin "rofi-menu-${prompt}" ''
|
prompt: attrs: "";
|
||||||
#! ${pkgs.fish}/bin/fish
|
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" layerScripts}
|
|
||||||
eval "${finalCmd}"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
16
system/cachix.nix
Normal file
16
system/cachix.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# WARN: this file will get overwritten by $ cachix use <name>
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
folder = ./cachix;
|
||||||
|
toImport = name: value: folder + ("/" + name);
|
||||||
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
|
||||||
|
imports =
|
||||||
|
lib.mapAttrsToList toImport
|
||||||
|
(lib.filterAttrs filterCaches (builtins.readDir folder));
|
||||||
|
in {
|
||||||
|
inherit imports;
|
||||||
|
nix.settings.substituters = ["https://cache.nixos.org/"];
|
||||||
|
}
|
||||||
14
system/cachix/nix-community.nix
Normal file
14
system/cachix/nix-community.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
# "https://app.cachix.org/cache/nixos-rocm"
|
||||||
|
# "https://ai.cachix.org"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
|
||||||
|
# "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -10,21 +10,29 @@
|
|||||||
hostname,
|
hostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
systemmodules = {
|
nix = {
|
||||||
sops-nix.bootSecrets.${username} = [
|
enable = true;
|
||||||
"user-password"
|
|
||||||
];
|
|
||||||
|
|
||||||
sops-nix.secrets.${username} = [
|
package = pkgs.nixVersions.stable;
|
||||||
"ssh-private-key"
|
extraOptions = ''
|
||||||
"nix-github-token"
|
experimental-features = nix-command flakes pipe-operators
|
||||||
"docker-password"
|
'';
|
||||||
"jellyfin-password"
|
|
||||||
|
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}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = mylib.nixos.mkCommonNixSettings username;
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "${hostname}";
|
hostName = "${hostname}";
|
||||||
localHostName = "${hostname}";
|
localHostName = "${hostname}";
|
||||||
@ -76,25 +84,21 @@
|
|||||||
Clicking = true; # Tap to click
|
Clicking = true; # Tap to click
|
||||||
Dragging = true; # Double tap to drag
|
Dragging = true; # Double tap to drag
|
||||||
TrackpadRightClick = true;
|
TrackpadRightClick = true;
|
||||||
TrackpadPinch = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
enableKeyMapping = true;
|
enableKeyMapping = true;
|
||||||
swapLeftCtrlAndFn = false;
|
swapLeftCtrlAndFn = true;
|
||||||
swapLeftCommandAndLeftAlt = false;
|
swapLeftCommandAndLeftAlt = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
name = "${username}";
|
|
||||||
description = "Christoph";
|
|
||||||
uid = 501;
|
|
||||||
gid = 20;
|
|
||||||
createHome = false;
|
|
||||||
home = "/Users/${username}";
|
|
||||||
isHidden = false;
|
isHidden = false;
|
||||||
|
description = "Christoph";
|
||||||
|
home = "/Users/${username}";
|
||||||
|
createHome = false;
|
||||||
|
|
||||||
# NOTE: Not set if the user already exists on darwin, so use chsh for the root user
|
# NOTE: Not set if the user already exists on darwin, so use chsh for the root user
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
@ -124,41 +128,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# For another time maybe
|
# aerospace = {};
|
||||||
# sketchybar = {};
|
|
||||||
# skhd = {};
|
|
||||||
# yabai = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE: Not installed automatically
|
# NOTE: Not installed automatically
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
# brews = [];
|
||||||
onActivation = {
|
|
||||||
autoUpdate = true;
|
|
||||||
cleanup = "zap"; # Uninstall unlisted casks and associated files on rebuild
|
|
||||||
upgrade = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# taps = [
|
|
||||||
# "homebrew-zathura/zathura"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
brews = [];
|
|
||||||
|
|
||||||
casks = [
|
|
||||||
"alt-tab"
|
|
||||||
"discord"
|
|
||||||
"iina"
|
|
||||||
"nextcloud"
|
|
||||||
"obsidian"
|
|
||||||
"protonvpn"
|
|
||||||
"signal"
|
|
||||||
# "zathura"
|
|
||||||
# "zathura-pdf-mupdf"
|
|
||||||
"zotero"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set Git commit hash for darwin-version.
|
# Set Git commit hash for darwin-version.
|
||||||
|
|||||||
@ -91,7 +91,6 @@ with mylib.networking; {
|
|||||||
"ssh-private-key"
|
"ssh-private-key"
|
||||||
"nix-github-token"
|
"nix-github-token"
|
||||||
"docker-password"
|
"docker-password"
|
||||||
"jellyfin-password"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,7 +104,31 @@ with mylib.networking; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Enable flakes
|
# Enable flakes
|
||||||
nix = mylib.nixos.mkCommonNixSettings username;
|
nix = {
|
||||||
|
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 = {
|
||||||
@ -144,7 +167,7 @@ with mylib.networking; {
|
|||||||
|
|
||||||
documentation = {
|
documentation = {
|
||||||
# NOTE: Disable this while configuring stuff, it's slow
|
# NOTE: Disable this while configuring stuff, it's slow
|
||||||
enable = false;
|
enable = true;
|
||||||
man.enable = config.documentation.enable;
|
man.enable = config.documentation.enable;
|
||||||
man.cache.enable = true; # Slow but needed for neovim man picker
|
man.cache.enable = true; # Slow but needed for neovim man picker
|
||||||
info.enable = config.documentation.enable;
|
info.enable = config.documentation.enable;
|
||||||
@ -235,7 +258,6 @@ with mylib.networking; {
|
|||||||
description = "Christoph";
|
description = "Christoph";
|
||||||
group = "users";
|
group = "users";
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
home = "/home/${username}";
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
|
|
||||||
# General services
|
# General services
|
||||||
|
../services/comfyui.nix
|
||||||
../services/fileflows-node.nix
|
../services/fileflows-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -155,7 +156,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
# kernelPackages = pkgs.linuxPackages_zen;
|
||||||
# kernelPackages = pkgs.linuxPackages_latest;
|
# kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Why do I need to know if something fails during boot???
|
# Why do I need to know if something fails during boot???
|
||||||
@ -190,25 +191,7 @@
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [];
|
||||||
spice
|
|
||||||
spice-gtk
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation = {
|
|
||||||
libvirtd = {
|
|
||||||
enable = true;
|
|
||||||
qemu = {
|
|
||||||
package = pkgs.qemu_kvm;
|
|
||||||
# ovmf.enable = true; # deprecated
|
|
||||||
swtpm.enable = true;
|
|
||||||
runAsRoot = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
spiceUSBRedirection.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.trustedInterfaces = ["virbr0"]; # libvirt
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
ausweisapp = {
|
ausweisapp = {
|
||||||
@ -220,8 +203,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
gdb = true;
|
gdb = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virt-manager.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@ -231,52 +212,76 @@
|
|||||||
fileSystems = ["/"];
|
fileSystems = ["/"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Temporarily ban IPs for SSH after failed login attempts
|
||||||
|
fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
greetd = {
|
||||||
|
enable = false;
|
||||||
|
restart = false;
|
||||||
|
useTextGreeter = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
terminal.vt = 1;
|
||||||
|
|
||||||
|
default_session = {
|
||||||
|
# command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd $SHELL";
|
||||||
|
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd niri-session";
|
||||||
|
user = "greeter";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
kmscon = {
|
kmscon = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
hwRender = true;
|
||||||
useXkbConfig = true;
|
useXkbConfig = true;
|
||||||
# autologinUser = username;
|
# autologinUser = username;
|
||||||
|
|
||||||
config = let
|
fonts = [
|
||||||
color = config.home-manager.users.${username}.homemodules.color;
|
{
|
||||||
in {
|
name = "MonoLisa Alt Script";
|
||||||
# term=xterm-256color
|
package = pkgs.monolisa;
|
||||||
|
}
|
||||||
hwaccel = true;
|
];
|
||||||
|
|
||||||
font-name = color.font;
|
|
||||||
font-size = 14;
|
|
||||||
|
|
||||||
mode = "3440x1440";
|
|
||||||
palette = "custom";
|
|
||||||
|
|
||||||
palette-black = "0,0,0";
|
|
||||||
pallette-white = "255,255,255";
|
|
||||||
|
|
||||||
palette-red = color.rgbS.red;
|
|
||||||
palette-light-red = color.rgbS.red;
|
|
||||||
|
|
||||||
palette-green = color.rgbS.green;
|
|
||||||
palette-light-green = color.rgbS.green;
|
|
||||||
|
|
||||||
palette-yellow = color.rgbS.yellow;
|
|
||||||
palette-light-yellow = color.rgbS.yellow;
|
|
||||||
|
|
||||||
palette-blue = color.rgbS.blue;
|
|
||||||
palette-light-blue = color.rgbS.blue;
|
|
||||||
|
|
||||||
palette-magenta = color.rgbS.pink;
|
|
||||||
palette-light-magenta = color.rgbS.pink;
|
|
||||||
|
|
||||||
palette-cyan = color.rgbS.teal;
|
|
||||||
palette-light-cyan = color.rgbS.teal;
|
|
||||||
|
|
||||||
palette-foreground = color.rgbS.text;
|
|
||||||
palette-background = "0,0,0";
|
|
||||||
};
|
|
||||||
|
|
||||||
# NOTE: Do NOT use multline strings here!
|
# NOTE: Do NOT use multline strings here!
|
||||||
# This will create a linebreak in the systemd service and break login!
|
# This will create a linebreak in the systemd service and break login!
|
||||||
extraOptions = "";
|
extraOptions = "";
|
||||||
|
|
||||||
|
extraConfig = let
|
||||||
|
color = config.home-manager.users.${username}.homemodules.color;
|
||||||
|
in ''
|
||||||
|
# term=xterm-256color
|
||||||
|
font-size=14
|
||||||
|
mode=3440x1440
|
||||||
|
palette=custom
|
||||||
|
|
||||||
|
palette-black=0,0,0
|
||||||
|
pallette-white=255,255,255
|
||||||
|
|
||||||
|
palette-red=${color.rgbS.red}
|
||||||
|
palette-light-red=${color.rgbS.red}
|
||||||
|
|
||||||
|
palette-green=${color.rgbS.green}
|
||||||
|
palette-light-green=${color.rgbS.green}
|
||||||
|
|
||||||
|
palette-yellow=${color.rgbS.yellow}
|
||||||
|
palette-light-yellow=${color.rgbS.yellow}
|
||||||
|
|
||||||
|
palette-blue=${color.rgbS.blue}
|
||||||
|
palette-light-blue=${color.rgbS.blue}
|
||||||
|
|
||||||
|
palette-magenta=${color.rgbS.pink}
|
||||||
|
palette-light-magenta=${color.rgbS.pink}
|
||||||
|
|
||||||
|
palette-cyan=${color.rgbS.teal}
|
||||||
|
palette-light-cyan=${color.rgbS.teal}
|
||||||
|
|
||||||
|
palette-foreground=${color.rgbS.text}
|
||||||
|
palette-background=0,0,0
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
openssh = {
|
openssh = {
|
||||||
|
|||||||
@ -82,8 +82,7 @@
|
|||||||
};
|
};
|
||||||
"swap" = {
|
"swap" = {
|
||||||
mountpoint = "/swap";
|
mountpoint = "/swap";
|
||||||
# Configured in hardware-configuration.nix
|
swap.swapfile.size = "16G";
|
||||||
# swap.swapfile.size = "64G";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -121,13 +121,18 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "noatime" "_netdev" "bg" "hard"];
|
options = ["defaults" "rw" "noatime" "_netdev" "bg" "hard"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/media/Box" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Box";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "/swap/swapfile";
|
device = "/var/swap";
|
||||||
size = 1024 * 64; # Without hibernation 4.0 GB to 0.5 x RAM
|
size = 1024 * 16; # Without hibernation 4.0 GB to 0.5 x RAM
|
||||||
randomEncryption.enable = false; # The disk is already encrypted. Useless and might lead to system freeze.
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
# General services
|
# General services
|
||||||
../services/authelia.nix
|
../services/authelia.nix
|
||||||
../services/bazarr.nix
|
../services/bazarr.nix
|
||||||
|
../services/box.nix
|
||||||
../services/fileflows.nix
|
../services/fileflows.nix
|
||||||
../services/gitea.nix
|
../services/gitea.nix
|
||||||
../services/immich.nix
|
../services/immich.nix
|
||||||
@ -31,7 +32,6 @@
|
|||||||
../services/kiwix.nix
|
../services/kiwix.nix
|
||||||
../services/kopia.nix
|
../services/kopia.nix
|
||||||
../services/nextcloud.nix
|
../services/nextcloud.nix
|
||||||
../services/ntfy.nix
|
|
||||||
../services/nginx-proxy-manager.nix
|
../services/nginx-proxy-manager.nix
|
||||||
../services/paperless.nix
|
../services/paperless.nix
|
||||||
# ../services/plex.nix # Their monetization strategy is absolutely atrocious
|
# ../services/plex.nix # Their monetization strategy is absolutely atrocious
|
||||||
@ -65,13 +65,52 @@
|
|||||||
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"];
|
# ips = ["192.168.86.25/24" "fd00::19/64"];
|
||||||
routers = ["192.168.86.5"]; # Don't add IPv6 gateway, rely on router advertisement instead
|
# routers = ["192.168.86.5" "fd00::5"];
|
||||||
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
|
# nameservers = ["8.8.8.8" "2001:4860:4860::8888"]; # 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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -110,8 +149,6 @@
|
|||||||
"kopia-server-password"
|
"kopia-server-password"
|
||||||
"kopia-user-password"
|
"kopia-user-password"
|
||||||
"paperless-nextcloud-sync-password"
|
"paperless-nextcloud-sync-password"
|
||||||
"ntfy-auth-users"
|
|
||||||
"ntfy-auth-tokens"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -69,6 +69,12 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/media/Box" = {
|
||||||
|
device = "192.168.86.20:/mnt/Seagate4TB/Box";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
@ -86,7 +92,7 @@
|
|||||||
nvidia-container-toolkit.enable = true;
|
nvidia-container-toolkit.enable = true;
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
modesetting.enable = false;
|
modesetting.enable = false;
|
||||||
open = false; # GTX 1070 is too old for open drivers
|
open = false; # GTX 1070 is too old for open drivers
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -17,7 +16,14 @@ in {
|
|||||||
image = "TEMPLATE:${TEMPLATEVersion}";
|
image = "TEMPLATE:${TEMPLATEVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "adguard/adguardhome:${adguardVersion}";
|
image = "adguard/adguardhome:${adguardVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "authelia/authelia:${autheliaVersion}";
|
image = "authelia/authelia:${autheliaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/bazarr:${bazarrVersion}";
|
image = "linuxserver/bazarr:${bazarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
59
system/services/box.nix
Normal file
59
system/services/box.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
boxVersion = "v0.30.1";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
box = {
|
||||||
|
image = "stashapp/stash:${boxVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "9999:9999"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
|
||||||
|
"/media/Box:/data"
|
||||||
|
|
||||||
|
"box_config:/root/.stash"
|
||||||
|
"box_metadata:/metadata"
|
||||||
|
"box_cache:/cache"
|
||||||
|
"box_blobs:/blobs"
|
||||||
|
"box_generated:/generated"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
STASH_STASH = "/data/";
|
||||||
|
STASH_GENERATED = "/generated/";
|
||||||
|
STASH_METADATA = "/metadata/";
|
||||||
|
STASH_CACHE = "/cache/";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
54
system/services/comfyui.nix
Normal file
54
system/services/comfyui.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
comfyuiVersion = "cu128-slim-20260316";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
comfyui = {
|
||||||
|
image = "yanwk/comfyui-boot:${comfyuiVersion}";
|
||||||
|
autoStart = false;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"8188:8188"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = let
|
||||||
|
rootDir = "/home/christoph/Games/ComfyUI";
|
||||||
|
in [
|
||||||
|
"${rootDir}/storage:/root"
|
||||||
|
"${rootDir}/storage-models/models:/root/ComfyUI/models"
|
||||||
|
"${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub"
|
||||||
|
"${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub"
|
||||||
|
"${rootDir}/storage-user/input:/root/ComfyUI/input"
|
||||||
|
"${rootDir}/storage-user/output:/root/ComfyUI/output"
|
||||||
|
"${rootDir}/storage-user/workflows:/root/ComfyUI/user/default/workflows"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
# "--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,18 +1,24 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
fileflowsVersion = "26.06";
|
fileflowsVersion = "26.01";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
fileflows-node = {
|
fileflows-node = {
|
||||||
image = "revenz/fileflows:${fileflowsVersion}";
|
image = "revenz/fileflows:${fileflowsVersion}";
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,18 +1,24 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
version = "26.06";
|
version = "26.01";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
fileflows = {
|
fileflows = {
|
||||||
image = "revenz/fileflows:${version}";
|
image = "revenz/fileflows:${version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -28,7 +27,14 @@ in {
|
|||||||
image = "postgres:14";
|
image = "postgres:14";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -53,7 +59,14 @@ in {
|
|||||||
image = "gitea/gitea:${giteaVersion}";
|
image = "gitea/gitea:${giteaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# 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"
|
||||||
@ -94,7 +107,14 @@ 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 = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
"gitea"
|
"gitea"
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -40,7 +39,14 @@ in {
|
|||||||
image = "redis";
|
image = "redis";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/jellyfin:${jellyfinVersion}";
|
image = "linuxserver/jellyfin:${jellyfinVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -18,7 +18,8 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/home/christoph/ssd/kiwix:/data"
|
# TODO: Add network location for .zim files
|
||||||
|
"kiwix_data:/data"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -19,7 +18,14 @@ in {
|
|||||||
image = "kopia/kopia:${kopiaVersion}";
|
image = "kopia/kopia:${kopiaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nextcloudVersion = "33.0.5-apache";
|
nextcloudVersion = "31.0.6-apache";
|
||||||
in {
|
in {
|
||||||
systemd.services.nextcloud-cron = {
|
systemd.services.nextcloud-cron = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -34,7 +33,14 @@ in {
|
|||||||
image = "postgres:alpine";
|
image = "postgres:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -61,7 +67,14 @@ in {
|
|||||||
image = "redis:alpine";
|
image = "redis:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -84,7 +97,14 @@ in {
|
|||||||
image = "nextcloud:${nextcloudVersion}";
|
image = "nextcloud:${nextcloudVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# 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,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "jc21/nginx-proxy-manager:${nginxVersion}";
|
image = "jc21/nginx-proxy-manager:${nginxVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,79 +0,0 @@
|
|||||||
{
|
|
||||||
mylib,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
ntfyVersion = "v2.21";
|
|
||||||
in {
|
|
||||||
# If we need to pass secrets to containers we can't use plain env variables.
|
|
||||||
sops.templates."ntfy_secrets.env".content = ''
|
|
||||||
NTFY_AUTH_USERS=${config.sops.placeholder.ntfy-auth-users}
|
|
||||||
NTFY_AUTH_TOKENS=${config.sops.placeholder.ntfy-auth-tokens}
|
|
||||||
'';
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
# NTFY_AUTH_USERS='admin:$2b$10$13iMkFcSNXcb/DKlUSS03OM25saLd8/hDlKkowFtXYctu2fQBoLJK:admin,christoph:$2b$10$8jgrgBltBXj/Qw0BxBWf1eIfH53VV6wTdlJZEqWBIH3htwEP9PKgq:user'
|
|
||||||
# NTFY_AUTH_TOKENS="christoph:tk_rx8fd6hojuz4ekcb72j7juugkbmga:FAIL*-Notif"
|
|
||||||
|
|
||||||
# NTFY_BASE_URL="https://ntfy.vps.chriphost.de"
|
|
||||||
# NTFY_BEHIND_PROXY="true"
|
|
||||||
# NTFY_AUTH_FILE="/var/lib/ntfy/auth.db"
|
|
||||||
# NTFY_AUTH_DEFAULT_ACCESS="deny-all"
|
|
||||||
# NTFY_ENABLE_LOGIN="true"
|
|
||||||
# NTFY_REQUIRE_LOGIN="true"
|
|
||||||
# NTFY_ATTACHMENT_CACHE_DIR="/var/cache/ntfy/attachments"
|
|
||||||
# NTFY_CACHE_FILE="/var/cache/ntfy/cache.db"
|
|
||||||
# NTFY_UPSTREAM_BASE_URL="https://ntfy.sh"
|
|
||||||
# NTFY_AUTH_ACCESS="christoph:*:read-write"
|
|
||||||
ntfy = {
|
|
||||||
image = "binwiederhier/ntfy:${ntfyVersion}";
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
|
||||||
|
|
||||||
dependsOn = [];
|
|
||||||
|
|
||||||
ports = [
|
|
||||||
"8042:80"
|
|
||||||
];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"ntfy_cache:/var/cache/ntfy"
|
|
||||||
"ntfy_attachments:/var/cache/ntfy/attachments"
|
|
||||||
"ntfy_lib:/var/lib/ntfy"
|
|
||||||
"ntfy_etc:/etc/ntfy"
|
|
||||||
];
|
|
||||||
|
|
||||||
cmd = ["serve"];
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
PUID = "1000";
|
|
||||||
PGID = "1000";
|
|
||||||
TZ = "Europe/Berlin";
|
|
||||||
|
|
||||||
NTFY_BASE_URL = "https://ntfy.vps.chriphost.de";
|
|
||||||
NTFY_BEHIND_PROXY = "true";
|
|
||||||
NTFY_AUTH_FILE = "/var/lib/ntfy/auth.db";
|
|
||||||
NTFY_AUTH_DEFAULT_ACCESS = "deny-all";
|
|
||||||
NTFY_ENABLE_LOGIN = "true";
|
|
||||||
NTFY_REQUIRE_LOGIN = "true";
|
|
||||||
NTFY_ATTACHMENT_CACHE_DIR = "/var/cache/ntfy/attachments";
|
|
||||||
NTFY_CACHE_FILE = "/var/cache/ntfy/cache.db";
|
|
||||||
NTFY_UPSTREAM_BASE_URL = "https://ntfy.sh";
|
|
||||||
NTFY_AUTH_ACCESS = "christoph:*:read-write";
|
|
||||||
};
|
|
||||||
|
|
||||||
environmentFiles = [
|
|
||||||
config.sops.templates."ntfy_secrets.env".path
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
# "--privileged"
|
|
||||||
# "--device=nvidia.com/gpu=all"
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -17,7 +16,14 @@ in {
|
|||||||
image = "flor1der/paperless-nextcloud-sync:${paperlessNCVersion}";
|
image = "flor1der/paperless-nextcloud-sync:${paperlessNCVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -53,7 +59,14 @@ in {
|
|||||||
image = "redis:7";
|
image = "redis:7";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -74,7 +87,14 @@ in {
|
|||||||
image = "postgres:15";
|
image = "postgres:15";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "plexinc/pms-docker:${plexVersion}";
|
image = "plexinc/pms-docker:${plexVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -14,7 +13,14 @@ in {
|
|||||||
image = "portainer/agent:${portainerVersion}";
|
image = "portainer/agent:${portainerVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -13,7 +12,14 @@ in {
|
|||||||
image = "portainer/portainer-ce:${portainerVersion}";
|
image = "portainer/portainer-ce:${portainerVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/prowlarr:${prowlarrVersion}";
|
image = "linuxserver/prowlarr:${prowlarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "rcourtman/pulse:${pulseVersion}";
|
image = "rcourtman/pulse:${pulseVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/radarr:${radarrVersion}";
|
image = "linuxserver/radarr:${radarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "linuxserver/sonarr:${sonarrVersion}";
|
image = "linuxserver/sonarr:${sonarrVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,18 +1,24 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
teamspeakVersion = "6.0.0-beta10";
|
teamspeakVersion = "v6.0.0-beta7";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
teamspeak = {
|
teamspeak = {
|
||||||
image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}";
|
image = "teamspeaksystems/teamspeak6-server:${teamspeakVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
@ -24,8 +30,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
# "teamspeak_data:/var/tsserver"
|
"teamspeak_data:/var/tsserver"
|
||||||
"teamspeak_data2:/var/tsserver"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "tinymediamanager/tinymediamanager:${version}";
|
image = "tinymediamanager/tinymediamanager:${version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
mylib,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -12,7 +11,14 @@ in {
|
|||||||
image = "getwud/wud:${wudVersion}";
|
image = "getwud/wud:${wudVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
# "pihole"
|
# "pihole"
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
imports = [
|
|
||||||
./sops-nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -72,6 +72,7 @@ in {
|
|||||||
if docker.podman
|
if docker.podman
|
||||||
then "podman"
|
then "podman"
|
||||||
else "docker"; # "docker" or "podman"
|
else "docker"; # "docker" or "podman"
|
||||||
|
libvirtd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = let
|
systemd.services = let
|
||||||
|
|||||||
@ -69,9 +69,7 @@ in {
|
|||||||
# https://github.com/nix-community/impermanence/issues/253
|
# https://github.com/nix-community/impermanence/issues/253
|
||||||
(mkRDir "/usr/systemd-placeholder" m755)
|
(mkRDir "/usr/systemd-placeholder" m755)
|
||||||
|
|
||||||
# TODO: Why does this use the mandb user?
|
(mkDir "mandb" "/var/cache/man" m755)
|
||||||
# (mkDir "mandb" "/var/cache/man" m755)
|
|
||||||
|
|
||||||
# (mkRDir "/var/cache/restic-backups-synology" m755)
|
# (mkRDir "/var/cache/restic-backups-synology" m755)
|
||||||
|
|
||||||
(mkRDir "/var/db/sudo" m711)
|
(mkRDir "/var/db/sudo" m711)
|
||||||
@ -120,64 +118,49 @@ in {
|
|||||||
|
|
||||||
# The shit some applications add to ~/ without asking
|
# The shit some applications add to ~/ without asking
|
||||||
# (mkUDir ".android" m755) # Unity
|
# (mkUDir ".android" m755) # Unity
|
||||||
(mkUDir ".claude" m755)
|
|
||||||
# (mkUDir ".comfy" m755)
|
# (mkUDir ".comfy" m755)
|
||||||
(mkUDir ".docker" m755)
|
(mkUDir ".docker" m755)
|
||||||
# (mkUDir ".gradle" m755) # Unity
|
# (mkUDir ".gradle" m755) # Unity
|
||||||
(mkUDir ".java" m755) # JetBrains
|
(mkUDir ".java" m755) # JetBrains
|
||||||
(mkUDir ".lmstudio" m755)
|
|
||||||
(mkUDir ".MakeMKV" m755)
|
(mkUDir ".MakeMKV" m755)
|
||||||
(mkUDir ".mozilla/firefox" m755) # TODO: Remove this someday
|
(mkUDir ".mozilla/firefox" m755) # TODO: Remove this someday
|
||||||
(mkUDir ".mozilla/native-messaging-hosts" m755)
|
(mkUDir ".mozilla/native-messaging-hosts" m755)
|
||||||
(mkUDir ".nix-package-search" m755)
|
(mkUDir ".nix-package-search" m755)
|
||||||
(mkUDir ".npm" m755) # Contains mcp servers :/
|
|
||||||
# (mkUDir ".nv" m755) # Unity
|
# (mkUDir ".nv" m755) # Unity
|
||||||
# (mkUDir ".ollama" m755)
|
# (mkUDir ".ollama" m755)
|
||||||
# (mkUDir ".plastic4" m755) # Unity
|
# (mkUDir ".plastic4" m755) # Unity
|
||||||
(mkUDir ".tableplus" m755)
|
|
||||||
(mkUDir ".tiddl" m755)
|
(mkUDir ".tiddl" m755)
|
||||||
(mkUDir ".var/app" m755)
|
(mkUDir ".var/app" m755)
|
||||||
(mkUDir ".vim/undo" m755)
|
(mkUDir ".vim/undo" m755)
|
||||||
(mkUDir ".vscode" m755)
|
|
||||||
(mkUDir ".zotero" m755)
|
(mkUDir ".zotero" m755)
|
||||||
|
|
||||||
# Cache that's actually useful
|
# Cache that's actually useful
|
||||||
(mkUDir ".cache/claude-cli-nodejs" m755)
|
|
||||||
(mkUDir ".cache/elephant" m755)
|
|
||||||
(mkUDir ".cache/fish/generated_completions" m755)
|
(mkUDir ".cache/fish/generated_completions" m755)
|
||||||
(mkUDir ".cache/nix" m755)
|
|
||||||
(mkUDir ".cache/nix-index" m755)
|
(mkUDir ".cache/nix-index" m755)
|
||||||
(mkUDir ".cache/nix-search-tv" m755)
|
(mkUDir ".cache/nix-search-tv" m755)
|
||||||
(mkUDir ".cache/nvim" m755)
|
(mkUDir ".cache/nvim" m755)
|
||||||
(mkUDir ".cache/JetBrains" m755)
|
(mkUDir ".cache/JetBrains" m755)
|
||||||
(mkUDir ".cache/keepassxc" m755)
|
|
||||||
(mkUDir ".cache/opencode" m755)
|
|
||||||
(mkUDir ".cache/uv" m755)
|
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
# (mkUDir ".config/.android" m755) # Unity
|
# (mkUDir ".config/.android" m755) # Unity
|
||||||
# (mkUDir ".config/beekeeper-studio" m755)
|
|
||||||
(mkUDir ".config/beets" m755)
|
(mkUDir ".config/beets" m755)
|
||||||
(mkUDir ".config/blender" m755)
|
(mkUDir ".config/blender" m755)
|
||||||
(mkUDir ".config/chromium" m755) # TODO: Remove this someday
|
(mkUDir ".config/chromium" m755) # TODO: Remove this someday
|
||||||
(mkUDir ".config/Code" m755)
|
|
||||||
(mkUDir ".config/Ferdium" m755)
|
(mkUDir ".config/Ferdium" m755)
|
||||||
(mkUDir ".config/feishin" m755)
|
(mkUDir ".config/feishin" m755)
|
||||||
(mkUDir ".config/fish/completions" m755)
|
(mkUDir ".config/fish/completions" m755)
|
||||||
(mkUDir ".config/ghidra" m755)
|
(mkUDir ".config/ghidra" m755)
|
||||||
(mkUDir ".config/impermanence" m755)
|
(mkUDir ".config/impermanence" m755)
|
||||||
(mkUDir ".config/jellyfin-mpv-shim" m755)
|
(mkUDir ".config/jellyfin-mpv-shim" m755)
|
||||||
# (mkUDir ".config/jellyfin-tui" m755) # Configured using nix
|
(mkUDir ".config/jellyfin-tui" m755) # TODO: Generate this config file, have to use sops because it includes the password in cleartext
|
||||||
(mkUDir ".config/JetBrains" m755)
|
(mkUDir ".config/JetBrains" m755)
|
||||||
(mkUDir ".config/kdeconnect" m755)
|
(mkUDir ".config/kdeconnect" m755)
|
||||||
(mkUDir ".config/keepassxc" m755)
|
(mkUDir ".config/keepassxc" m755)
|
||||||
(mkUDir ".config/LM Studio" m755)
|
|
||||||
(mkUDir ".config/Msty" m755)
|
(mkUDir ".config/Msty" m755)
|
||||||
(mkUDir ".config/Nextcloud" m755)
|
(mkUDir ".config/Nextcloud" m755)
|
||||||
# (mkUDir ".config/niri/dms" m755)
|
(mkUDir ".config/niri/dms" m755)
|
||||||
(mkUDir ".config/obsidian" m755)
|
(mkUDir ".config/obsidian" m755)
|
||||||
(mkUDir ".config/obs-studio" m755)
|
(mkUDir ".config/obs-studio" m755)
|
||||||
(mkUDir ".config/opencode" m755)
|
|
||||||
(mkUDir ".config/Signal" m755)
|
(mkUDir ".config/Signal" m755)
|
||||||
# (mkUDir ".config/singularitygroup-hotreload" m755) # Unity
|
# (mkUDir ".config/singularitygroup-hotreload" m755) # Unity
|
||||||
(mkUDir ".config/TeamSpeak" m755)
|
(mkUDir ".config/TeamSpeak" m755)
|
||||||
@ -185,7 +168,6 @@ in {
|
|||||||
(mkUDir ".config/tidal_dl_ng" m755)
|
(mkUDir ".config/tidal_dl_ng" m755)
|
||||||
# (mkUDir ".config/unity3d" m755) # Unity
|
# (mkUDir ".config/unity3d" m755) # Unity
|
||||||
# (mkUDir ".config/unityhub" m755) # Unity
|
# (mkUDir ".config/unityhub" m755) # Unity
|
||||||
(mkUDir ".config/Vector 35" m755)
|
|
||||||
(mkUDir ".config/vlc" m755)
|
(mkUDir ".config/vlc" m755)
|
||||||
(mkUDir ".config/Zeal" m755)
|
(mkUDir ".config/Zeal" m755)
|
||||||
(mkUDir ".config/zed" m755)
|
(mkUDir ".config/zed" m755)
|
||||||
@ -209,7 +191,6 @@ in {
|
|||||||
(mkUDir ".local/share/net.lrclib.lrcget" m755)
|
(mkUDir ".local/share/net.lrclib.lrcget" m755)
|
||||||
(mkUDir ".local/share/nix" m755)
|
(mkUDir ".local/share/nix" m755)
|
||||||
(mkUDir ".local/share/nvim" m755)
|
(mkUDir ".local/share/nvim" m755)
|
||||||
(mkUDir ".local/share/opencode" m755)
|
|
||||||
(mkUDir ".local/share/qutebrowser" m755)
|
(mkUDir ".local/share/qutebrowser" m755)
|
||||||
(mkUDir ".local/share/systemd" m755)
|
(mkUDir ".local/share/systemd" m755)
|
||||||
# (mkUDir ".local/share/unity3d" m755) # Unity
|
# (mkUDir ".local/share/unity3d" m755) # Unity
|
||||||
@ -222,7 +203,6 @@ in {
|
|||||||
(mkUDir ".local/state/lazygit" m755)
|
(mkUDir ".local/state/lazygit" m755)
|
||||||
(mkUDir ".local/state/nix" m755)
|
(mkUDir ".local/state/nix" m755)
|
||||||
(mkUDir ".local/state/nvim" m755)
|
(mkUDir ".local/state/nvim" m755)
|
||||||
(mkUDir ".local/state/opencode" m755)
|
|
||||||
(mkUDir ".local/state/waypaper" m755)
|
(mkUDir ".local/state/waypaper" m755)
|
||||||
(mkUDir ".local/state/wireplumber" m755)
|
(mkUDir ".local/state/wireplumber" m755)
|
||||||
];
|
];
|
||||||
|
|||||||
@ -26,23 +26,17 @@ in {
|
|||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
|
||||||
age = {
|
age = {
|
||||||
keyFile = lib.mkDefault "${config.users.users.${username}.home}/.secrets/age/age.key";
|
keyFile = lib.mkDefault "/home/${username}/.secrets/age/age.key";
|
||||||
generateKey = false;
|
generateKey = false;
|
||||||
sshKeyPaths = [];
|
sshKeyPaths = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
secrets = let
|
secrets = let
|
||||||
mkSecret = name: {
|
mkSecret = name: {
|
||||||
${name} = lib.mkMerge [
|
${name} = {
|
||||||
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
owner = config.users.users.${username}.name;
|
||||||
owner = config.users.users.${username}.name;
|
group = config.users.users.${username}.group;
|
||||||
group = config.users.users.${username}.group;
|
};
|
||||||
})
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
||||||
owner = config.users.users.${username}.name;
|
|
||||||
group = "staff"; # Apparently there's no way to get the primary group?
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mkBootSecret = name: {
|
mkBootSecret = name: {
|
||||||
|
|||||||
@ -5,7 +5,6 @@ user-password: ENC[AES256_GCM,data:okgvaTTesCDwriI8PxhNdHZF8XgzB4yxapuFl2/CK8x4W
|
|||||||
ssh-private-key: ENC[AES256_GCM,data:JrRarfeS3y6b9gxg4Za5GIc5Ci3aGR+OyZxQybj4dcv2mzxXmT/bm7KOwM1zkz1PFl1xW5X82T5jte+XQOKx0+6m4ovjUgUmQUMP4E/yosp8XSdi0+YlUKBEHEJx6HqCZy+v6qx5kfp9JC6fZqCbL1J6FIqWqAoKTFXoiou1YnhmBa2fM17Q++i6TflDWiVrUS7X9xjuZFq1hz1aQXS303uvJEUOEpXdqPyJvUKJWzVsFrAwpa9FG+reO70SSc+1hBbqdw1QjrzNWh3eNnztwZURauJtVFBYUZ5ozHmWBr4aVFjYvqz+t6G1SAunmBRbVqbH4bjBv9jXXjHAB4U0wanvkJN2C+EY1zxwjyx2fWckMdhoLr9gtC1FJKMbV49UFHJ3iXWNczKj1t7LrctehEKXJa0Eb3UogYuaRxbVYbC++kD8LvL4AY8ertgc9/pxQQZmogdINJmIxKN4HTlGbX8kSDLbohZLheOfzZ5ycTlrbOjfJ1EBMLo+mJcMUW0qhFySl1aamPqTeII7lvgTOE3xV/d/9VAQTFKsftWPNkfhAJIym51bYrrMPV8AVeFQnLhSid3d3zK4w20zIQKSYnq9A8zcNhM0keddiv4XC+M=,iv:7HP7VCFpMRZXRD6GD/zFzDSBO02V/DyxKLmuDCLXTLU=,tag:Ugx81JwCP8HmhtflYoevLg==,type:str]
|
ssh-private-key: ENC[AES256_GCM,data:JrRarfeS3y6b9gxg4Za5GIc5Ci3aGR+OyZxQybj4dcv2mzxXmT/bm7KOwM1zkz1PFl1xW5X82T5jte+XQOKx0+6m4ovjUgUmQUMP4E/yosp8XSdi0+YlUKBEHEJx6HqCZy+v6qx5kfp9JC6fZqCbL1J6FIqWqAoKTFXoiou1YnhmBa2fM17Q++i6TflDWiVrUS7X9xjuZFq1hz1aQXS303uvJEUOEpXdqPyJvUKJWzVsFrAwpa9FG+reO70SSc+1hBbqdw1QjrzNWh3eNnztwZURauJtVFBYUZ5ozHmWBr4aVFjYvqz+t6G1SAunmBRbVqbH4bjBv9jXXjHAB4U0wanvkJN2C+EY1zxwjyx2fWckMdhoLr9gtC1FJKMbV49UFHJ3iXWNczKj1t7LrctehEKXJa0Eb3UogYuaRxbVYbC++kD8LvL4AY8ertgc9/pxQQZmogdINJmIxKN4HTlGbX8kSDLbohZLheOfzZ5ycTlrbOjfJ1EBMLo+mJcMUW0qhFySl1aamPqTeII7lvgTOE3xV/d/9VAQTFKsftWPNkfhAJIym51bYrrMPV8AVeFQnLhSid3d3zK4w20zIQKSYnq9A8zcNhM0keddiv4XC+M=,iv:7HP7VCFpMRZXRD6GD/zFzDSBO02V/DyxKLmuDCLXTLU=,tag:Ugx81JwCP8HmhtflYoevLg==,type:str]
|
||||||
nix-github-token: ENC[AES256_GCM,data:AXV0ODLhfa4M6+7clulfIKm0qCOeo3lQ+66iYgoDeR12RxZOV19UtA==,iv:1XECVKyzH3NumKwRSPKNlUwJMLFwptcG8DQ09U4LrGk=,tag:QdtvJNV8BttWjhH4v0RtRQ==,type:str]
|
nix-github-token: ENC[AES256_GCM,data:AXV0ODLhfa4M6+7clulfIKm0qCOeo3lQ+66iYgoDeR12RxZOV19UtA==,iv:1XECVKyzH3NumKwRSPKNlUwJMLFwptcG8DQ09U4LrGk=,tag:QdtvJNV8BttWjhH4v0RtRQ==,type:str]
|
||||||
docker-password: ENC[AES256_GCM,data:mK5YWEQPKWBtVCgRBZvwWTdVAi8MEGbLnLeP7hfDkcc=,iv:Az8+eAK6R6xssmmbhuEsDbLU+ks8lS+qzc4L33WfefA=,tag:NSXvRhbIuRZZqRR28Tu0PQ==,type:str]
|
docker-password: ENC[AES256_GCM,data:mK5YWEQPKWBtVCgRBZvwWTdVAi8MEGbLnLeP7hfDkcc=,iv:Az8+eAK6R6xssmmbhuEsDbLU+ks8lS+qzc4L33WfefA=,tag:NSXvRhbIuRZZqRR28Tu0PQ==,type:str]
|
||||||
jellyfin-password: ENC[AES256_GCM,data:ugfwgpkIiLY0O+m/UGnBB5AFPBkCcai+RQOkxiCSohE=,iv:VP+Jyv2lUIBz1dFow038uN0KT+tQKK9uGr7/T5crlgk=,tag:rPGPpaqZApfHkecLBSs4Yw==,type:str]
|
|
||||||
#
|
#
|
||||||
#ENC[AES256_GCM,data:y5dlZFhK38dR+Q==,iv:1JYizUeyWeMR4KUblkj7kVSHPCL5l8mFpaQdo774BcM=,tag:kUTnBZb46KYQyi8bgIYSOQ==,type:comment]
|
#ENC[AES256_GCM,data:y5dlZFhK38dR+Q==,iv:1JYizUeyWeMR4KUblkj7kVSHPCL5l8mFpaQdo774BcM=,tag:kUTnBZb46KYQyi8bgIYSOQ==,type:comment]
|
||||||
#
|
#
|
||||||
@ -19,8 +18,6 @@ kopia-server-username: ENC[AES256_GCM,data:4onewFkWpi9g,iv:aA4WSS8T6KUcGbAIHDd8B
|
|||||||
kopia-server-password: ENC[AES256_GCM,data:6nMnhRA=,iv:Qz9qP+m0obzL+eHFmW1qVmc/0TR4Iw4X1GL4zACOSMk=,tag:v3v+33+g4y6se5q+b4e8mA==,type:str]
|
kopia-server-password: ENC[AES256_GCM,data:6nMnhRA=,iv:Qz9qP+m0obzL+eHFmW1qVmc/0TR4Iw4X1GL4zACOSMk=,tag:v3v+33+g4y6se5q+b4e8mA==,type:str]
|
||||||
kopia-user-password: ENC[AES256_GCM,data:jPWeru4e2w9qzA==,iv:WpZS3Qmx8v12v3q1Lq1YrPnWw7BY0FhxurXYuaOdfwA=,tag:+8bQAnHRh55rUMdyoK6N8w==,type:str]
|
kopia-user-password: ENC[AES256_GCM,data:jPWeru4e2w9qzA==,iv:WpZS3Qmx8v12v3q1Lq1YrPnWw7BY0FhxurXYuaOdfwA=,tag:+8bQAnHRh55rUMdyoK6N8w==,type:str]
|
||||||
paperless-nextcloud-sync-password: ENC[AES256_GCM,data:pfLg3OVBqLsM4R7mSgLQEachj9gMkexPjBMSyzU=,iv:XBe1cdwlTjPfQW70NIEjD8CikK58iGErI9ZTlLWtCA4=,tag:qO35GdjljgS3/z5/1fCOFg==,type:str]
|
paperless-nextcloud-sync-password: ENC[AES256_GCM,data:pfLg3OVBqLsM4R7mSgLQEachj9gMkexPjBMSyzU=,iv:XBe1cdwlTjPfQW70NIEjD8CikK58iGErI9ZTlLWtCA4=,tag:qO35GdjljgS3/z5/1fCOFg==,type:str]
|
||||||
ntfy-auth-users: ENC[AES256_GCM,data:IHnJJgUL9RqkEAoJ2Q9Oo0RkfgLXG7vih5NFPrPNBoIzMafdLXxHqNOAd1oRaOUd6AKmWdQ3uKAZINj7oGZEKMsMxUEv1WW6IXUuPnDeJe5EthINWCuaW2Z64PJl+uqgnWr4wDi7QT0zwjb/oL3gYfjH1xtfMadTzkWbmnxQ9jlP/nXe9JR1/oCrHv3dio5uU017cA==,iv:JmWnu25ZB/qqI2RsgHQ0bcat69V7p5MJ6cf5eFcSsns=,tag:6Z2LseCav/qyLh2nn+7uuw==,type:str]
|
|
||||||
ntfy-auth-tokens: ENC[AES256_GCM,data:C23r9djvEukUgDDloFGm52spwcW1DB5Jcwt9kxghLjL3vNiQ9HzGrvlSl5oEppoNa23BF0+t,iv:O9LepUKGbyXTHMvwn1avdJEhcMgtr2Sb1imIJ8ALMYY=,tag:o3g6f7YZL2VfgfeymzJK1g==,type:str]
|
|
||||||
#
|
#
|
||||||
#ENC[AES256_GCM,data:Gdh/hjCaOuAE,iv:XjPXn3SskpUPUkDIEDl5701/g9QhuS83fACMaoPMiIM=,tag:Q7s8xZG/GsOtQrasekBnkQ==,type:comment]
|
#ENC[AES256_GCM,data:Gdh/hjCaOuAE,iv:XjPXn3SskpUPUkDIEDl5701/g9QhuS83fACMaoPMiIM=,tag:Q7s8xZG/GsOtQrasekBnkQ==,type:comment]
|
||||||
#
|
#
|
||||||
@ -36,7 +33,7 @@ sops:
|
|||||||
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
|
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
|
||||||
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
|
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2026-04-17T12:17:23Z"
|
lastmodified: "2025-07-19T01:29:00Z"
|
||||||
mac: ENC[AES256_GCM,data:YEHM2ebPhV6ycj8OxNy7mOlpy6VrvV6Gz9sHEWc9alnrwZ0qLzp5m4AUMuWBSfFTMtVgeAFdJ8Nf4X5b+AzQXahlHWJVAwiMiE8KqhRLGWF21OyDN2aIdwd4ue2vYyPDGYP43mC+19v9SW5isF901G28e5Q9SxmGJjNOkiVuiCI=,iv:WFvCN/7YGQnCSqjXBkkfiuPoNQ37bpxHx9jreZDc3EM=,tag:AUjFpbJ6//eScnn6P2QMgA==,type:str]
|
mac: ENC[AES256_GCM,data:IzLYRuOlkUpry37sw7OB5MglntVflMjCcNiWpi7rvT2suOivLX9IT36qZFfYIbVIFXDmfsi1hsTvsPyekD7vVWQ1vkajAlGQYYTVpnO2cFrK3+TfWCyYjiD01rQBiRikybrR11zWRq6atieurDIxMUMEI7ypiqFOwpYaqSePAFc=,iv:9bc6rc4gjuiJWNjg1g0KfySqxnPjpzmlzDi/R+Iv2g4=,tag:tEwthVZAmdXbwRtoNykGrQ==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.12.2
|
version: 3.10.2
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user