Compare commits
266
Commits
master
..
cf7fdb2aec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf7fdb2aec
|
||
|
|
8fd939bc34
|
||
|
|
a5ca09b7ec
|
||
|
|
4edd789c20
|
||
|
|
f5f23388ce
|
||
|
|
97a9f4d78a
|
||
|
|
60fe34de9d
|
||
|
|
7ed23a63a3
|
||
|
|
7fbab2b1f6
|
||
|
|
df1cadae60
|
||
|
|
b5cb085083
|
||
|
|
2a2d96d97e
|
||
|
|
307a8b5fb7
|
||
|
|
9861866c6f
|
||
|
|
05dd3fd75f
|
||
|
|
15e2290267
|
||
|
|
3646bceff9
|
||
|
|
f429a50206
|
||
|
|
024908500a
|
||
|
|
c7098e2208
|
||
|
|
0e86ca0371
|
||
|
|
663f21bdda
|
||
|
|
2533183d80
|
||
|
|
f259b7d326
|
||
|
|
ac1b8c9f07
|
||
|
|
00e3713682
|
||
|
|
84eabaa4d3
|
||
|
|
d0916c49e5
|
||
|
|
91c35fd55c
|
||
|
|
166c35caec
|
||
|
|
c204312423
|
||
|
|
ddc5722bbe
|
||
|
|
cadd7bd949
|
||
|
|
2fbf61c052
|
||
|
|
5d699a2d58
|
||
|
|
593437fa94
|
||
|
|
00e412cb20
|
||
|
|
1290f14cb7
|
||
|
|
132e52e4ad
|
||
|
|
29970472f8
|
||
|
|
6507cbc0e0
|
||
|
|
7e3985bd34
|
||
|
|
57b8980ebe
|
||
|
|
f1ddccb0df
|
||
|
|
0fb5c79df4
|
||
|
|
b2915bdd90
|
||
|
|
49ef17ac33
|
||
|
|
debe85da8e
|
||
|
|
558c497c74
|
||
|
|
c4451939d5
|
||
|
|
d1f010dcc8
|
||
|
|
3d5a0f8cb5
|
||
|
|
0831730903
|
||
|
|
004eff3abf
|
||
|
|
592e7e4bb9
|
||
|
|
ec7247bc77
|
||
|
|
e1d041f010
|
||
|
|
84fec63204
|
||
|
|
b434aaaccc
|
||
|
|
4639fd8c7e
|
||
|
|
7f22089765
|
||
|
|
8c53eaf570
|
||
|
|
c9a4b1a428
|
||
|
|
288496afa1
|
||
|
|
34f61d4f27
|
||
|
|
77f169fef4
|
||
|
|
8576db096f
|
||
|
|
d20ce66646
|
||
|
|
226b72dccf
|
||
|
|
6147801194
|
||
|
|
a1b8bc9555
|
||
|
|
83ffca5e21
|
||
|
|
eb782a67cb
|
||
|
|
85a12edbcc
|
||
|
|
a056e4d98b
|
||
|
|
5f17a04fbb
|
||
|
|
f514387f64
|
||
|
|
c328c188b8
|
||
|
|
585f74ce0f
|
||
|
|
8263fe01eb
|
||
|
|
d61e6f8b9c
|
||
|
|
7c7c195083
|
||
|
|
2e78898c5a
|
||
|
|
1f61e9958c
|
||
|
|
c8954e5854
|
||
|
|
e772d93f23
|
||
|
|
4c17560020
|
||
|
|
e1542a1168
|
||
|
|
a351bf59ba
|
||
|
|
7a62f38084
|
||
|
|
b50c5f9f71
|
||
|
|
0087145957
|
||
|
|
48c77e9654
|
||
|
|
71d06d61b1
|
||
|
|
75d024111e
|
||
|
|
b67aee2a64
|
||
|
|
554a76b585
|
||
|
|
d9e7e315da
|
||
|
|
daee8da3ae
|
||
|
|
c2b661adbb
|
||
|
|
aa4ebfbc06
|
||
|
|
db850552e3
|
||
|
|
63afac3d04
|
||
|
|
645fc64ead
|
||
|
|
6561d4c979
|
||
|
|
f1ed339968
|
||
|
|
50d14ecf83
|
||
|
|
1cdc3f25e0
|
||
|
|
9e62f755bb
|
||
|
|
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
|
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 2.6 MiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 747 KiB |
@@ -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).
|
|
||||||
|
|||||||
@@ -206,12 +206,12 @@ dos2unix <file>
|
|||||||
$ file: eza -1
|
$ file: eza -1
|
||||||
|
|
||||||
% unix2dos
|
% unix2dos
|
||||||
# Convert line endings to dos format
|
Convert line endings to dos format
|
||||||
unix2dos <file>
|
unix2dos <file>
|
||||||
$ file: eza -1
|
$ file: eza -1
|
||||||
|
|
||||||
% tiddl
|
% tiddl
|
||||||
# Download stuff from tidal
|
Download stuff from tidal
|
||||||
tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>"
|
tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>"
|
||||||
|
|
||||||
; ===========================
|
; ===========================
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Generated
+175
-1074
File diff suppressed because it is too large
Load Diff
@@ -47,10 +47,6 @@
|
|||||||
nps.url = "github:OleMussmann/nps";
|
nps.url = "github:OleMussmann/nps";
|
||||||
nps.inputs.nixpkgs.follows = "nixpkgs";
|
nps.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Nix Gaming
|
|
||||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
|
||||||
nix-gaming.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# Run unpatched binaries on NixOS
|
# Run unpatched binaries on NixOS
|
||||||
nix-alien.url = "github:thiagokokada/nix-alien";
|
nix-alien.url = "github:thiagokokada/nix-alien";
|
||||||
# Don't follow nixpkgs:
|
# Don't follow nixpkgs:
|
||||||
@@ -58,16 +54,9 @@
|
|||||||
# nix-alien.inputs.nixpkgs.follows = "nixpkgs";
|
# nix-alien.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Niri
|
# Niri
|
||||||
# niri.url = "github:sodiboo/niri-flake";
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
niri.url = "github:epireyn/niri-flake"; # NOTE: Updated fork of sodiboo's
|
|
||||||
niri.inputs.nixpkgs.follows = "nixpkgs";
|
niri.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Hyprland
|
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
|
||||||
# hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
|
|
||||||
hyprland-plugins.inputs.hyprland.follows = "hyprland";
|
|
||||||
|
|
||||||
# Walker
|
# Walker
|
||||||
elephant.url = "github:abenz1267/elephant";
|
elephant.url = "github:abenz1267/elephant";
|
||||||
walker.url = "github:abenz1267/walker";
|
walker.url = "github:abenz1267/walker";
|
||||||
@@ -75,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";
|
||||||
@@ -97,9 +86,6 @@
|
|||||||
# musnix.url = "github:musnix/musnix";
|
# musnix.url = "github:musnix/musnix";
|
||||||
# musnix.inputs.nixpkgs.follows = "nixpkgs";
|
# musnix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
stylix.url = "github:nix-community/stylix";
|
|
||||||
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# HyTale
|
# HyTale
|
||||||
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
|
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
|
||||||
|
|
||||||
@@ -240,7 +226,6 @@
|
|||||||
headless = false;
|
headless = false;
|
||||||
extraModules = [
|
extraModules = [
|
||||||
inputs.sops-nix.darwinModules.sops
|
inputs.sops-nix.darwinModules.sops
|
||||||
inputs.stylix.darwinModules.stylix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -267,8 +252,6 @@
|
|||||||
extraModules =
|
extraModules =
|
||||||
[
|
[
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
inputs.nix-gaming.nixosModules.platformOptimizations
|
|
||||||
]
|
]
|
||||||
++ commonModules;
|
++ commonModules;
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-191
@@ -54,7 +54,7 @@ in
|
|||||||
cursorSize = 24;
|
cursorSize = 24;
|
||||||
cursorPackage = pkgs.bibata-cursors;
|
cursorPackage = pkgs.bibata-cursors;
|
||||||
|
|
||||||
iconTheme = "Papirus-Dark";
|
iconTheme = "Papirus";
|
||||||
iconPackage = pkgs.papirus-icon-theme;
|
iconPackage = pkgs.papirus-icon-theme;
|
||||||
|
|
||||||
scheme = "catppuccin-mocha";
|
scheme = "catppuccin-mocha";
|
||||||
@@ -77,193 +77,6 @@ in
|
|||||||
disableTabBar = true;
|
disableTabBar = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hyprland = {
|
|
||||||
enable = nixosConfig.programs.hyprland.enable;
|
|
||||||
bars.enable = false;
|
|
||||||
hyprpanel.enable = false;
|
|
||||||
|
|
||||||
keybindings = {
|
|
||||||
main-mod = "SUPER";
|
|
||||||
|
|
||||||
bindings = let
|
|
||||||
sessionMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "Session2";
|
|
||||||
layers = [
|
|
||||||
{
|
|
||||||
" Poweroff" = "poweroff";
|
|
||||||
" Reboot" = "reboot";
|
|
||||||
" Lock" = "loginctl lock-session";
|
|
||||||
# " Reload Hyprpanel" = "systemctl --user restart hyprpanel.service";
|
|
||||||
" Reload Hyprland" = "hyprctl reload";
|
|
||||||
" Exit Hyprland" = "hyprctl dispatch exit";
|
|
||||||
# " Exit Niri" = "niri msg action quit";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
prompts = ["Select Session Action"];
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
lib.mergeAttrsList [
|
|
||||||
{
|
|
||||||
"$mainMod SHIFT, a" = ["exec, walker -m providerlist"];
|
|
||||||
"$mainMod, a" = ["exec, walker -m desktopapplications"];
|
|
||||||
"$mainMod, c" = ["exec, walker -m clipboard"];
|
|
||||||
"$mainMod, Escape" = ["exec, ${sessionMenu}/bin/rofi-menu-Session2"];
|
|
||||||
"$mainMod CTRL, w" = ["exec, waypaper"];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# Applications
|
|
||||||
"$mainMod, t" = ["exec, kitty"];
|
|
||||||
"$mainMod, e" = ["exec, kitty --title=Yazi yazi"];
|
|
||||||
"$mainMod, n" = ["exec, neovide"];
|
|
||||||
# "$mainMod, r" = ["exec, kitty --title=Rmpc rmpc"];
|
|
||||||
"$mainMod CTRL, n" = ["exec, kitty --title=Navi navi"];
|
|
||||||
"$mainMod SHIFT, n" = ["exec, neovide ${config.paths.dotfiles}/navi/christoph.cheat"];
|
|
||||||
"$mainMod SHIFT, f" = ["exec, neovide ${config.paths.dotfiles}/flake.nix"];
|
|
||||||
# "ALT, tab" = ["exec, rofi -show window"];
|
|
||||||
|
|
||||||
# Screenshots
|
|
||||||
"$mainMod, p" = ["exec, hyprpicker --autocopy --format=hex"];
|
|
||||||
"$mainMod, s" = ["exec, grim -g \"$(slurp)\""];
|
|
||||||
"$mainMod SHIFT, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
|
|
||||||
|
|
||||||
# Audio
|
|
||||||
", XF86AudioRaiseVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"];
|
|
||||||
", XF86AudioLowerVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"];
|
|
||||||
", XF86AudioPlay" = ["exec, playerctl play-pause"];
|
|
||||||
", XF86AudioPrev" = ["exec, playerctl previous"];
|
|
||||||
", XF86AudioNext" = ["exec, playerctl next"];
|
|
||||||
|
|
||||||
# Brightness
|
|
||||||
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
|
|
||||||
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
|
|
||||||
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 5750"];
|
|
||||||
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
|
|
||||||
|
|
||||||
"CTRL ALT, f" = let
|
|
||||||
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
|
|
||||||
grep = "${pkgs.gnugrep}/bin/grep";
|
|
||||||
awk = "${pkgs.gawk}/bin/gawk";
|
|
||||||
notify = "${pkgs.libnotify}/bin/notify-send";
|
|
||||||
|
|
||||||
toggleMouseFocus = pkgs.writeScriptBin "hypr-toggle-mouse-focus" ''
|
|
||||||
CURRENT=$(${hyprctl} getoption input:follow_mouse | ${grep} int | ${awk} -F' ' '{print $2}')
|
|
||||||
|
|
||||||
if [[ "$CURRENT" == "1" ]]; then
|
|
||||||
${hyprctl} keyword input:follow_mouse 0
|
|
||||||
${notify} "Disabled Mouse Focus!"
|
|
||||||
else
|
|
||||||
${hyprctl} keyword input:follow_mouse 1
|
|
||||||
${notify} "Enabled Mouse Focus!"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in ["exec, ${toggleMouseFocus}/bin/hypr-toggle-mouse-focus"];
|
|
||||||
|
|
||||||
# "CTRL ALT, t" = ["exec, bash -c 'systemctl --user restart hyprpanel.service'"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
ws-bindings = {
|
|
||||||
# "<Workspace>" = "<Key>";
|
|
||||||
"1" = "1";
|
|
||||||
"2" = "2";
|
|
||||||
"3" = "3";
|
|
||||||
"4" = "4";
|
|
||||||
"5" = "5";
|
|
||||||
"6" = "6";
|
|
||||||
"7" = "7";
|
|
||||||
"8" = "8";
|
|
||||||
"9" = "9";
|
|
||||||
"10" = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
# special-ws-bindings = {
|
|
||||||
# "ferdium" = "x";
|
|
||||||
# "msty" = "z";
|
|
||||||
# "btop" = "b";
|
|
||||||
# "rmpc" = "r";
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
autostart = {
|
|
||||||
immediate = [
|
|
||||||
"kitty --hold fastfetch"
|
|
||||||
# "zeal"
|
|
||||||
# "protonvpn-app"
|
|
||||||
|
|
||||||
# "kdeconnect-indicator" # started by services.kdeconnect.indicator
|
|
||||||
];
|
|
||||||
|
|
||||||
delayed = [
|
|
||||||
# "keepassxc" # The tray doesn't work when started too early
|
|
||||||
"nextcloud --background"
|
|
||||||
];
|
|
||||||
|
|
||||||
special-silent = {
|
|
||||||
# "ferdium" = ["ferdium"];
|
|
||||||
# "msty" = ["msty"];
|
|
||||||
# "btop" = ["kitty --title=Btop btop"];
|
|
||||||
# "rmpc" = ["kitty --title=Rmpc rmpc"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
windowrules = [
|
|
||||||
# Fix jetbrains tooltip flicker
|
|
||||||
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, float 1"
|
|
||||||
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, no_initial_focus 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
workspacerules = {
|
|
||||||
"1" = [];
|
|
||||||
"2" = ["neovide" "code-url-handler" "dev.zed.Zed" "code" "jetbrains-(.+)"];
|
|
||||||
"3" = ["obsidian" "Zotero"];
|
|
||||||
"4" = ["firefox" "Google-chrome" "chromium-browser" "org.qutebrowser.qutebrowser"];
|
|
||||||
"5" = ["steam"];
|
|
||||||
"6" = ["steam_app_(.+)" "factorio"];
|
|
||||||
"7" = ["signal"];
|
|
||||||
"8" = [];
|
|
||||||
"9" = ["discord"];
|
|
||||||
"10" = [];
|
|
||||||
};
|
|
||||||
|
|
||||||
floating = [
|
|
||||||
{class = "org.kde.polkit-kde-authentication-agent-1";}
|
|
||||||
{
|
|
||||||
class = "thunar";
|
|
||||||
title = "File Operation Progress";
|
|
||||||
}
|
|
||||||
{class = "ffplay";}
|
|
||||||
{class = "Unity";}
|
|
||||||
{class = "code-url-handler";}
|
|
||||||
];
|
|
||||||
|
|
||||||
transparent-opacity = "0.85";
|
|
||||||
|
|
||||||
transparent = [
|
|
||||||
"kitty"
|
|
||||||
"Alacritty"
|
|
||||||
"discord"
|
|
||||||
"signal"
|
|
||||||
"vesktop"
|
|
||||||
"Spotify"
|
|
||||||
"tidal-hifi"
|
|
||||||
"obsidian"
|
|
||||||
"firefox"
|
|
||||||
"org.qutebrowser.qutebrowser"
|
|
||||||
"jetbrains-clion"
|
|
||||||
"jetbrains-idea"
|
|
||||||
"jetbrains-pycharm"
|
|
||||||
"jetbrains-rustrover"
|
|
||||||
"jetbrains-rider"
|
|
||||||
"jetbrains-webstorm"
|
|
||||||
"code-url-handler"
|
|
||||||
"neovide"
|
|
||||||
"steam"
|
|
||||||
"ferdium"
|
|
||||||
"Msty"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
mpd.enable = !headless;
|
mpd.enable = !headless;
|
||||||
niri.enable = nixosConfig.programs.niri.enable;
|
niri.enable = nixosConfig.programs.niri.enable;
|
||||||
nnn.enable = false; # Use yazi
|
nnn.enable = false; # Use yazi
|
||||||
@@ -323,11 +136,9 @@ in
|
|||||||
|
|
||||||
# Enable wayland
|
# Enable wayland
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
# QT_QPA_PLATFORM = "wayland;xcb";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
# ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
SDL_VIDEODRIVER = "wayland"; # Leave unset as gamescope uses xwayland
|
|
||||||
|
|
||||||
# Run SSH_ASKPASS as GUI, not TTY for Obsidian git
|
# Run SSH_ASKPASS as GUI, not TTY for Obsidian git
|
||||||
SSH_ASKPASS_REQUIRE = "prefer";
|
SSH_ASKPASS_REQUIRE = "prefer";
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
nixosConfig,
|
nixosConfig,
|
||||||
config,
|
config,
|
||||||
hostname,
|
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
username,
|
username,
|
||||||
@@ -18,314 +17,7 @@
|
|||||||
# because it forces en-US keyboard layout.
|
# because it forces en-US keyboard layout.
|
||||||
fcitx.enable = true;
|
fcitx.enable = true;
|
||||||
|
|
||||||
helix.enable = true;
|
|
||||||
|
|
||||||
hyprland = {
|
|
||||||
keyboard = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "altgr-intl";
|
|
||||||
option = "nodeadkeys";
|
|
||||||
};
|
|
||||||
|
|
||||||
monitors = {
|
|
||||||
"DP-1" = {
|
|
||||||
width = 3440;
|
|
||||||
height = 1440;
|
|
||||||
rate = 165;
|
|
||||||
x = 1920;
|
|
||||||
y = 0;
|
|
||||||
scale = 1;
|
|
||||||
bitdepth = 10;
|
|
||||||
cm = "auto"; # with render:cm_auto_hdr, we don't need hdr here
|
|
||||||
};
|
|
||||||
|
|
||||||
"DP-2" = {
|
|
||||||
width = 1920;
|
|
||||||
height = 1080;
|
|
||||||
rate = 60;
|
|
||||||
x = 0;
|
|
||||||
y = 0;
|
|
||||||
scale = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
workspaces = {
|
|
||||||
"DP-1" = [1 2 3 4 5 6 7 8 9];
|
|
||||||
"DP-2" = [10];
|
|
||||||
};
|
|
||||||
|
|
||||||
autostart = {
|
|
||||||
delayed = [
|
|
||||||
"fcitx5"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
floating = [
|
|
||||||
{
|
|
||||||
class = "fcitx";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
# NOTE: Starts extremely slow
|
|
||||||
ghostty = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
systemd.enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
theme = "catppuccin-mocha";
|
|
||||||
font-family = config.homemodules.color.font;
|
|
||||||
font-size = 12;
|
|
||||||
window-padding-x = 10;
|
|
||||||
window-padding-y = 10;
|
|
||||||
adjust-cursor-thickness = 1;
|
|
||||||
|
|
||||||
cursor-click-to-move = true;
|
|
||||||
gtk-single-instance = true;
|
|
||||||
# link-previews = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
themes = let
|
|
||||||
color = config.homemodules.color;
|
|
||||||
in {
|
|
||||||
catppuccin-mocha = {
|
|
||||||
background = color.hex.base;
|
|
||||||
cursor-color = color.hex.rosewater;
|
|
||||||
foreground = color.hex.text;
|
|
||||||
palette = [
|
|
||||||
"0=#${color.hex.surface1}"
|
|
||||||
"1=#${color.hex.red}"
|
|
||||||
"2=#${color.hex.green}"
|
|
||||||
"3=#${color.hex.yellow}"
|
|
||||||
"4=#${color.hex.blue}"
|
|
||||||
"5=#${color.hex.pink}"
|
|
||||||
"6=#${color.hex.teal}"
|
|
||||||
"7=#${color.hex.subtext1}"
|
|
||||||
"8=#${color.hex.surface2}"
|
|
||||||
"9=#${color.hex.red}"
|
|
||||||
"10=#${color.hex.green}"
|
|
||||||
"11=#${color.hex.yellow}"
|
|
||||||
"12=#${color.hex.blue}"
|
|
||||||
"13=#${color.hex.pink}"
|
|
||||||
"14=#${color.hex.teal}"
|
|
||||||
"15=#${color.hex.subtext0}"
|
|
||||||
];
|
|
||||||
selection-background = color.hex.surface1;
|
|
||||||
selection-foreground = color.hex.text;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
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"
|
|
||||||
"lmstudio"
|
|
||||||
];
|
|
||||||
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
|
|
||||||
# "opencode-lmstudio@0.3.1"
|
|
||||||
# "@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
|
||||||
@@ -383,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
|
||||||
@@ -451,43 +143,15 @@
|
|||||||
stateVersion = "22.05";
|
stateVersion = "22.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Cyberpunk 2077 NXM handler
|
|
||||||
xdg.desktopEntries."modorganizer2-nxm-handler-cyberpunk" = {
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Game"];
|
|
||||||
name = "Mod Organizer 2 NXM Handler (Cyberpunk 2077)";
|
|
||||||
mimeType = ["x-scheme-handler/nxm"];
|
|
||||||
exec = let
|
|
||||||
# Paths seen from inside the Flatpak Steam sandbox
|
|
||||||
steam = "$HOME/.steam/steam";
|
|
||||||
steamapps = "$HOME/Games/SteamLibrary/steamapps";
|
|
||||||
proton = "Proton 11.0";
|
|
||||||
|
|
||||||
# Runs inside flatpak's sandbox
|
|
||||||
innerCommand = ''
|
|
||||||
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${steam}"
|
|
||||||
export STEAM_COMPAT_DATA_PATH="${steamapps}/compatdata/1091500"
|
|
||||||
exec "${steam}/steamapps/common/${proton}/proton" run \
|
|
||||||
"$HOME/Games/CyberpunkMO2/nxmhandler.exe" "$1"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Important: Run through flatpak's/steam's runtimes
|
|
||||||
nxmHandler = pkgs.writeShellScript "cyberpunk-nxm-handler" ''
|
|
||||||
exec flatpak run --command=sh com.valvesoftware.Steam -c ${lib.escapeShellArg innerCommand} _ "$1"
|
|
||||||
'';
|
|
||||||
in "${nxmHandler} %u";
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
flatpak = {
|
flatpak = {
|
||||||
packages = [
|
packages = [
|
||||||
"com.valvesoftware.Steam"
|
"com.valvesoftware.Steam"
|
||||||
"com.valvesoftware.Steam.Utility.steamtinkerlaunch"
|
"com.valvesoftware.Steam.Utility.steamtinkerlaunch"
|
||||||
"org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/25.08" # TODO: Doesn't work
|
"org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/24.08"
|
||||||
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/25.08"
|
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/24.08"
|
||||||
"io.github.Foldex.AdwSteamGtk"
|
"io.github.Foldex.AdwSteamGtk"
|
||||||
"com.vysp3r.ProtonPlus"
|
"com.vysp3r.ProtonPlus"
|
||||||
"com.github.Matoking.protontricks"
|
|
||||||
# "net.davidotek.pupgui2"
|
# "net.davidotek.pupgui2"
|
||||||
|
|
||||||
"org.prismlauncher.PrismLauncher"
|
"org.prismlauncher.PrismLauncher"
|
||||||
@@ -508,34 +172,12 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"com.github.Matoking.protontricks".Context = {
|
"com.valvesoftware.Steam".Context = {
|
||||||
filesystems = [
|
filesystems = [
|
||||||
"${config.home.homeDirectory}/.var/app/com.valvesoftware.Steam"
|
|
||||||
"${config.home.homeDirectory}/Games"
|
"${config.home.homeDirectory}/Games"
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
"com.valvesoftware.Steam" = {
|
# This is Proton-GE installed from flatpak. ProtonUpQT doesn't require it.
|
||||||
Environment = {
|
"/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE"
|
||||||
PATH = "/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/gamescope/bin";
|
|
||||||
};
|
|
||||||
Context = {
|
|
||||||
filesystems = [
|
|
||||||
"${config.home.homeDirectory}/Games"
|
|
||||||
|
|
||||||
# This is Proton-GE installed from flatpak. ProtonUpQT doesn't require it.
|
|
||||||
"/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE"
|
|
||||||
|
|
||||||
# This is gamescope installed from flatpak
|
|
||||||
"/usr/lib/extensions/vulkan/gamescope/bin"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"com.valvesoftware.Steam.Utility.steamtinkerlaunch".Context = {
|
|
||||||
filesystems = [
|
|
||||||
"${config.home.homeDirectory}/.var/app/com.valvesoftware.Steam"
|
|
||||||
"${config.home.homeDirectory}/Games"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,28 +4,28 @@
|
|||||||
homemodules = {
|
homemodules = {
|
||||||
# TODO: Niri config (needs to modularize niri module)
|
# TODO: Niri config (needs to modularize niri module)
|
||||||
|
|
||||||
hyprland = {
|
# hyprland = {
|
||||||
keyboard = {
|
# keyboard = {
|
||||||
layout = "us";
|
# layout = "us";
|
||||||
variant = "altgr-intl";
|
# variant = "altgr-intl";
|
||||||
option = "nodeadkeys";
|
# option = "nodeadkeys";
|
||||||
};
|
# };
|
||||||
|
#
|
||||||
monitors = {
|
# monitors = {
|
||||||
"eDP-1" = {
|
# "eDP-1" = {
|
||||||
width = 1920;
|
# width = 1920;
|
||||||
height = 1080;
|
# height = 1080;
|
||||||
rate = 60;
|
# rate = 60;
|
||||||
x = 0;
|
# x = 0;
|
||||||
y = 0;
|
# y = 0;
|
||||||
scale = 1;
|
# scale = 1;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
#
|
||||||
workspaces = {
|
# workspaces = {
|
||||||
"eDP-1" = [1 2 3 4 5 6 7 8 9];
|
# "eDP-1" = [1 2 3 4 5 6 7 8 9];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
waybar.monitors = ["eDP-1"];
|
waybar.monitors = ["eDP-1"];
|
||||||
};
|
};
|
||||||
|
|||||||
+7
-7
@@ -15,10 +15,10 @@ in {
|
|||||||
options.homemodules.helix = import ./options.nix {inherit lib mylib;};
|
options.homemodules.helix = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
# VISUAL = "hx";
|
VISUAL = "hx";
|
||||||
# };
|
};
|
||||||
|
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -40,11 +40,11 @@ in {
|
|||||||
|
|
||||||
# https://docs.helix-editor.com/configuration.html
|
# https://docs.helix-editor.com/configuration.html
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin_mocha";
|
theme = "catppuccin_latte";
|
||||||
editor = {
|
editor = {
|
||||||
scrolloff = 10;
|
scrolloff = 10;
|
||||||
mouse = true;
|
mouse = false; # Default true
|
||||||
middle-click-paste = true;
|
middle-click-paste = false; # Default true
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
color-modes = true;
|
color-modes = true;
|
||||||
+7
-8
@@ -5,12 +5,16 @@
|
|||||||
hyprland,
|
hyprland,
|
||||||
}:
|
}:
|
||||||
builtins.concatLists [
|
builtins.concatLists [
|
||||||
|
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
|
||||||
(lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel
|
(lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel
|
||||||
|
(lib.optionals hyprland.caelestia.enable ["caelestia shell"]) # Panel/Shell # TODO: Crashes on startup
|
||||||
[
|
[
|
||||||
|
# Start clipboard management
|
||||||
|
"wl-paste -t text --watch clipman store --no-persist"
|
||||||
|
"wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\""
|
||||||
|
|
||||||
"hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}"
|
"hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}"
|
||||||
"hyprsunset --identity"
|
"hyprsunset --identity"
|
||||||
"waypaper --restore"
|
|
||||||
"fcitx5"
|
|
||||||
|
|
||||||
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
|
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
|
||||||
"setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104"
|
"setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104"
|
||||||
@@ -22,11 +26,6 @@ builtins.concatLists [
|
|||||||
# This is used for example when running systemd commands without root.
|
# This is used for example when running systemd commands without root.
|
||||||
# "systemctl --user start hyprpolkitagent.service"
|
# "systemctl --user start hyprpolkitagent.service"
|
||||||
# "${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1"
|
# "${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1"
|
||||||
|
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||||
# TODO: This is started by niri already (extract to module so niri/hyprland can both use it)
|
|
||||||
# "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
|
||||||
|
|
||||||
# TODO: This is started by niri already (extract to module so niri/hyprland can both use it)
|
|
||||||
"dunst"
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -0,0 +1,516 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
hyprland,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
enable = hyprland.caelestia.enable;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = false; # Start from hyprland autostart
|
||||||
|
target = "graphical-session.target";
|
||||||
|
environment = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
appearance = {
|
||||||
|
anim = {durations = {scale = 1;};};
|
||||||
|
font = {
|
||||||
|
family = {
|
||||||
|
clock = "Rubik";
|
||||||
|
material = "Material Symbols Rounded";
|
||||||
|
mono = color.font;
|
||||||
|
sans = color.font;
|
||||||
|
};
|
||||||
|
size = {scale = 1;};
|
||||||
|
};
|
||||||
|
|
||||||
|
padding = {scale = 1;};
|
||||||
|
rounding = {scale = 1;};
|
||||||
|
spacing = {scale = 1;};
|
||||||
|
|
||||||
|
transparency = {
|
||||||
|
base = 0.85;
|
||||||
|
enabled = false;
|
||||||
|
layers = 0.4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
background = {
|
||||||
|
desktopClock = {enabled = false;};
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
# Lags when visible on both monitors (different refresh rates?)
|
||||||
|
visualiser = {
|
||||||
|
autoHide = true;
|
||||||
|
blur = true;
|
||||||
|
enabled = false;
|
||||||
|
rounding = 1;
|
||||||
|
spacing = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
bar = {
|
||||||
|
clock = {showIcon = true;};
|
||||||
|
dragThreshold = 20;
|
||||||
|
|
||||||
|
entries = [
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "logo";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "workspaces";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "spacer";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "activeWindow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "spacer";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "clock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "tray";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "statusIcons";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
enabled = true;
|
||||||
|
id = "power";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
persistent = true;
|
||||||
|
|
||||||
|
popouts = {
|
||||||
|
activeWindow = true;
|
||||||
|
statusIcons = true;
|
||||||
|
tray = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrollActions = {
|
||||||
|
brightness = false;
|
||||||
|
volume = true;
|
||||||
|
workspaces = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
showOnHover = true;
|
||||||
|
|
||||||
|
status = {
|
||||||
|
showAudio = true;
|
||||||
|
showBattery = false;
|
||||||
|
showBluetooth = true;
|
||||||
|
showKbLayout = false;
|
||||||
|
showLockStatus = true;
|
||||||
|
showMicrophone = false;
|
||||||
|
showNetwork = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tray = {
|
||||||
|
background = true;
|
||||||
|
compact = false;
|
||||||
|
iconSubs = [];
|
||||||
|
recolour = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
workspaces = {
|
||||||
|
activeIndicator = true;
|
||||||
|
activeLabel = "";
|
||||||
|
activeTrail = true;
|
||||||
|
label = " ";
|
||||||
|
occupiedBg = false;
|
||||||
|
occupiedLabel = "";
|
||||||
|
perMonitorWorkspaces = false;
|
||||||
|
showWindows = false;
|
||||||
|
shown = 10;
|
||||||
|
|
||||||
|
# Pick them here: https://fonts.google.com/icons
|
||||||
|
specialWorkspaceIcons = [
|
||||||
|
{
|
||||||
|
icon = "music_note";
|
||||||
|
name = "rmpc";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "memory";
|
||||||
|
name = "btop";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "mark_chat_unread";
|
||||||
|
name = "ferdium";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "network_intelligence";
|
||||||
|
name = "msty";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
border = {
|
||||||
|
rounding = 25;
|
||||||
|
thickness = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
dashboard = {
|
||||||
|
dragThreshold = 50;
|
||||||
|
enabled = true;
|
||||||
|
mediaUpdateInterval = 500;
|
||||||
|
showOnHover = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
general = {
|
||||||
|
apps = {
|
||||||
|
audio = ["kitty" "--title=NcpaMixer" "-e" "ncpamixer"];
|
||||||
|
explorer = ["kitty" "--title=Yazi" "-e" "yazi"];
|
||||||
|
playback = ["mpv"];
|
||||||
|
terminal = ["kitty"];
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
criticalLevel = 3;
|
||||||
|
warnLevels = [
|
||||||
|
{
|
||||||
|
icon = "battery_android_frame_2";
|
||||||
|
level = 20;
|
||||||
|
message = "You might want to plug in a charger";
|
||||||
|
title = "Low battery";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = "battery_android_frame_1";
|
||||||
|
level = 10;
|
||||||
|
message = "You should probably plug in a charger <b>now</b>";
|
||||||
|
title = "Did you see the previous message?";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
critical = true;
|
||||||
|
icon = "battery_android_alert";
|
||||||
|
level = 5;
|
||||||
|
message = "PLUG THE CHARGER RIGHT NOW!!";
|
||||||
|
title = "Critical battery level";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
idle = {
|
||||||
|
inhibitWhenAudio = true;
|
||||||
|
lockBeforeSleep = true;
|
||||||
|
timeouts = [
|
||||||
|
{
|
||||||
|
idleAction = "lock";
|
||||||
|
timeout = 600;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
# idleAction = "dpms off";
|
||||||
|
# returnAction = "dpms on";
|
||||||
|
idleAction = "echo 'idle'";
|
||||||
|
returnAction = "echo 'return'";
|
||||||
|
timeout = 10000;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
# idleAction = ["systemctl" "suspend-then-hibernate"];
|
||||||
|
idleAction = ["echo" "'idle'"];
|
||||||
|
timeout = 20000;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
launcher = {
|
||||||
|
actionPrefix = ">";
|
||||||
|
actions = [
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "calc"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Do simple math equations (powered by Qalc)";
|
||||||
|
enabled = true;
|
||||||
|
icon = "calculate";
|
||||||
|
name = "Calculator";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "scheme"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current colour scheme";
|
||||||
|
enabled = true;
|
||||||
|
icon = "palette";
|
||||||
|
name = "Scheme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "wallpaper"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current wallpaper";
|
||||||
|
enabled = true;
|
||||||
|
icon = "image";
|
||||||
|
name = "Wallpaper";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "variant"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the current scheme variant";
|
||||||
|
enabled = true;
|
||||||
|
icon = "colors";
|
||||||
|
name = "Variant";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["autocomplete" "transparency"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change shell transparency";
|
||||||
|
enabled = false;
|
||||||
|
icon = "opacity";
|
||||||
|
name = "Transparency";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["caelestia" "wallpaper" "-r"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Switch to a random wallpaper";
|
||||||
|
enabled = false;
|
||||||
|
icon = "casino";
|
||||||
|
name = "Random";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["setMode" "light"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the scheme to light mode";
|
||||||
|
enabled = true;
|
||||||
|
icon = "light_mode";
|
||||||
|
name = "Light";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["setMode" "dark"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Change the scheme to dark mode";
|
||||||
|
enabled = true;
|
||||||
|
icon = "dark_mode";
|
||||||
|
name = "Dark";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "poweroff"];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Shutdown the system";
|
||||||
|
enabled = true;
|
||||||
|
icon = "power_settings_new";
|
||||||
|
name = "Shutdown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "reboot"];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Reboot the system";
|
||||||
|
enabled = true;
|
||||||
|
icon = "cached";
|
||||||
|
name = "Reboot";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["loginctl" "terminate-user" ""];
|
||||||
|
dangerous = true;
|
||||||
|
description = "Log out of the current session";
|
||||||
|
enabled = true;
|
||||||
|
icon = "exit_to_app";
|
||||||
|
name = "Logout";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["loginctl" "lock-session"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Lock the current session";
|
||||||
|
enabled = true;
|
||||||
|
icon = "lock";
|
||||||
|
name = "Lock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = ["systemctl" "suspend-then-hibernate"];
|
||||||
|
dangerous = false;
|
||||||
|
description = "Suspend then hibernate";
|
||||||
|
enabled = false;
|
||||||
|
icon = "bedtime";
|
||||||
|
name = "Sleep";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
dragThreshold = 50;
|
||||||
|
enableDangerousActions = true;
|
||||||
|
hiddenApps = [];
|
||||||
|
maxShown = 7;
|
||||||
|
maxWallpapers = 9;
|
||||||
|
showOnHover = false;
|
||||||
|
specialPrefix = "@";
|
||||||
|
useFuzzy = {
|
||||||
|
actions = false;
|
||||||
|
apps = false;
|
||||||
|
schemes = false;
|
||||||
|
variants = false;
|
||||||
|
wallpapers = false;
|
||||||
|
};
|
||||||
|
vimKeybinds = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
lock = {recolourLogo = false;};
|
||||||
|
|
||||||
|
notifs = {
|
||||||
|
actionOnClick = false;
|
||||||
|
clearThreshold = 0.3;
|
||||||
|
defaultExpireTimeout = 5000;
|
||||||
|
expandThreshold = 20;
|
||||||
|
expire = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
osd = {
|
||||||
|
enableBrightness = false;
|
||||||
|
enableMicrophone = true;
|
||||||
|
enabled = true;
|
||||||
|
hideDelay = 2000;
|
||||||
|
};
|
||||||
|
|
||||||
|
paths = {
|
||||||
|
mediaGif = "root:/assets/bongocat.gif";
|
||||||
|
sessionGif = "root:/assets/kurukuru.gif";
|
||||||
|
wallpaperDir = "~/NixFlake/wallpapers";
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
audioIncrement = 0.1;
|
||||||
|
defaultPlayer = "MPD";
|
||||||
|
gpuType = "";
|
||||||
|
maxVolume = 1;
|
||||||
|
playerAliases = [
|
||||||
|
{
|
||||||
|
from = "com.github.th_ch.youtube_music";
|
||||||
|
to = "YT Music";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
smartScheme = true;
|
||||||
|
useFahrenheit = false;
|
||||||
|
useTwelveHourClock = false;
|
||||||
|
visualiserBars = 45;
|
||||||
|
weatherLocation = "Dortmund, Germany";
|
||||||
|
};
|
||||||
|
|
||||||
|
session = {
|
||||||
|
commands = {
|
||||||
|
hibernate = ["systemctl" "hibernate"];
|
||||||
|
logout = ["loginctl" "terminate-user" ""];
|
||||||
|
reboot = ["systemctl" "reboot"];
|
||||||
|
shutdown = ["systemctl" "poweroff"];
|
||||||
|
};
|
||||||
|
dragThreshold = 30;
|
||||||
|
enabled = true;
|
||||||
|
vimKeybinds = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
sidebar = {
|
||||||
|
dragThreshold = 80;
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
utilities = {
|
||||||
|
enabled = true;
|
||||||
|
maxToasts = 4;
|
||||||
|
toasts = {
|
||||||
|
audioInputChanged = true;
|
||||||
|
audioOutputChanged = true;
|
||||||
|
capsLockChanged = true;
|
||||||
|
chargingChanged = true;
|
||||||
|
configLoaded = true;
|
||||||
|
dndChanged = true;
|
||||||
|
gameModeChanged = true;
|
||||||
|
kbLayoutChanged = false;
|
||||||
|
nowPlaying = false;
|
||||||
|
numLockChanged = true;
|
||||||
|
vpnChanged = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
vpn = {
|
||||||
|
enabled = false;
|
||||||
|
provider = [
|
||||||
|
{
|
||||||
|
displayName = "Wireguard (Your VPN)";
|
||||||
|
interface = "your-connection-name";
|
||||||
|
name = "wireguard";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cli = {
|
||||||
|
enable = hyprland.caelestia.enable;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
record = {extraArgs = [];};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
enableBtop = false;
|
||||||
|
enableDiscord = false;
|
||||||
|
enableFuzzel = false;
|
||||||
|
enableGtk = false;
|
||||||
|
enableHypr = false;
|
||||||
|
enableQt = false;
|
||||||
|
enableSpicetify = false;
|
||||||
|
enableTerm = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
toggles = {
|
||||||
|
communication = {
|
||||||
|
discord = {
|
||||||
|
command = ["discord"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "discord";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
whatsapp = {
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "whatsapp";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
music = {
|
||||||
|
feishin = {
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "feishin";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
spotify = {
|
||||||
|
command = ["spicetify" "watch" "-s"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "Spotify";} {initialTitle = "Spotify";} {initialTitle = "Spotify Free";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sysmon = {
|
||||||
|
btop = {
|
||||||
|
command = ["kitty" "--title" "Btop" "-e" "btop"];
|
||||||
|
enable = false;
|
||||||
|
match = [
|
||||||
|
{
|
||||||
|
class = "btop";
|
||||||
|
title = "Btop";
|
||||||
|
workspace = {name = "special:sysmon";};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
todo = {
|
||||||
|
todoist = {
|
||||||
|
command = ["todoist"];
|
||||||
|
enable = false;
|
||||||
|
match = [{class = "Todoist";}];
|
||||||
|
move = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
wallpaper = {postHook = "echo $WALLPAPER_PATH";};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,180 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
pkgs,
|
||||||
|
nixosConfig,
|
||||||
|
username,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.homemodules) hyprland color;
|
||||||
|
|
||||||
|
# Autostart programs
|
||||||
|
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
|
||||||
|
|
||||||
|
# Keybindings
|
||||||
|
always-bind = import ./mappings.nix {inherit lib config hyprland;};
|
||||||
|
|
||||||
|
# Mousebindings
|
||||||
|
always-bindm = {
|
||||||
|
"$mainMod, mouse:272" = ["movewindow"];
|
||||||
|
"$mainMod, mouse:273" = ["resizewindow"];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
options.homemodules.hyprland = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
config = lib.mkIf hyprland.enable {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = nixosConfig.programs.hyprland.enable;
|
||||||
|
message = "Can't enable Hyprland module with Hyprland disabled!";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
||||||
|
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = hyprland.hyprpanel.enable != hyprland.caelestia.enable;
|
||||||
|
message = "Can't enable Hyprpanel and Caelestia at the same time!";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
iconTheme.package = lib.mkDefault color.iconPackage;
|
||||||
|
iconTheme.name = color.iconTheme;
|
||||||
|
};
|
||||||
|
|
||||||
|
homemodules = {
|
||||||
|
hyprpanel.enable = hyprland.hyprpanel.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
home = {
|
||||||
|
pointerCursor = {
|
||||||
|
gtk.enable = lib.mkDefault true;
|
||||||
|
x11.enable = lib.mkDefault true;
|
||||||
|
package = lib.mkDefault color.cursorPackage;
|
||||||
|
name = color.cursor;
|
||||||
|
size = color.cursorSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
hyprpaper # Wallpaper setter
|
||||||
|
hyprpicker # Color picker
|
||||||
|
# hyprpolkitagent # Ugly polkit authentication GUI
|
||||||
|
hyprland-qt-support
|
||||||
|
hyprsunset # Blue light filter
|
||||||
|
|
||||||
|
wl-clipboard
|
||||||
|
clipman # Clipboard manager (wl-paste)
|
||||||
|
libnotify
|
||||||
|
inotify-tools # Includes inotifywait
|
||||||
|
|
||||||
|
ncpamixer # Audio control
|
||||||
|
slurp # Region selector for screensharing
|
||||||
|
grim # Grab images from compositor
|
||||||
|
|
||||||
|
# Deps for Qt5 and Qt6 apps (e.g., Nextcloud)
|
||||||
|
qt5.qtwayland
|
||||||
|
qt6.qtwayland
|
||||||
|
];
|
||||||
|
|
||||||
|
file = {
|
||||||
|
".config/hypr/keybindings.info".text = let
|
||||||
|
fixupHomeDir = key:
|
||||||
|
builtins.replaceStrings ["/home/${username}"] ["~"] key;
|
||||||
|
|
||||||
|
fixupNixStore = key: let
|
||||||
|
# The pattern has to match the entire string, otherwise it won't work
|
||||||
|
matches = builtins.match ".*/nix/store/(.*)/.*" key;
|
||||||
|
in
|
||||||
|
if (matches == null)
|
||||||
|
then key
|
||||||
|
else builtins.replaceStrings matches ["..."] key;
|
||||||
|
|
||||||
|
fixupNoMod = key:
|
||||||
|
builtins.replaceStrings ["<-"] ["<"] key;
|
||||||
|
|
||||||
|
mkBindHelpKey = key:
|
||||||
|
builtins.replaceStrings ["$mainMod" " " ","] ["${hyprland.keybindings.main-mod}" "-" ""] key;
|
||||||
|
|
||||||
|
mkBindHelpAction = action:
|
||||||
|
builtins.replaceStrings [","] [""] action;
|
||||||
|
|
||||||
|
mkBindHelp = key: action: "<${mkBindHelpKey key}>: ${mkBindHelpAction action}";
|
||||||
|
|
||||||
|
mkBindsHelp = key: actions:
|
||||||
|
actions
|
||||||
|
|> builtins.map (mkBindHelp key)
|
||||||
|
|> builtins.map fixupNoMod
|
||||||
|
|> builtins.map fixupNixStore
|
||||||
|
|> builtins.map fixupHomeDir;
|
||||||
|
in
|
||||||
|
(hyprland.keybindings.bindings // always-bind)
|
||||||
|
|> builtins.mapAttrs mkBindsHelp
|
||||||
|
|> builtins.attrValues
|
||||||
|
|> builtins.concatLists
|
||||||
|
|> builtins.concatStringsSep "\n";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
|
||||||
|
caelestia = import ./caelestia.nix {inherit config hyprland color;};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
dunst = import ./dunst.nix {inherit pkgs config hyprland color;};
|
||||||
|
hypridle = import ./hypridle.nix {inherit config hyprland color;};
|
||||||
|
hyprpaper = import ./hyprpaper.nix {inherit config hyprland color;};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Make sure the units only start when using Hyprland
|
||||||
|
systemd.user.services.dunst.Unit.After = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.dunst.Unit.PartOf = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hypridle.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
systemd.user.services.hyprpaper.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
|
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|
||||||
|
systemd.enable = true; # Enable hyprland-session.target
|
||||||
|
systemd.variables = ["--all"]; # Import PATH into systemd
|
||||||
|
xwayland.enable = true;
|
||||||
|
|
||||||
|
plugins = builtins.concatLists [
|
||||||
|
(lib.optionals
|
||||||
|
hyprland.bars.enable
|
||||||
|
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars])
|
||||||
|
(lib.optionals
|
||||||
|
hyprland.dynamicCursor.enable
|
||||||
|
[inputs.hypr-dynamic-cursors.packages.${pkgs.stdenv.hostPlatform.system}.hypr-dynamic-cursors])
|
||||||
|
(lib.optionals
|
||||||
|
hyprland.trails.enable
|
||||||
|
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails])
|
||||||
|
(lib.optionals
|
||||||
|
hyprland.hyprspace.enable
|
||||||
|
[inputs.hyprspace.packages.${pkgs.stdenv.hostPlatform.system}.Hyprspace])
|
||||||
|
];
|
||||||
|
|
||||||
|
settings = import ./settings.nix {
|
||||||
|
inherit
|
||||||
|
lib
|
||||||
|
config
|
||||||
|
hyprland
|
||||||
|
color
|
||||||
|
always-exec
|
||||||
|
always-bind
|
||||||
|
always-bindm
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
hyprland,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
enable = hyprland.dunst.enable;
|
||||||
|
|
||||||
|
iconTheme.package = color.iconPackage;
|
||||||
|
iconTheme.name = color.iconTheme;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
monitor = config.homemodules.waybar.monitor;
|
||||||
|
font = "${color.font} 11";
|
||||||
|
offset = "10x10";
|
||||||
|
background = color.hexS.base;
|
||||||
|
foreground = color.hexS.text;
|
||||||
|
frame_width = 2;
|
||||||
|
corner_radius = 6;
|
||||||
|
separator_color = "frame";
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_low = {
|
||||||
|
frame_color = color.hexS.green;
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_normal = {
|
||||||
|
frame_color = color.hexS.green;
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_critical = {
|
||||||
|
frame_color = color.hexS.red;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
hyprland,
|
hyprland,
|
||||||
color,
|
color,
|
||||||
}: {
|
}: {
|
||||||
enable = true;
|
enable = !hyprland.caelestia.enable;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
keyboard = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
option = "nodeadkeys";
|
||||||
|
};
|
||||||
|
|
||||||
|
monitors = {
|
||||||
|
"DP-1" = {
|
||||||
|
width = 3440;
|
||||||
|
height = 1440;
|
||||||
|
rate = 165;
|
||||||
|
x = 1920;
|
||||||
|
y = 0;
|
||||||
|
scale = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
"DP-2" = {
|
||||||
|
width = 1920;
|
||||||
|
height = 1080;
|
||||||
|
rate = 60;
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
scale = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
workspaces = {
|
||||||
|
"DP-1" = [1 2 3 4 5 6 7 8 9];
|
||||||
|
"DP-2" = [10];
|
||||||
|
};
|
||||||
|
|
||||||
|
autostart = {
|
||||||
|
delayed = [
|
||||||
|
"fcitx5"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
floating = [
|
||||||
|
{
|
||||||
|
class = "fcitx";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
{
|
||||||
|
nixosConfig,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
}: {
|
||||||
|
enable = nixosConfig.programs.hyprland.enable;
|
||||||
|
dunst.enable = !config.homemodules.hyprpanel.enable; # Disable for hyprpanel
|
||||||
|
bars.enable = false;
|
||||||
|
dynamicCursor.enable = false;
|
||||||
|
trails.enable = true;
|
||||||
|
hyprspace.enable = false; # Always broken
|
||||||
|
hyprpanel.enable = true;
|
||||||
|
caelestia.enable = false;
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
main-mod = "SUPER";
|
||||||
|
|
||||||
|
bindings = lib.mergeAttrsList [
|
||||||
|
# Use Rofi if we don't have caelestia
|
||||||
|
(lib.optionalAttrs (!config.homemodules.hyprland.caelestia.enable) {
|
||||||
|
"$mainMod, a" = ["exec, rofi -drun-show-actions -show drun"];
|
||||||
|
"$mainMod, c" = ["exec, clipman pick --tool=rofi"];
|
||||||
|
"$mainMod SHIFT, l" = ["exec, loginctl lock-session"];
|
||||||
|
})
|
||||||
|
|
||||||
|
# Caelestia
|
||||||
|
(lib.optionalAttrs (config.homemodules.hyprland.caelestia.enable) {
|
||||||
|
"$mainMod, a" = ["exec, caelestia shell drawers toggle launcher"];
|
||||||
|
# "$mainMod, c" = ["exec, caelestia clipboard"];
|
||||||
|
"$mainMod SHIFT, l" = ["exec, caelestia shell lock lock"];
|
||||||
|
|
||||||
|
"$mainMod, escape" = ["exec, caelestia shell drawers toggle session"];
|
||||||
|
})
|
||||||
|
|
||||||
|
{
|
||||||
|
# Applications
|
||||||
|
"$mainMod, t" = ["exec, kitty"];
|
||||||
|
"$mainMod, e" = ["exec, kitty --title=Yazi yazi"];
|
||||||
|
"$mainMod, n" = ["exec, neovide"];
|
||||||
|
# "$mainMod, r" = ["exec, kitty --title=Rmpc rmpc"];
|
||||||
|
"$mainMod CTRL, n" = ["exec, kitty --title=Navi navi"];
|
||||||
|
"$mainMod SHIFT, n" = ["exec, neovide ${config.paths.dotfiles}/navi/christoph.cheat"];
|
||||||
|
"$mainMod SHIFT, f" = ["exec, neovide ${config.paths.dotfiles}/flake.nix"];
|
||||||
|
# "ALT, tab" = ["exec, rofi -show window"];
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
"$mainMod, p" = ["exec, hyprpicker --autocopy --format=hex"];
|
||||||
|
"$mainMod, s" = ["exec, grim -g \"$(slurp)\""];
|
||||||
|
"$mainMod SHIFT, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
|
||||||
|
|
||||||
|
# Audio
|
||||||
|
", XF86AudioRaiseVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"];
|
||||||
|
", XF86AudioLowerVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"];
|
||||||
|
", XF86AudioPlay" = ["exec, playerctl play-pause"];
|
||||||
|
", XF86AudioPrev" = ["exec, playerctl previous"];
|
||||||
|
", XF86AudioNext" = ["exec, playerctl next"];
|
||||||
|
|
||||||
|
# Brightness
|
||||||
|
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
|
||||||
|
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
|
||||||
|
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 5750"];
|
||||||
|
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
|
||||||
|
|
||||||
|
"CTRL ALT, f" = let
|
||||||
|
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
|
||||||
|
grep = "${pkgs.gnugrep}/bin/grep";
|
||||||
|
awk = "${pkgs.gawk}/bin/gawk";
|
||||||
|
notify = "${pkgs.libnotify}/bin/notify-send";
|
||||||
|
|
||||||
|
toggleMouseFocus = pkgs.writeScriptBin "hypr-toggle-mouse-focus" ''
|
||||||
|
CURRENT=$(${hyprctl} getoption input:follow_mouse | ${grep} int | ${awk} -F' ' '{print $2}')
|
||||||
|
|
||||||
|
if [[ "$CURRENT" == "1" ]]; then
|
||||||
|
${hyprctl} keyword input:follow_mouse 0
|
||||||
|
${notify} "Disabled Mouse Focus!"
|
||||||
|
else
|
||||||
|
${hyprctl} keyword input:follow_mouse 1
|
||||||
|
${notify} "Enabled Mouse Focus!"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
in ["exec, ${toggleMouseFocus}/bin/hypr-toggle-mouse-focus"];
|
||||||
|
|
||||||
|
# "CTRL ALT, t" = ["exec, bash -c 'systemctl --user restart hyprpanel.service'"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
ws-bindings = {
|
||||||
|
# "<Workspace>" = "<Key>";
|
||||||
|
"1" = "1";
|
||||||
|
"2" = "2";
|
||||||
|
"3" = "3";
|
||||||
|
"4" = "4";
|
||||||
|
"5" = "5";
|
||||||
|
"6" = "6";
|
||||||
|
"7" = "7";
|
||||||
|
"8" = "8";
|
||||||
|
"9" = "9";
|
||||||
|
"10" = "0";
|
||||||
|
};
|
||||||
|
|
||||||
|
special-ws-bindings = {
|
||||||
|
"ferdium" = "x";
|
||||||
|
"msty" = "z";
|
||||||
|
"btop" = "b";
|
||||||
|
"rmpc" = "r";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
autostart = {
|
||||||
|
immediate = [
|
||||||
|
"kitty --hold fastfetch"
|
||||||
|
"zeal"
|
||||||
|
"nextcloud --background"
|
||||||
|
"protonvpn-app"
|
||||||
|
|
||||||
|
# "kdeconnect-indicator" # started by services.kdeconnect.indicator
|
||||||
|
];
|
||||||
|
|
||||||
|
delayed = [
|
||||||
|
"keepassxc" # The tray doesn't work when started too early
|
||||||
|
];
|
||||||
|
|
||||||
|
special-silent = {
|
||||||
|
"ferdium" = ["ferdium"];
|
||||||
|
"msty" = ["msty"];
|
||||||
|
"btop" = ["kitty --title=Btop btop"];
|
||||||
|
"rmpc" = ["kitty --title=Rmpc rmpc"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
windowrules = [
|
||||||
|
# Fix jetbrains tooltip flicker
|
||||||
|
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, float 1"
|
||||||
|
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, no_initial_focus 1"
|
||||||
|
];
|
||||||
|
|
||||||
|
workspacerules = {
|
||||||
|
"1" = [];
|
||||||
|
"2" = ["Zotero" "neovide" "code-url-handler"];
|
||||||
|
"3" = ["obsidian"];
|
||||||
|
"4" = ["firefox" "Google-chrome" "chromium-browser" "org.qutebrowser.qutebrowser"];
|
||||||
|
"5" = ["steam"];
|
||||||
|
"6" = ["steam_app_(.+)"];
|
||||||
|
"7" = ["signal"];
|
||||||
|
"8" = ["tidal-hifi"];
|
||||||
|
"9" = ["discord"];
|
||||||
|
"10" = ["python3"];
|
||||||
|
};
|
||||||
|
|
||||||
|
floating = [
|
||||||
|
{class = "org.kde.polkit-kde-authentication-agent-1";}
|
||||||
|
{
|
||||||
|
class = "thunar";
|
||||||
|
title = "File Operation Progress";
|
||||||
|
}
|
||||||
|
{class = "ffplay";}
|
||||||
|
{class = "Unity";}
|
||||||
|
];
|
||||||
|
|
||||||
|
transparent-opacity = "0.75";
|
||||||
|
|
||||||
|
transparent = [
|
||||||
|
"kitty"
|
||||||
|
"Alacritty"
|
||||||
|
"discord"
|
||||||
|
"signal"
|
||||||
|
"vesktop"
|
||||||
|
"Spotify"
|
||||||
|
"tidal-hifi"
|
||||||
|
"obsidian"
|
||||||
|
"firefox"
|
||||||
|
"org.qutebrowser.qutebrowser"
|
||||||
|
"jetbrains-clion"
|
||||||
|
"jetbrains-idea"
|
||||||
|
"jetbrains-pycharm"
|
||||||
|
"jetbrains-rustrover"
|
||||||
|
"jetbrains-rider"
|
||||||
|
"jetbrains-webstorm"
|
||||||
|
"code-url-handler"
|
||||||
|
"neovide"
|
||||||
|
"steam"
|
||||||
|
"ferdium"
|
||||||
|
"Msty"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
hyprland,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
enable = !hyprland.caelestia.enable;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
ipc = "on";
|
||||||
|
splash = false;
|
||||||
|
splash_offset = 2.0;
|
||||||
|
|
||||||
|
# Wallpapers have to be preloaded to be displayed
|
||||||
|
preload = let
|
||||||
|
mkPreload = name: "${config.paths.nixflake}/wallpapers/${name}.jpg";
|
||||||
|
in
|
||||||
|
color.wallpapers |> builtins.map mkPreload;
|
||||||
|
|
||||||
|
wallpaper = let
|
||||||
|
mkWallpaper = monitor:
|
||||||
|
"${monitor}, "
|
||||||
|
+ "${config.paths.nixflake}/wallpapers/${color.wallpaper}.jpg";
|
||||||
|
in
|
||||||
|
hyprland.monitors
|
||||||
|
|> builtins.attrNames
|
||||||
|
|> builtins.map mkWallpaper;
|
||||||
|
};
|
||||||
|
}
|
||||||
+5
@@ -5,8 +5,13 @@
|
|||||||
}: {
|
}: {
|
||||||
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
|
||||||
|
|
||||||
|
dunst.enable = lib.mkEnableOption "Enable Dunst notification daemon";
|
||||||
bars.enable = lib.mkEnableOption "Enable window bars";
|
bars.enable = lib.mkEnableOption "Enable window bars";
|
||||||
|
dynamicCursor.enable = lib.mkEnableOption "Enable dynamic cursors";
|
||||||
|
trails.enable = lib.mkEnableOption "Enable dynamic window trails";
|
||||||
|
hyprspace.enable = lib.mkEnableOption "Enable Hyprspace workspace overview";
|
||||||
hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel";
|
hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel";
|
||||||
|
caelestia.enable = lib.mkEnableOption "Enable Caelestia";
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
layout = lib.mkOption {
|
layout = lib.mkOption {
|
||||||
+119
-5
@@ -137,12 +137,8 @@
|
|||||||
hyprland.windowrules
|
hyprland.windowrules
|
||||||
];
|
];
|
||||||
|
|
||||||
render = {
|
|
||||||
cm_enabled = true;
|
|
||||||
cm_auto_hdr = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
|
pseudotile = true;
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -241,5 +237,123 @@
|
|||||||
on_double_click = "hyprctl dispatch fullscreen 1";
|
on_double_click = "hyprctl dispatch fullscreen 1";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(lib.optionalAttrs hyprland.dynamicCursor.enable {
|
||||||
|
dynamic-cursors = {
|
||||||
|
# enables the plugin
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
# sets the cursor behaviour, supports these values:
|
||||||
|
# tilt - tilt the cursor based on x-velocity
|
||||||
|
# rotate - rotate the cursor based on movement direction
|
||||||
|
# stretch - stretch the cursor shape based on direction and velocity
|
||||||
|
# none - do not change the cursors behaviour
|
||||||
|
mode = "rotate";
|
||||||
|
|
||||||
|
# minimum angle difference in degrees after which the shape is changed
|
||||||
|
# smaller values are smoother, but more expensive for hw cursors
|
||||||
|
threshold = 2;
|
||||||
|
|
||||||
|
# for mode = rotate
|
||||||
|
rotate = {
|
||||||
|
# length in px of the simulated stick used to rotate the cursor
|
||||||
|
# most realistic if this is your actual cursor size
|
||||||
|
length = 20;
|
||||||
|
|
||||||
|
# clockwise offset applied to the angle in degrees
|
||||||
|
# this will apply to ALL shapes
|
||||||
|
offset = 0.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
# for mode = tilt
|
||||||
|
tilt = {
|
||||||
|
# controls how powerful the tilt is, the lower, the more power
|
||||||
|
# this value controls at which speed (px/s) the full tilt is reached
|
||||||
|
# the full tilt being 60° in both directions
|
||||||
|
limit = 1000;
|
||||||
|
|
||||||
|
# relationship between speed and tilt, supports these values:
|
||||||
|
# linear - a linear function is used
|
||||||
|
# quadratic - a quadratic function is used (most realistic to actual air drag)
|
||||||
|
# negative_quadratic - negative version of the quadratic one, feels more aggressive
|
||||||
|
# see `activation` in `src/mode/utils.cpp` for how exactly the calculation is done
|
||||||
|
function = "negative_quadratic";
|
||||||
|
|
||||||
|
# time window (ms) over which the speed is calculated
|
||||||
|
# higher values will make slow motions smoother but more delayed
|
||||||
|
window = 100;
|
||||||
|
};
|
||||||
|
|
||||||
|
# configure shake to find
|
||||||
|
# magnifies the cursor if its is being shaken
|
||||||
|
shake = {
|
||||||
|
# enables shake to find
|
||||||
|
enabled = false;
|
||||||
|
|
||||||
|
# use nearest-neighbour (pixelated) scaling when shaking
|
||||||
|
# may look weird when effects are enabled
|
||||||
|
nearest = true;
|
||||||
|
|
||||||
|
# controls how soon a shake is detected
|
||||||
|
# lower values mean sooner
|
||||||
|
threshold = 3.0;
|
||||||
|
|
||||||
|
# magnification level immediately after shake start
|
||||||
|
base = 1.5;
|
||||||
|
# magnification increase per second when continuing to shake
|
||||||
|
speed = 0.0;
|
||||||
|
# how much the speed is influenced by the current shake intensitiy
|
||||||
|
influence = 0.0;
|
||||||
|
|
||||||
|
# maximal magnification the cursor can reach
|
||||||
|
# values below 1 disable the limit (e.g. 0)
|
||||||
|
limit = 0.0;
|
||||||
|
|
||||||
|
# time in millseconds the cursor will stay magnified after a shake has ended
|
||||||
|
timeout = 1000;
|
||||||
|
|
||||||
|
# show cursor behaviour `tilt`, `rotate`, etc. while shaking
|
||||||
|
effects = true;
|
||||||
|
|
||||||
|
# enable ipc events for shake
|
||||||
|
# see the `ipc` section below
|
||||||
|
ipc = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# use hyprcursor to get a higher resolution texture when the cursor is magnified
|
||||||
|
# see the `hyprcursor` section below
|
||||||
|
hyprcursor = {
|
||||||
|
# use nearest-neighbour (pixelated) scaling when magnifing beyond texture size
|
||||||
|
# this will also have effect without hyprcursor support being enabled
|
||||||
|
# 0 / false - never use pixelated scaling
|
||||||
|
# 1 / true - use pixelated when no highres image
|
||||||
|
# 2 - always use pixleated scaling
|
||||||
|
nearest = true;
|
||||||
|
|
||||||
|
# enable dedicated hyprcursor support
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
# resolution in pixels to load the magnified shapes at
|
||||||
|
# be warned that loading a very high-resolution image will take a long time and might impact memory consumption
|
||||||
|
# -1 means we use [normal cursor size] * [shake:base option]
|
||||||
|
resolution = -1;
|
||||||
|
|
||||||
|
# shape to use when clientside cursors are being magnified
|
||||||
|
# see the shape-name property of shape rules for possible names
|
||||||
|
# specifying clientside will use the actual shape, but will be pixelated
|
||||||
|
fallback = "clientside";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.optionalAttrs hyprland.trails.enable {
|
||||||
|
hyprtrails = {
|
||||||
|
color = "rgb(${color.hex.accent})";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.optionalAttrs hyprland.hyprspace.enable {
|
||||||
|
overview = {};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
./firefox
|
./firefox
|
||||||
./fish
|
./fish
|
||||||
./git
|
./git
|
||||||
./helix
|
|
||||||
./hyprland
|
|
||||||
./hyprpanel
|
|
||||||
./jellyfin-tui
|
./jellyfin-tui
|
||||||
./kitty
|
./kitty
|
||||||
./lazygit
|
./lazygit
|
||||||
@@ -34,17 +31,14 @@
|
|||||||
./ssh
|
./ssh
|
||||||
./terminal
|
./terminal
|
||||||
./tmux
|
./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.stylix.homeModules.stylix
|
|
||||||
# inputs.direnv-instant.homeModules.direnv-instant
|
# 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
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ in [
|
|||||||
# Coding
|
# Coding
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "Code";
|
name = "Coding";
|
||||||
bookmarks = [
|
bookmarks = [
|
||||||
(mkBm "C++Ref" "https://en.cppreference.com/w/")
|
(mkBm "C++Ref" "https://en.cppreference.com/w/")
|
||||||
(mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html")
|
(mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html")
|
||||||
@@ -72,21 +72,21 @@ in [
|
|||||||
(mkBm "Godbolt" "https://godbolt.org")
|
(mkBm "Godbolt" "https://godbolt.org")
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
# {
|
{
|
||||||
# name = "AI";
|
name = "\"AI\"";
|
||||||
# bookmarks = [
|
bookmarks = [
|
||||||
# (mkBm "Mistral Chat" "https://chat.mistral.ai/chat")
|
(mkBm "Mistral Chat" "https://chat.mistral.ai/chat")
|
||||||
# (mkBm "DeepSeek Chat" "https://chat.deepseek.com/")
|
(mkBm "DeepSeek Chat" "https://chat.deepseek.com/")
|
||||||
# (mkBm "Claude Chat" "https://claude.ai/new")
|
(mkBm "Claude Chat" "https://claude.ai/new")
|
||||||
# (mkBm "ChatGPT" "https://chatgpt.com/")
|
(mkBm "ChatGPT" "https://chatgpt.com/")
|
||||||
# (mkBm "DeepWiki" "https://deepwiki.com/")
|
(mkBm "DeepWiki" "https://deepwiki.com/")
|
||||||
# "separator"
|
"separator"
|
||||||
# (mkBm "Mistral API" "https://console.mistral.ai/usage")
|
(mkBm "Mistral API" "https://console.mistral.ai/usage")
|
||||||
# (mkBm "DeepSeek API" "https://platform.deepseek.com/usage")
|
(mkBm "DeepSeek API" "https://platform.deepseek.com/usage")
|
||||||
# (mkBm "Claude API" "https://console.anthropic.com/usage")
|
(mkBm "Claude API" "https://console.anthropic.com/usage")
|
||||||
# (mkBm "OpenRouter API" "https://openrouter.ai/activity")
|
(mkBm "OpenRouter API" "https://openrouter.ai/activity")
|
||||||
# ];
|
];
|
||||||
# }
|
}
|
||||||
(mkBm "GH" "https://github.com/churl")
|
(mkBm "GH" "https://github.com/churl")
|
||||||
(mkBm "GL" "https://gitlab.com/churl")
|
(mkBm "GL" "https://gitlab.com/churl")
|
||||||
(mkBm "SO" "https://stackoverflow.com/users/saves/17337508/all")
|
(mkBm "SO" "https://stackoverflow.com/users/saves/17337508/all")
|
||||||
|
|||||||
@@ -221,10 +221,6 @@ in {
|
|||||||
ns = "nix shell nixpkgs#";
|
ns = "nix shell nixpkgs#";
|
||||||
nr = "nix run";
|
nr = "nix run";
|
||||||
nps = "nps -e";
|
nps = "nps -e";
|
||||||
|
|
||||||
# Systemctl
|
|
||||||
st = "sudo systemctl-tui";
|
|
||||||
sf = "systemctl --failed";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Abbrs only available if package is installed
|
# Abbrs only available if package is installed
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
pkgs,
|
|
||||||
nixosConfig,
|
|
||||||
username,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (config.homemodules) hyprland color;
|
|
||||||
|
|
||||||
# Autostart programs
|
|
||||||
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
|
|
||||||
|
|
||||||
# Keybindings
|
|
||||||
always-bind = import ./mappings.nix {inherit lib config hyprland;};
|
|
||||||
|
|
||||||
# Mousebindings
|
|
||||||
always-bindm = {
|
|
||||||
"$mainMod, mouse:272" = ["movewindow"];
|
|
||||||
"$mainMod, mouse:273" = ["resizewindow"];
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
options.homemodules.hyprland = import ./options.nix {inherit lib mylib;};
|
|
||||||
|
|
||||||
config = lib.mkIf hyprland.enable {
|
|
||||||
assertions = [
|
|
||||||
{
|
|
||||||
assertion = nixosConfig.programs.hyprland.enable;
|
|
||||||
message = "Can't enable Hyprland module with Hyprland disabled!";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
|
||||||
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme.package = lib.mkDefault color.iconPackage;
|
|
||||||
iconTheme.name = color.iconTheme;
|
|
||||||
};
|
|
||||||
|
|
||||||
homemodules = {
|
|
||||||
hyprpanel.enable = hyprland.hyprpanel.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
|
||||||
pointerCursor = {
|
|
||||||
gtk.enable = lib.mkDefault true;
|
|
||||||
x11.enable = lib.mkDefault true;
|
|
||||||
package = lib.mkDefault color.cursorPackage;
|
|
||||||
name = color.cursor;
|
|
||||||
size = color.cursorSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
hyprpicker # Color picker
|
|
||||||
# hyprpolkitagent # Ugly polkit authentication GUI
|
|
||||||
hyprland-qt-support
|
|
||||||
hyprsunset # Blue light filter
|
|
||||||
|
|
||||||
wl-clipboard
|
|
||||||
# clipman # Clipboard manager (wl-paste)
|
|
||||||
libnotify
|
|
||||||
inotify-tools # Includes inotifywait
|
|
||||||
|
|
||||||
# ncpamixer # Audio control
|
|
||||||
slurp # Region selector for screensharing
|
|
||||||
grim # Grab images from compositor
|
|
||||||
|
|
||||||
# Deps for Qt5 and Qt6 apps (e.g., Nextcloud)
|
|
||||||
qt5.qtwayland
|
|
||||||
qt6.qtwayland
|
|
||||||
|
|
||||||
# xwayland
|
|
||||||
# wayland-protocols
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
hypridle = import ./hypridle.nix {inherit config hyprland color;};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Make sure the units only start when using Hyprland
|
|
||||||
systemd.user.services.hypridle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];
|
|
||||||
systemd.user.services.hypridle.Unit.After = lib.mkForce ["hyprland-session.target"];
|
|
||||||
systemd.user.services.hypridle.Unit.PartOf = lib.mkForce ["hyprland-session.target"];
|
|
||||||
systemd.user.services.elephant.Install.WantedBy = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
|
|
||||||
systemd.user.services.elephant.Unit.After = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
|
|
||||||
systemd.user.services.elephant.Unit.PartOf = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
||||||
configType = "hyprlang";
|
|
||||||
|
|
||||||
systemd.enable = true; # Enable hyprland-session.target
|
|
||||||
systemd.variables = ["--all"]; # Import PATH into systemd
|
|
||||||
xwayland.enable = true;
|
|
||||||
|
|
||||||
settings = import ./settings.nix {
|
|
||||||
inherit
|
|
||||||
lib
|
|
||||||
config
|
|
||||||
hyprland
|
|
||||||
color
|
|
||||||
always-exec
|
|
||||||
always-bind
|
|
||||||
always-bindm
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -26,12 +26,6 @@ in {
|
|||||||
"kitty_mod+j" = "next_window";
|
"kitty_mod+j" = "next_window";
|
||||||
"kitty_mod+k" = "previous_window";
|
"kitty_mod+k" = "previous_window";
|
||||||
"kitty_mod+l" = "next_layout";
|
"kitty_mod+l" = "next_layout";
|
||||||
"kitty_mod+p" = "command_palette";
|
|
||||||
|
|
||||||
"kitty_mod+c" = "copy_to_clipboard";
|
|
||||||
"ctrl+c" = "copy_or_interrupt";
|
|
||||||
"kitty_mod+v" = "paste_from_clipboard";
|
|
||||||
"ctrl+v" = "paste_from_clipboard";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = lib.mkMerge [
|
settings = lib.mkMerge [
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ in {
|
|||||||
just-lsp
|
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
|
# perl5Packages.PLS
|
||||||
perlnavigator
|
perlnavigator
|
||||||
pyrefly
|
pyrefly
|
||||||
@@ -83,9 +83,6 @@ in {
|
|||||||
stylua
|
stylua
|
||||||
tombi
|
tombi
|
||||||
typstyle
|
typstyle
|
||||||
|
|
||||||
nodejs_latest
|
|
||||||
uv
|
|
||||||
])
|
])
|
||||||
|
|
||||||
[
|
[
|
||||||
@@ -100,7 +97,6 @@ in {
|
|||||||
(perl.withPackages (p:
|
(perl.withPackages (p:
|
||||||
with p; [
|
with p; [
|
||||||
PLS
|
PLS
|
||||||
PerlCritic
|
|
||||||
PerlTidy
|
PerlTidy
|
||||||
NetOpenSSH
|
NetOpenSSH
|
||||||
DateTime
|
DateTime
|
||||||
@@ -123,7 +119,6 @@ in {
|
|||||||
numpy
|
numpy
|
||||||
matplotlib
|
matplotlib
|
||||||
requests
|
requests
|
||||||
pygments
|
|
||||||
]))
|
]))
|
||||||
|
|
||||||
(rWrapper.override {
|
(rWrapper.override {
|
||||||
@@ -136,9 +131,6 @@ in {
|
|||||||
readr
|
readr
|
||||||
tibble
|
tibble
|
||||||
svglite
|
svglite
|
||||||
dplyr
|
|
||||||
tidyr
|
|
||||||
scales
|
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -149,8 +141,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
|
||||||
@@ -158,15 +148,6 @@ in {
|
|||||||
viAlias = neovim.alias;
|
viAlias = neovim.alias;
|
||||||
vimAlias = neovim.alias;
|
vimAlias = neovim.alias;
|
||||||
|
|
||||||
# extraPackages = let
|
|
||||||
# yazi-termfix = pkgs.writeShellScriptBin "yazi" ''
|
|
||||||
# export TERM=xterm-kitty
|
|
||||||
# exec ${pkgs.yazi}/bin/yazi "@$"
|
|
||||||
# '';
|
|
||||||
# in [
|
|
||||||
# yazi-termfix
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# Configured using plugin
|
# Configured using plugin
|
||||||
# colorschemes.catppuccin = {
|
# colorschemes.catppuccin = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
@@ -182,7 +163,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;
|
||||||
};
|
};
|
||||||
@@ -225,16 +206,6 @@ in {
|
|||||||
# fg = "#${color.hex.dark.text}";
|
# fg = "#${color.hex.dark.text}";
|
||||||
# bold = false;
|
# bold = false;
|
||||||
# };
|
# };
|
||||||
# NeoTreeNormal = {bg = "#${color.hex.base}";};
|
|
||||||
# NeoTreeNormalNC = {bg = "#${color.hex.base}";};
|
|
||||||
# NeoTreeWinSeparator = {
|
|
||||||
# fg = "#${color.hex.crust}";
|
|
||||||
# bg = "#${color.hex.base}";
|
|
||||||
# };
|
|
||||||
# NeoTreeVertSplit = {
|
|
||||||
# fg = "#${color.hex.crust}";
|
|
||||||
# bg = "#${color.hex.base}";
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# extraLuaPackages = with pkgs.lua51Packages; [];
|
# extraLuaPackages = with pkgs.lua51Packages; [];
|
||||||
@@ -252,7 +223,7 @@ in {
|
|||||||
# local renderer = require("neo-tree.ui.renderer")
|
# local renderer = require("neo-tree.ui.renderer")
|
||||||
# local state = manager.get_state("filesystem")
|
# local state = manager.get_state("filesystem")
|
||||||
# local window_exists = renderer.window_exists(state)
|
# local window_exists = renderer.window_exists(state)
|
||||||
#
|
|
||||||
# if window_exists then
|
# if window_exists then
|
||||||
# require("neo-tree.sources.filesystem.commands").refresh(state)
|
# require("neo-tree.sources.filesystem.commands").refresh(state)
|
||||||
# end
|
# end
|
||||||
@@ -328,15 +299,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;
|
||||||
|
|
||||||
@@ -386,7 +348,6 @@ in {
|
|||||||
light = "latte";
|
light = "latte";
|
||||||
dark = "mocha";
|
dark = "mocha";
|
||||||
};
|
};
|
||||||
term_colors = true;
|
|
||||||
# https://github.com/catppuccin/nvim/tree/main?tab=readme-ov-file#integrations
|
# https://github.com/catppuccin/nvim/tree/main?tab=readme-ov-file#integrations
|
||||||
default_integrations = true;
|
default_integrations = true;
|
||||||
integrations = {
|
integrations = {
|
||||||
@@ -423,7 +384,6 @@ in {
|
|||||||
# custom_bg = "crust";
|
# custom_bg = "crust";
|
||||||
};
|
};
|
||||||
notify = true;
|
notify = true;
|
||||||
terminal = true;
|
|
||||||
treesitter = true;
|
treesitter = true;
|
||||||
ufo = true;
|
ufo = true;
|
||||||
rainbow_delimiters = true;
|
rainbow_delimiters = true;
|
||||||
@@ -435,15 +395,6 @@ in {
|
|||||||
};
|
};
|
||||||
which_key = true;
|
which_key = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
highlight_overrides.mocha.__raw = ''
|
|
||||||
function(colors)
|
|
||||||
return {
|
|
||||||
NeoTreeWinSeparator = { fg = colors.crust, bg = colors.base, },
|
|
||||||
NeoTreeVertSplit = { fg = colors.crust, bg = colors.base, },
|
|
||||||
}
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -465,7 +416,6 @@ in {
|
|||||||
# pkg = inputs.blink-cmp.packages.${system}.default;
|
# pkg = inputs.blink-cmp.packages.${system}.default;
|
||||||
pkg = pkgs.vimPlugins.blink-cmp;
|
pkg = pkgs.vimPlugins.blink-cmp;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
dependencies = [luasnip];
|
|
||||||
event = ["InsertEnter"];
|
event = ["InsertEnter"];
|
||||||
config = mkDefaultConfig name;
|
config = mkDefaultConfig name;
|
||||||
|
|
||||||
@@ -513,17 +463,13 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
snippets = {
|
|
||||||
preset = "luasnip";
|
|
||||||
};
|
|
||||||
|
|
||||||
fuzzy = {
|
fuzzy = {
|
||||||
frecency.enabled = true;
|
frecency.enabled = true;
|
||||||
use_proximity = true;
|
use_proximity = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
default = ["lsp" "path" "snippets" "omni"]; # No "buffer"
|
default = ["lsp" "path" "snippets"]; # No "buffer"
|
||||||
};
|
};
|
||||||
|
|
||||||
cmdline = {
|
cmdline = {
|
||||||
@@ -1007,15 +953,15 @@ in {
|
|||||||
{name = "html";} # vscode-langservers-extracted
|
{name = "html";} # vscode-langservers-extracted
|
||||||
{name = "just";}
|
{name = "just";}
|
||||||
{name = "lua_ls";}
|
{name = "lua_ls";}
|
||||||
# {
|
{
|
||||||
# name = "ltex";
|
name = "ltex";
|
||||||
# extraOptions.settings = {
|
extraOptions.settings = {
|
||||||
# ltex = {
|
ltex = {
|
||||||
# checkFrequency = "save";
|
checkFrequency = "save";
|
||||||
# enabled = ["markdown" "org" "tex" "latex" "plaintext"];
|
enabled = ["markdown" "org" "tex" "latex" "plaintext"];
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# }
|
}
|
||||||
# {name = "nil_ls";}
|
# {name = "nil_ls";}
|
||||||
{
|
{
|
||||||
name = "nixd";
|
name = "nixd";
|
||||||
@@ -1157,7 +1103,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")
|
||||||
@@ -1257,7 +1202,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 = {}, } }'';
|
||||||
};
|
};
|
||||||
@@ -1423,19 +1367,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;
|
||||||
@@ -1497,32 +1441,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;
|
||||||
@@ -1747,7 +1665,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;
|
||||||
@@ -1783,20 +1701,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;
|
||||||
@@ -1827,7 +1731,6 @@ in {
|
|||||||
function(line)
|
function(line)
|
||||||
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
|
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
|
||||||
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
|
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
|
||||||
local mantle = { fg = "#${color.hex.mantle}", bg = "#${color.hex.mantle}" }
|
|
||||||
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
|
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
|
||||||
local accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" }
|
local accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" }
|
||||||
|
|
||||||
@@ -1853,14 +1756,14 @@ in {
|
|||||||
line.sep(sep_start, accent, crust),
|
line.sep(sep_start, accent, crust),
|
||||||
tab.number(),
|
tab.number(),
|
||||||
tab.name(),
|
tab.name(),
|
||||||
line.sep(sep_end, crust, mantle),
|
line.sep(sep_end, crust, base),
|
||||||
hl = hl,
|
hl = hl,
|
||||||
margin = " ",
|
margin = " ",
|
||||||
}
|
}
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- Background
|
-- Background
|
||||||
hl = mantle,
|
hl = bg,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
@@ -1868,7 +1771,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_plenary = {
|
_plenary = {
|
||||||
name = "plenary.nvim";
|
name = "plenary";
|
||||||
pkg = pkgs.vimPlugins.plenary-nvim;
|
pkg = pkgs.vimPlugins.plenary-nvim;
|
||||||
lazy = true;
|
lazy = true;
|
||||||
};
|
};
|
||||||
@@ -1969,12 +1872,11 @@ in {
|
|||||||
shell = "fish";
|
shell = "fish";
|
||||||
direction = "horizontal"; # 'vertical' | 'horizontal' | 'window' | 'float'
|
direction = "horizontal"; # 'vertical' | 'horizontal' | 'window' | 'float'
|
||||||
auto_scroll = true;
|
auto_scroll = true;
|
||||||
# clear_env = false;
|
|
||||||
|
|
||||||
float_opts = {
|
float_opts = {
|
||||||
border = "curved"; # 'single' | 'double' | 'shadow' | 'curved'
|
border = "curved"; # 'single' | 'double' | 'shadow' | 'curved'
|
||||||
width.__raw = "function() return math.floor(vim.o.columns * 0.95) end";
|
width = 80;
|
||||||
height.__raw = "function() return math.floor(vim.o.lines * 0.85) end";
|
height = 80;
|
||||||
winblend = 0;
|
winblend = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -2147,40 +2049,18 @@ in {
|
|||||||
pkg = pkgs.vimPlugins.vimtex;
|
pkg = pkgs.vimPlugins.vimtex;
|
||||||
init = ''
|
init = ''
|
||||||
function()
|
function()
|
||||||
vim.g.vimtex_mappings_enabled = true
|
vim.g.vimtex_mappings_enabled = false
|
||||||
vim.g.vimtex_view_method = "zathura"
|
vim.g.vimtex_view_method = "zathura"
|
||||||
vim.g.vimtex_syntax_conceal_disable = false
|
|
||||||
vim.g.vimtex_syntax_conceal = {
|
|
||||||
accents = 1,
|
|
||||||
ligatures = 1,
|
|
||||||
cites = 1,
|
|
||||||
fancy = 1,
|
|
||||||
texTabularChar = 1,
|
|
||||||
spacing = 1,
|
|
||||||
greek = 1,
|
|
||||||
math_bounds = 1,
|
|
||||||
math_delimiters = 1,
|
|
||||||
math_fracs = 1,
|
|
||||||
math_super_sub = 1,
|
|
||||||
math_symbols = 1,
|
|
||||||
sections = 1,
|
|
||||||
styles = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.g.vimtex_compiler_method = "latexmk"
|
|
||||||
vim.g.vimtex_compiler_clean_paths = {"_minted*", "svg-inkscape*"}
|
|
||||||
vim.g.vimtex_compiler_latexmk = {
|
vim.g.vimtex_compiler_latexmk = {
|
||||||
options = {
|
options = {
|
||||||
"-verbose",
|
"-shell-escape",
|
||||||
"-file-line-error",
|
"-file-line-error",
|
||||||
"-synctex=1",
|
"-synctex=1",
|
||||||
"-interaction=nonstopmode",
|
"-interaction=nonstopmode",
|
||||||
"-shell-escape",
|
|
||||||
},
|
},
|
||||||
aux_dir = ".aux",
|
aux_dir = ".aux",
|
||||||
out_dir = ".out",
|
out_dir = ".out",
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -2310,12 +2190,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;
|
||||||
@@ -2377,7 +2257,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
|
||||||
|
|||||||
@@ -60,13 +60,8 @@ end, {
|
|||||||
|
|
||||||
-- Toggle Rmpc
|
-- Toggle Rmpc
|
||||||
local Terminal = require("toggleterm.terminal").Terminal
|
local Terminal = require("toggleterm.terminal").Terminal
|
||||||
local rmpc = Terminal:new({
|
local rmpc =
|
||||||
cmd = "rmpc",
|
Terminal:new({ cmd = "rmpc", hidden = true, close_on_exit = true, auto_scroll = false, direction = "float" })
|
||||||
hidden = true,
|
|
||||||
close_on_exit = true,
|
|
||||||
auto_scroll = false,
|
|
||||||
direction = "float",
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.g.toggle_rmpc = function()
|
vim.g.toggle_rmpc = function()
|
||||||
rmpc:toggle()
|
rmpc:toggle()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ if g.neovide then
|
|||||||
|
|
||||||
-- Neovide Fonts
|
-- Neovide Fonts
|
||||||
-- o.guifont = "JetBrainsMono Nerd Font Mono:h12:Medium"
|
-- o.guifont = "JetBrainsMono Nerd Font Mono:h12:Medium"
|
||||||
o.guifont = "MonoLisa Alt Script:h12:Medium"
|
o.guifont = "MonoLisa Alt:h12:Medium"
|
||||||
else
|
else
|
||||||
-- require("notify").notify("Not running in NeoVide")
|
-- require("notify").notify("Not running in NeoVide")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -340,12 +340,13 @@ _: 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>.";
|
# mode = "n";
|
||||||
action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
|
# key = "<leader>.";
|
||||||
options.desc = "Show FailNix";
|
# 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";
|
||||||
@@ -414,58 +415,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";
|
||||||
@@ -937,12 +886,6 @@ _: let
|
|||||||
action = "<cmd>Trouble diagnostics toggle focus=false win.position=bottom<cr>";
|
action = "<cmd>Trouble diagnostics toggle focus=false win.position=bottom<cr>";
|
||||||
options.desc = "Trouble Diagnostics";
|
options.desc = "Trouble Diagnostics";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>tT";
|
|
||||||
action = "<cmd>ToggleTerm direction=float<cr>";
|
|
||||||
options.desc = "Floating Terminal";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>tD";
|
key = "<leader>tD";
|
||||||
@@ -1062,7 +1005,6 @@ in
|
|||||||
no-leader
|
no-leader
|
||||||
|
|
||||||
leader
|
leader
|
||||||
leader-opencode
|
|
||||||
leader-file
|
leader-file
|
||||||
leader-help
|
leader-help
|
||||||
leader-quit
|
leader-quit
|
||||||
|
|||||||
@@ -1,18 +1,3 @@
|
|||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
local isn = ls.indent_snippet_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local r = ls.restore_node
|
|
||||||
local extras = require("luasnip.extras")
|
|
||||||
local rep = extras.rep
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local fmta = require("luasnip.extras.fmt").fmta
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- The first list contains manually expanded snippts
|
-- The first list contains manually expanded snippts
|
||||||
--
|
--
|
||||||
@@ -33,7 +18,7 @@ return {
|
|||||||
|
|
||||||
-- \begin{environment}
|
-- \begin{environment}
|
||||||
s(
|
s(
|
||||||
{ trig = "beg", name = "begin/end", descr = "begin/end environment (generic)" },
|
"beg",
|
||||||
fmta(
|
fmta(
|
||||||
[[
|
[[
|
||||||
\begin{<>}
|
\begin{<>}
|
||||||
@@ -43,28 +28,6 @@ return {
|
|||||||
{ i(1), i(0), rep(1) }
|
{ i(1), i(0), rep(1) }
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
s(
|
|
||||||
{ trig = "item", name = "itemize", dscr = "bullet points (itemize)" },
|
|
||||||
fmta(
|
|
||||||
[[
|
|
||||||
\begin{itemize}
|
|
||||||
\item <>
|
|
||||||
\end{itemize}
|
|
||||||
]],
|
|
||||||
{ i(0) }
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
{ trig = "enum", name = "enumerate", dscr = "bullet points (enumerate)" },
|
|
||||||
fmta(
|
|
||||||
[[
|
|
||||||
\begin{enumerate}
|
|
||||||
\item <>
|
|
||||||
\end{enumerate}
|
|
||||||
]],
|
|
||||||
{ i(0) }
|
|
||||||
)
|
|
||||||
),
|
|
||||||
}, {
|
}, {
|
||||||
-- The second list contains autosnippets
|
-- The second list contains autosnippets
|
||||||
}
|
}
|
||||||
|
|||||||
+115
-464
@@ -53,16 +53,8 @@ in {
|
|||||||
in
|
in
|
||||||
gtkConfig
|
gtkConfig
|
||||||
// {
|
// {
|
||||||
gtk3 =
|
gtk3 = gtkConfig // {extraConfig = gtkExtraConfig;};
|
||||||
gtkConfig
|
gtk4 = gtkConfig // {extraConfig = gtkExtraConfig;};
|
||||||
// {
|
|
||||||
extraConfig = gtkExtraConfig;
|
|
||||||
};
|
|
||||||
gtk4 =
|
|
||||||
gtkConfig
|
|
||||||
// {
|
|
||||||
extraConfig = gtkExtraConfig;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
dconf = {
|
dconf = {
|
||||||
@@ -74,90 +66,8 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
qt = let
|
|
||||||
qtConfig = qtct: {
|
|
||||||
Appearance = {
|
|
||||||
icon_theme = color.iconTheme;
|
|
||||||
standard_dialogs = "xdgdesktopportal";
|
|
||||||
style = "kvantum";
|
|
||||||
custom_palette = true;
|
|
||||||
color_scheme_path = "${config.home.homeDirectory}/.config/${qtct}/colors/catppuccin-mocha-mauve.conf";
|
|
||||||
# color_scheme_path = "${pkgs.catppuccin-qt5ct}/share/${qtct}/colors/catppuccin-mocha-mauve.conf";
|
|
||||||
};
|
|
||||||
Fonts = {
|
|
||||||
fixed = color.font;
|
|
||||||
general = nixosConfig.fonts.fontconfig.defaultFonts.sansSerif;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
enable = true;
|
|
||||||
platformTheme.name = "qtct";
|
|
||||||
# style.name = "kvantum";
|
|
||||||
|
|
||||||
kvantum = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
themes = with pkgs; [
|
|
||||||
(catppuccin-kvantum.override {
|
|
||||||
variant = "mocha";
|
|
||||||
accent = "mauve";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
General.theme = "catppuccin-mocha-mauve";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
qt5ctSettings = qtConfig "qt5ct";
|
|
||||||
qt6ctSettings = qtConfig "qt6ct";
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile = {
|
|
||||||
"qt5ct/colors/catppuccin-mocha-mauve.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt5ct/colors/catppuccin-mocha-mauve.conf";
|
|
||||||
"qt6ct/colors/catppuccin-mocha-mauve.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt6ct/colors/catppuccin-mocha-mauve.conf";
|
|
||||||
"dolphinrc".source = (pkgs.formats.ini {}).generate "dolphinrc" {
|
|
||||||
General = {
|
|
||||||
BrowseThroughArchives = true;
|
|
||||||
ConfirmClosingMultipleTabs = false;
|
|
||||||
OpenExternallyCalledFolderInNewTab = false;
|
|
||||||
RememberOpenedTabs = false;
|
|
||||||
ShowSelectionToggle = false;
|
|
||||||
ShowToolTips = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
CompactMode.PreviewSize = 32;
|
|
||||||
ContextMenu.ShowViewMode = false;
|
|
||||||
DetailsMode.PreviewSize = 32;
|
|
||||||
Icons.Theme = color.iconTheme;
|
|
||||||
"KFileDialog Settings"."Places Icons Static Size" = 32;
|
|
||||||
MainWindow.MenuBar = "Disabled";
|
|
||||||
PlacesPanel.IconSize = 32;
|
|
||||||
UiSettings.ColorScheme = "*";
|
|
||||||
};
|
|
||||||
"kdeglobals".source = (pkgs.formats.ini {}).generate "kdeglobals" {
|
|
||||||
KDE.ShowDeleteCommand = true;
|
|
||||||
PreviewSettings.EnableRemoteFolderThumbnail = true;
|
|
||||||
};
|
|
||||||
"kservicemenurc".source = (pkgs.formats.ini {}).generate "kservicemenurc" {
|
|
||||||
Show = {
|
|
||||||
forgetfileitemaction = true;
|
|
||||||
hidefileitemaction = false;
|
|
||||||
kactivitymanagerd_fileitem_linking_plugin = false;
|
|
||||||
makefileactions = true;
|
|
||||||
mountisoaction = true;
|
|
||||||
movetonewfolderaitemaction = false;
|
|
||||||
nextclouddolphinactionplugin = true;
|
|
||||||
setfoldericonitemaction = false;
|
|
||||||
tagsfileitemaction = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Disable Niri's kde auth agent and start gnome auth agent instead
|
# Disable Niri's kde auth agent and start gnome auth agent instead
|
||||||
systemd.user.services.niri-flake-polkit = lib.mkForce {};
|
systemd.user.services.niri-flake-polkit = lib.mkForce {};
|
||||||
|
|
||||||
# TODO: Module
|
|
||||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "polkit-gnome-authentication-agent-1";
|
Description = "polkit-gnome-authentication-agent-1";
|
||||||
@@ -181,7 +91,6 @@ in {
|
|||||||
# Link theme for flatpak
|
# Link theme for flatpak
|
||||||
".themes/${config.gtk.theme.name}".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
|
".themes/${config.gtk.theme.name}".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
|
||||||
|
|
||||||
# TODO: Module
|
|
||||||
".config/waypaper/config.ini".text = lib.generators.toINI {} {
|
".config/waypaper/config.ini".text = lib.generators.toINI {} {
|
||||||
Settings = {
|
Settings = {
|
||||||
use_xdg_state = true;
|
use_xdg_state = true;
|
||||||
@@ -218,9 +127,8 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
# QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
|
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
|
||||||
# GDK_BACKEND = "wayland,x11"; # For screen sharing
|
GDK_BACKEND = "wayland"; # For screen sharing
|
||||||
GDK_BACKEND = "wayland";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
@@ -239,25 +147,14 @@ in {
|
|||||||
waypaper
|
waypaper
|
||||||
wtype # For elephant
|
wtype # For elephant
|
||||||
|
|
||||||
# GTK
|
# 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
|
||||||
|
|
||||||
|
# Catppuccin-GTK theme
|
||||||
sassc
|
sassc
|
||||||
gtk-engine-murrine
|
gtk-engine-murrine
|
||||||
gnome-themes-extra
|
gnome-themes-extra
|
||||||
|
|
||||||
# Qt
|
|
||||||
libsForQt5.qtstyleplugin-kvantum
|
|
||||||
kdePackages.qtstyleplugin-kvantum
|
|
||||||
libsForQt5.qt5ct
|
|
||||||
kdePackages.qt6ct
|
|
||||||
kdePackages.ark
|
|
||||||
kdePackages.dolphin
|
|
||||||
kdePackages.dolphin-plugins
|
|
||||||
kdePackages.qtsvg
|
|
||||||
kdePackages.kio
|
|
||||||
kdePackages.kio-fuse
|
|
||||||
kdePackages.kio-extras
|
|
||||||
|
|
||||||
# In case we fallback to the default niri config/keybindings
|
# In case we fallback to the default niri config/keybindings
|
||||||
alacritty
|
alacritty
|
||||||
fuzzel
|
fuzzel
|
||||||
@@ -265,7 +162,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# TODO: Module
|
|
||||||
dunst = {
|
dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@@ -301,7 +197,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# TODO: Module
|
|
||||||
walker = {
|
walker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
runAsService = true;
|
runAsService = true;
|
||||||
@@ -529,7 +424,7 @@ in {
|
|||||||
input = {
|
input = {
|
||||||
focus-follows-mouse = {
|
focus-follows-mouse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
max-scroll-amount = "10%"; # Skip partial windows that would scroll the viewport on focus
|
max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus
|
||||||
};
|
};
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
@@ -558,27 +453,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"];}
|
||||||
@@ -589,36 +467,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 = {
|
||||||
@@ -659,12 +517,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
|
||||||
@@ -675,9 +529,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;
|
||||||
@@ -700,9 +552,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
gestures = {
|
gestures = {
|
||||||
hot-corners = {
|
hot-corners = {enable = false;};
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window-rules = [
|
window-rules = [
|
||||||
@@ -731,32 +581,6 @@ in {
|
|||||||
# opacity = 0.8;
|
# opacity = 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Blurred windows
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
# {app-id = "code";}
|
|
||||||
# {app-id = "code-url-handler";}
|
|
||||||
# {app-id = "dev.zed.Zed";}
|
|
||||||
# {app-id = "discord";}
|
|
||||||
# {app-id = "firefox";}
|
|
||||||
# {app-id = "jetbrains-clion";}
|
|
||||||
# {app-id = "jetbrains-idea";}
|
|
||||||
# {app-id = "jetbrains-pycharm";}
|
|
||||||
# {app-id = "jetbrains-rustrover";}
|
|
||||||
# {app-id = "jetbrains-rider";}
|
|
||||||
# {app-id = "jetbrains-webstorm";}
|
|
||||||
{app-id = "kitty";}
|
|
||||||
{app-id = "neovide";}
|
|
||||||
# {app-id = "obsidian";}
|
|
||||||
# {app-id = "org.qutebrowser.qutebrowser";}
|
|
||||||
# {app-id = "signal";}
|
|
||||||
# {app-id = "steam";}
|
|
||||||
];
|
|
||||||
|
|
||||||
opacity = 0.9;
|
|
||||||
background-effect.blur = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Floating + unmaximized windows
|
# Floating + unmaximized windows
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [
|
||||||
@@ -792,16 +616,16 @@ in {
|
|||||||
|
|
||||||
# Rules for specific windows
|
# Rules for specific windows
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [{app-id = "neovide";}];
|
||||||
{app-id = "neovide";}
|
|
||||||
{app-id = "dev.zed.Zed";}
|
|
||||||
{app-id = "code";}
|
|
||||||
{app-id = "jetbrains-clion";}
|
|
||||||
];
|
|
||||||
open-on-workspace = "2";
|
open-on-workspace = "2";
|
||||||
open-maximized = true;
|
open-maximized = true;
|
||||||
open-focused = true;
|
open-focused = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "jetbrains-clion";}];
|
||||||
|
open-on-workspace = "2";
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "code-url-handler";}];
|
matches = [{app-id = "code-url-handler";}];
|
||||||
open-on-workspace = "2";
|
open-on-workspace = "2";
|
||||||
@@ -878,16 +702,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
draw-behind-window = true;
|
draw-behind-window = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
background-effect.blur = true;
|
|
||||||
}
|
}
|
||||||
# TODO: Makes entire screen blank and blurred?
|
|
||||||
# {
|
|
||||||
# matches = [{namespace = "walker";}];
|
|
||||||
#
|
|
||||||
# opacity = 0.0;
|
|
||||||
# background-effect.blur = true;
|
|
||||||
# }
|
|
||||||
];
|
];
|
||||||
|
|
||||||
debug = {
|
debug = {
|
||||||
@@ -897,7 +712,6 @@ 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; let
|
||||||
# TODO: Module
|
|
||||||
sessionMenu = mylib.rofi.mkMenu {
|
sessionMenu = mylib.rofi.mkMenu {
|
||||||
prompt = "Session";
|
prompt = "Session";
|
||||||
layers = [
|
layers = [
|
||||||
@@ -940,38 +754,18 @@ in {
|
|||||||
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
|
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
|
||||||
rofiCmd = "walker -d";
|
rofiCmd = "walker -d";
|
||||||
};
|
};
|
||||||
screenshotMenu = mylib.rofi.mkMenu {
|
# niriMenu = mylib.rofi.mkMenu {
|
||||||
prompt = "Screenshot";
|
# prompt = "Niri";
|
||||||
layers = [
|
# layers = [
|
||||||
{
|
# {
|
||||||
# -p: Show pointer
|
# " Take Region Screenshot" = "niri msg action screenshot -p false";
|
||||||
# -d: Write to disk
|
# " Take Window Screenshot" = "niri msg action screenshot-window -p false -d true";
|
||||||
" Take Region Screenshot" = "niri msg action screenshot -p false";
|
# " Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true";
|
||||||
" 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";
|
||||||
prompts = ["Execute Screenshot Action"];
|
# };
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
sshMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "SSH";
|
|
||||||
layers = [
|
|
||||||
"grep -E '^Host ' ~/.ssh/config | awk '{print $2}'"
|
|
||||||
];
|
|
||||||
prompts = ["Select Host"];
|
|
||||||
command = "kitty ssh $OPTION0";
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
projectMenu = mylib.rofi.mkMenu {
|
|
||||||
prompt = "Project";
|
|
||||||
layers = [
|
|
||||||
"eza -1 -D ~/Projects"
|
|
||||||
];
|
|
||||||
prompts = ["Select Project"];
|
|
||||||
command = "neovide ~/Projects/$OPTION0";
|
|
||||||
rofiCmd = "walker -d";
|
|
||||||
};
|
|
||||||
globalMenu = mylib.rofi.mkMenu {
|
globalMenu = mylib.rofi.mkMenu {
|
||||||
prompt = "Global";
|
prompt = "Global";
|
||||||
layers = [
|
layers = [
|
||||||
@@ -980,11 +774,8 @@ in {
|
|||||||
" Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
" Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
||||||
" View Keybindings" = "niri msg action show-hotkey-overlay";
|
" View Keybindings" = "niri msg action show-hotkey-overlay";
|
||||||
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
|
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
|
||||||
" Screenshot" = "${screenshotMenu}/bin/rofi-menu-Screenshot";
|
# " Niri Actions" = "${niriMenu}/bin/rofi-menu-Niri";
|
||||||
# "🤪 Pick Symbols" = "walker -m symbols";
|
# TODO: What else? SSH menu?
|
||||||
" Color Picker" = "hyprpicker --autocopy";
|
|
||||||
" SSH" = "${sshMenu}/bin/rofi-menu-SSH";
|
|
||||||
" Open Project" = "${projectMenu}/bin/rofi-menu-Project";
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
prompts = ["Select Action"];
|
prompts = ["Select Action"];
|
||||||
@@ -994,143 +785,95 @@ in {
|
|||||||
# DMenu
|
# DMenu
|
||||||
"Mod+Shift+A" = {
|
"Mod+Shift+A" = {
|
||||||
action = spawn "walker" "-m" "providerlist";
|
action = spawn "walker" "-m" "providerlist";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle the launcher.";};
|
||||||
title = "Toggle the launcher.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+A" = {
|
"Mod+A" = {
|
||||||
action = spawn "walker" "-m" "desktopapplications";
|
action = spawn "walker" "-m" "desktopapplications";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle the application launcher.";};
|
||||||
title = "Toggle the application launcher.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"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" = {
|
"Mod+Escape" = {
|
||||||
action = spawn "${sessionMenu}/bin/rofi-menu-Session";
|
action = spawn "${sessionMenu}/bin/rofi-menu-Session";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Toggle the session menu.";};
|
||||||
title = "Toggle the session menu.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+W" = {
|
"Mod+W" = {
|
||||||
action = spawn "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
action = spawn "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Open wallpaper menu.";};
|
||||||
title = "Open wallpaper menu.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+D" = {
|
"Mod+D" = {
|
||||||
action = spawn "${globalMenu}/bin/rofi-menu-Global";
|
action = spawn "${globalMenu}/bin/rofi-menu-Global";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Open global menu.";};
|
||||||
title = "Open global menu.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
"Mod+Ctrl+W" = {
|
"Mod+Ctrl+W" = {
|
||||||
action = spawn "waypaper";
|
action = spawn "waypaper";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Open waypaper.";};
|
||||||
title = "Open waypaper.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+W" = {
|
"Mod+Shift+W" = {
|
||||||
action = spawn "waypaper" "--random";
|
action = spawn "waypaper" "--random";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Select random wallpaper.";};
|
||||||
title = "Select random wallpaper.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+T" = {
|
"Mod+T" = {
|
||||||
action = spawn "kitty";
|
action = spawn "kitty";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Spawn Kitty.";};
|
||||||
title = "Spawn Kitty.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+E" = {
|
"Mod+E" = {
|
||||||
action = spawn "kitty" "--title=Yazi" "yazi";
|
action = spawn "kitty" "--title=Yazi" "yazi";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Spawn Yazi.";};
|
||||||
title = "Spawn Yazi.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+B" = {
|
"Mod+B" = {
|
||||||
action = spawn "kitty" "--title=Btop" "btop";
|
action = spawn "kitty" "--title=Btop" "btop";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Spawn Btop.";};
|
||||||
title = "Spawn Btop.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+R" = {
|
"Mod+R" = {
|
||||||
action = spawn "kitty" "--title=Rmpc" "rmpc";
|
action = spawn "kitty" "--title=Rmpc" "rmpc";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Spawn Rmpc.";};
|
||||||
title = "Spawn Rmpc.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+N" = {
|
"Mod+N" = {
|
||||||
action = spawn "neovide";
|
action = spawn "neovide";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Spawn Neovide.";};
|
||||||
title = "Spawn Neovide.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Ctrl+N" = {
|
"Mod+Ctrl+N" = {
|
||||||
action = spawn "kitty" "--title=Navi" "navi";
|
action = spawn "kitty" "--title=Navi" "navi";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Call Navi for help.";};
|
||||||
title = "Call Navi for help.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+N" = {
|
"Mod+Shift+N" = {
|
||||||
action = spawn "neovide" "${config.paths.dotfiles}/navi/christoph.cheat";
|
action = spawn "neovide" "${config.paths.dotfiles}/navi/christoph.cheat";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Edit the Navi cheats.";};
|
||||||
title = "Edit the Navi cheats.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+F" = {
|
"Mod+Shift+F" = {
|
||||||
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
|
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Edit the NixFlake.";};
|
||||||
title = "Edit the NixFlake.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
"Mod+S" = {
|
"Mod+S" = {
|
||||||
action = spawn "${screenshotMenu}/bin/rofi-menu-Screenshot";
|
action.screenshot-window = {
|
||||||
hotkey-overlay = {
|
write-to-disk = true;
|
||||||
title = "Screenshot menu.";
|
show-pointer = false;
|
||||||
};
|
};
|
||||||
|
hotkey-overlay = {title = "Take a screenshot of the current window.";};
|
||||||
};
|
};
|
||||||
# "Mod+S" = {
|
|
||||||
# action.screenshot-window = {
|
|
||||||
# write-to-disk = true;
|
|
||||||
# show-pointer = false;
|
|
||||||
# };
|
|
||||||
# hotkey-overlay = {
|
|
||||||
# title = "Take a screenshot of the current window.";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
"Mod+Ctrl+S" = {
|
"Mod+Ctrl+S" = {
|
||||||
action.screenshot-screen = {
|
action.screenshot-screen = {
|
||||||
write-to-disk = true;
|
write-to-disk = true;
|
||||||
show-pointer = false;
|
show-pointer = false;
|
||||||
};
|
};
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {title = "Take a screenshot of the current screen.";};
|
||||||
title = "Take a screenshot of the current screen.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"Mod+Shift+S" = {
|
"Mod+Shift+S" = {
|
||||||
action.screenshot = {
|
action.screenshot = {show-pointer = false;};
|
||||||
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";
|
||||||
@@ -1144,283 +887,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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -97,8 +97,6 @@ in {
|
|||||||
radare2
|
radare2
|
||||||
disktui
|
disktui
|
||||||
lldb
|
lldb
|
||||||
inotify-tools
|
|
||||||
xdotool
|
|
||||||
|
|
||||||
# Hardware/Software info
|
# Hardware/Software info
|
||||||
pciutils # lspci
|
pciutils # lspci
|
||||||
@@ -140,7 +138,6 @@ in {
|
|||||||
# Linux exclusive packages (!headless)
|
# Linux exclusive packages (!headless)
|
||||||
(lib.optionals (pkgs.stdenv.isLinux && (!headless)) [
|
(lib.optionals (pkgs.stdenv.isLinux && (!headless)) [
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
asciicam
|
|
||||||
|
|
||||||
# Proton
|
# Proton
|
||||||
proton-vpn
|
proton-vpn
|
||||||
@@ -163,8 +160,6 @@ in {
|
|||||||
czkawka-full # file deduplicator
|
czkawka-full # file deduplicator
|
||||||
binaryninja-free # reverse engineering
|
binaryninja-free # reverse engineering
|
||||||
tableplus # database explorer
|
tableplus # database explorer
|
||||||
# opencode-desktop
|
|
||||||
lmstudio # TODO: Ollama
|
|
||||||
|
|
||||||
# Office
|
# Office
|
||||||
kdePackages.wacomtablet # For xournalpp/krita
|
kdePackages.wacomtablet # For xournalpp/krita
|
||||||
@@ -178,14 +173,13 @@ in {
|
|||||||
# gnome-calendar
|
# gnome-calendar
|
||||||
# helvum # unmaintained
|
# helvum # unmaintained
|
||||||
crosspipe
|
crosspipe
|
||||||
# nautilus # This is the worst file manager I've ever used
|
nautilus # Just in case
|
||||||
font-manager # Previews fonts, but doesn't set them
|
font-manager # Previews fonts, but doesn't set them
|
||||||
gparted
|
gparted
|
||||||
resources
|
resources
|
||||||
# celluloid
|
# celluloid
|
||||||
# cine
|
# cine
|
||||||
# eyedropper
|
eyedropper
|
||||||
hyprpicker
|
|
||||||
junction
|
junction
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@@ -15,44 +15,44 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
|
|
||||||
settings = {
|
matchBlocks = {
|
||||||
"*" = {
|
"*" = {
|
||||||
ForwardAgent = false;
|
forwardAgent = false;
|
||||||
AddKeysToAgent =
|
addKeysToAgent =
|
||||||
if pkgs.stdenv.isLinux
|
if pkgs.stdenv.isLinux
|
||||||
then "no"
|
then "no"
|
||||||
else "yes"; # Don't have keychain on darwin
|
else "yes"; # Don't have keychain on darwin
|
||||||
Compression = true;
|
compression = true;
|
||||||
ServerAliveInterval = 0;
|
serverAliveInterval = 0;
|
||||||
ServerAliveCountMax = 3;
|
serverAliveCountMax = 3;
|
||||||
HashKnownHosts = false;
|
hashKnownHosts = false;
|
||||||
UserKnownHostsFile = "~/.ssh/known_hosts";
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
ControlMaster = "no";
|
controlMaster = "no";
|
||||||
ControlPath = "~/.ssh/master-%r@%n:%p";
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
ControlPersist = "no";
|
controlPersist = "no";
|
||||||
};
|
};
|
||||||
"nixinator" = {
|
"nixinator" = {
|
||||||
Port = 5432;
|
port = 5432;
|
||||||
User = "christoph";
|
user = "christoph";
|
||||||
HostName = "vps.chriphost.de";
|
hostname = "vps.chriphost.de";
|
||||||
};
|
};
|
||||||
"servenix" = {
|
"servenix" = {
|
||||||
User = "christoph";
|
user = "christoph";
|
||||||
HostName = "local.chriphost.de";
|
hostname = "local.chriphost.de";
|
||||||
};
|
};
|
||||||
"thinknix" = {
|
"thinknix" = {
|
||||||
User = "christoph";
|
user = "christoph";
|
||||||
HostName = "think.chriphost.de";
|
hostname = "think.chriphost.de";
|
||||||
};
|
};
|
||||||
"vps" = {
|
"vps" = {
|
||||||
User = "root";
|
user = "root";
|
||||||
HostName = "vps.chriphost.de";
|
hostname = "vps.chriphost.de";
|
||||||
};
|
};
|
||||||
"mars" = {
|
"mars" = {
|
||||||
User = "smchurla";
|
user = "smchurla";
|
||||||
HostName = "mars.cs.tu-dortmund.de";
|
hostname = "mars.cs.tu-dortmund.de";
|
||||||
ServerAliveInterval = 60;
|
serverAliveInterval = 60;
|
||||||
LocalForward = [
|
localForwards = [
|
||||||
{
|
{
|
||||||
# Resultbrowser
|
# Resultbrowser
|
||||||
bind.port = 22941;
|
bind.port = 22941;
|
||||||
|
|||||||
@@ -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 = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -23,7 +23,7 @@ in {
|
|||||||
fixed-center = true;
|
fixed-center = true;
|
||||||
output = waybar.monitors;
|
output = waybar.monitors;
|
||||||
|
|
||||||
modules-left = ["custom/launcher" "niri/workspaces" "niri/window" "hyprland/workspaces" "hyprland/window"]; # "user"
|
modules-left = ["custom/launcher" "niri/workspaces" "niri/window"]; # "user"
|
||||||
modules-center = ["mpris"]; # "systemd-failed-units"
|
modules-center = ["mpris"]; # "systemd-failed-units"
|
||||||
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
|
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
|
||||||
|
|
||||||
@@ -58,27 +58,6 @@ in {
|
|||||||
icon-size = 22;
|
icon-size = 22;
|
||||||
};
|
};
|
||||||
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
all-outputs = false;
|
|
||||||
format = "{icon}";
|
|
||||||
format-icons = {
|
|
||||||
default = "";
|
|
||||||
focused = "";
|
|
||||||
active = "";
|
|
||||||
};
|
|
||||||
persistent-workspaces = {
|
|
||||||
DP-1 = [1 2 3 4 5 6 7 8 9];
|
|
||||||
DP-2 = [0];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"hyprland/window" = {
|
|
||||||
format = "{title}";
|
|
||||||
separate-outputs = false;
|
|
||||||
icon = true;
|
|
||||||
icon-size = 22;
|
|
||||||
};
|
|
||||||
|
|
||||||
mpris = {
|
mpris = {
|
||||||
format = "<span></span> {dynamic}";
|
format = "<span></span> {dynamic}";
|
||||||
format-paused = "<span>{status_icon}</span> <i>{dynamic}</i>";
|
format-paused = "<span>{status_icon}</span> <i>{dynamic}</i>";
|
||||||
@@ -200,7 +179,7 @@ in {
|
|||||||
border-width: ${border-width};
|
border-width: ${border-width};
|
||||||
border-radius: ${border-radius};
|
border-radius: ${border-radius};
|
||||||
border-color: #${color.hex.accent};
|
border-color: #${color.hex.accent};
|
||||||
background-color: rgba(${color.rgbS.mantle}, 0.7);
|
background-color: rgba(${color.rgbS.mantle}, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
tooltip {
|
tooltip {
|
||||||
|
|||||||
@@ -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,12 @@ 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...
|
# TODO: For some reason, junction does not exit after choosing an application...
|
||||||
run = ''junction "$@"'';
|
run = ''junction "$@"'';
|
||||||
desc = "Open selection with junction";
|
desc = "Open selection in chosen application";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
extract = [
|
extract = [
|
||||||
@@ -127,13 +106,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 +162,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 +209,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";
|
||||||
}
|
}
|
||||||
# {
|
# {
|
||||||
@@ -270,20 +222,13 @@ in {
|
|||||||
run = "remove --permanently";
|
run = "remove --permanently";
|
||||||
desc = "Delete selection";
|
desc = "Delete selection";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
on = ["g" "m"];
|
|
||||||
run = ''cd ~/Notes/TU/MastersThesis'';
|
|
||||||
desc = "Go to MastersThesis";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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;
|
||||||
@@ -340,9 +285,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
border_symbol = "│";
|
border_symbol = "│";
|
||||||
border_style = {
|
border_style = {fg = color.hexS.overlay0;};
|
||||||
fg = color.hexS.overlay0;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
tabs = {
|
tabs = {
|
||||||
@@ -411,104 +354,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
|
||||||
|
|
||||||
@@ -523,31 +420,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";
|
|
||||||
}
|
|
||||||
+5
-5
@@ -14,7 +14,7 @@
|
|||||||
experimental-features = nix-command flakes pipe-operators
|
experimental-features = nix-command flakes pipe-operators
|
||||||
'';
|
'';
|
||||||
|
|
||||||
settings = rec {
|
settings = {
|
||||||
trusted-users = ["root" username];
|
trusted-users = ["root" username];
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
||||||
@@ -23,16 +23,16 @@
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
# "https://comfyui.cachix.org"
|
||||||
|
# "https://ai.cachix.org"
|
||||||
# "https://app.cachix.org/cache/nixos-rocm"
|
# "https://app.cachix.org/cache/nixos-rocm"
|
||||||
"https://hyprland.cachix.org"
|
|
||||||
"https://nix-gaming.cachix.org"
|
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
# "comfyui.cachix.org-1:33mf9VzoIjzVbp0zwj+fT51HG0y31ZTK3nzYZAX0rec="
|
||||||
|
# "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
|
||||||
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
|
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -337,8 +337,7 @@ with mylib.networking; {
|
|||||||
|
|
||||||
niri = {
|
niri = {
|
||||||
enable = !headless;
|
enable = !headless;
|
||||||
package = pkgs.niri;
|
package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11
|
||||||
# package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ssh.startAgent = true; # Use gnupg
|
ssh.startAgent = true; # Use gnupg
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
|
|
||||||
# General services
|
# General services
|
||||||
|
../services/comfyui.nix
|
||||||
../services/fileflows-node.nix
|
../services/fileflows-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -195,34 +196,6 @@
|
|||||||
spice-gtk
|
spice-gtk
|
||||||
];
|
];
|
||||||
|
|
||||||
stylix = {
|
|
||||||
enable = true;
|
|
||||||
autoEnable = false;
|
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
||||||
|
|
||||||
# TODO: Duplicated from fonts module (set this inside fonts module?)
|
|
||||||
fonts = {
|
|
||||||
serif = {
|
|
||||||
package = pkgs.noto-fonts-cjk-serif;
|
|
||||||
name = "Noto Serif CJK SC";
|
|
||||||
};
|
|
||||||
sansSerif = {
|
|
||||||
package = pkgs.noto-fonts-cjk-sans;
|
|
||||||
name = "Noto Sans CJK SC";
|
|
||||||
};
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.monolisa;
|
|
||||||
name = "MonoLisa Alt Script";
|
|
||||||
};
|
|
||||||
emoji = {
|
|
||||||
package = pkgs.noto-fonts-color-emoji;
|
|
||||||
name = "Noto Color Emoji";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
targets = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -244,25 +217,15 @@
|
|||||||
openFirewall = true; # Directly set port in firewall
|
openFirewall = true; # Directly set port in firewall
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Doesn't work with steam flatpak
|
|
||||||
# gamescope = {
|
|
||||||
# enable = true;
|
|
||||||
# enableWsi = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
ghidra = {
|
ghidra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gdb = true;
|
gdb = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
steam.platformOptimizations.enable = true; # From nix-gaming module
|
|
||||||
virt-manager.enable = true;
|
virt-manager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# desktopManager.plasma6.enable = true;
|
|
||||||
# displayManager.gdm.enable = true; # Somehow, Plasma's own manager didn't work
|
|
||||||
|
|
||||||
btrfs.autoScrub = {
|
btrfs.autoScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interval = "weekly";
|
interval = "weekly";
|
||||||
@@ -271,50 +234,53 @@
|
|||||||
|
|
||||||
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 = {
|
||||||
|
|||||||
@@ -121,6 +121,12 @@
|
|||||||
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 = [
|
||||||
@@ -140,8 +146,8 @@
|
|||||||
nvidia-container-toolkit.enable = true;
|
nvidia-container-toolkit.enable = true;
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
# package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = false; # Those are for x-server
|
nvidiaSettings = false; # Those are for x-server
|
||||||
@@ -160,9 +166,6 @@
|
|||||||
|
|
||||||
# https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/3
|
# https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/3
|
||||||
nvidia-vaapi-driver # Experimental, doesn't work with chromium
|
nvidia-vaapi-driver # Experimental, doesn't work with chromium
|
||||||
|
|
||||||
# Hdr in games with DXVK_HDR=1 ENABLE_HDR_WSI=1
|
|
||||||
vulkan-hdr-layer-kwin6
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
../services/formula10.nix
|
../services/formula10.nix
|
||||||
../services/formula11.nix
|
../services/formula11.nix
|
||||||
../services/formula12.nix
|
../services/formula12.nix
|
||||||
# ../services/statespaces.nix
|
../services/statespaces.nix
|
||||||
|
|
||||||
# General services
|
# General services
|
||||||
../services/arcane-agent.nix
|
|
||||||
../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
|
||||||
@@ -36,8 +36,8 @@
|
|||||||
../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
|
||||||
# ../services/portainer-agent.nix
|
../services/portainer-agent.nix
|
||||||
# ../services/pulse-agent-servenix.nix
|
../services/pulse-agent-servenix.nix
|
||||||
../services/prowlarr.nix
|
../services/prowlarr.nix
|
||||||
../services/radarr.nix
|
../services/radarr.nix
|
||||||
../services/sabnzbd-movies.nix
|
../services/sabnzbd-movies.nix
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
../services/sonarr.nix
|
../services/sonarr.nix
|
||||||
../services/teamspeak.nix
|
../services/teamspeak.nix
|
||||||
../services/tinymediamanager.nix
|
../services/tinymediamanager.nix
|
||||||
# ../services/whats-up-docker.nix
|
../services/whats-up-docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
systemmodules = {
|
systemmodules = {
|
||||||
@@ -85,7 +85,6 @@
|
|||||||
443 # HTTPS (Nginx Proxy Manager)
|
443 # HTTPS (Nginx Proxy Manager)
|
||||||
|
|
||||||
3000 # Gitea (runner needs to reach local gitea instance)
|
3000 # Gitea (runner needs to reach local gitea instance)
|
||||||
3553 # Arcane
|
|
||||||
|
|
||||||
30033 # Teamspeak
|
30033 # Teamspeak
|
||||||
10080 # Teamspeak
|
10080 # Teamspeak
|
||||||
@@ -98,7 +97,6 @@
|
|||||||
443 # HTTPS (Nginx Proxy Manager)
|
443 # HTTPS (Nginx Proxy Manager)
|
||||||
|
|
||||||
3000 # Gitea (runner needs to reach local gitea instance)
|
3000 # Gitea (runner needs to reach local gitea instance)
|
||||||
3553 # Arcane
|
|
||||||
|
|
||||||
5520 # HyTale
|
5520 # HyTale
|
||||||
|
|
||||||
@@ -115,7 +113,6 @@
|
|||||||
"paperless-nextcloud-sync-password"
|
"paperless-nextcloud-sync-password"
|
||||||
"ntfy-auth-users"
|
"ntfy-auth-users"
|
||||||
"ntfy-auth-tokens"
|
"ntfy-auth-tokens"
|
||||||
"arcane-agent-key"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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,56 +0,0 @@
|
|||||||
{
|
|
||||||
mylib,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
arcaneVersion = "v2.3.0";
|
|
||||||
in {
|
|
||||||
# If we need to pass secrets to containers we can't use plain env variables.
|
|
||||||
sops.templates."arcane-agent_secrets.env".content = ''
|
|
||||||
AGENT_TOKEN=${config.sops.placeholder.arcane-agent-key}
|
|
||||||
'';
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
arcane-agent = {
|
|
||||||
image = "ghcr.io/getarcaneapp/arcane-headless:${arcaneVersion}";
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
|
||||||
|
|
||||||
dependsOn = [];
|
|
||||||
|
|
||||||
ports = [
|
|
||||||
"3553:3553"
|
|
||||||
];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
|
||||||
|
|
||||||
"arcane-agent_data:/app/data"
|
|
||||||
"/media/synology-syncthing:/backups"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
MANAGER_API_URL = "https://arcane.think.chriphost.de";
|
|
||||||
AGENT_MODE = "true";
|
|
||||||
EDGE_TRANSPORT = "poll";
|
|
||||||
|
|
||||||
PUID = "1000";
|
|
||||||
PGID = "1000";
|
|
||||||
TZ = "Europe/Berlin";
|
|
||||||
};
|
|
||||||
|
|
||||||
environmentFiles = [
|
|
||||||
config.sops.templates."arcane-agent_secrets.env".path
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
# "--privileged"
|
|
||||||
# "--device=nvidia.com/gpu=all"
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
mylib,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
arcaneVersion = "v2.3.0";
|
|
||||||
in {
|
|
||||||
# If we need to pass secrets to containers we can't use plain env variables.
|
|
||||||
sops.templates."arcane_secrets.env".content = ''
|
|
||||||
ENCRYPTION_KEY=${config.sops.placeholder.arcane-encryption-key}
|
|
||||||
JWT_SECRET=${config.sops.placeholder.arcane-jwt-secret}
|
|
||||||
'';
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
arcane = {
|
|
||||||
image = "ghcr.io/getarcaneapp/manager:${arcaneVersion}";
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
login = mylib.containers.mkDockerLogin config;
|
|
||||||
|
|
||||||
dependsOn = [];
|
|
||||||
|
|
||||||
ports = [
|
|
||||||
# "3552:3552"
|
|
||||||
];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
|
||||||
|
|
||||||
"arcane_data:/app/data"
|
|
||||||
"/media/synology-syncthing:/backups"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
APP_URL = "https://arcane.think.chriphost.de";
|
|
||||||
|
|
||||||
PUID = "1000";
|
|
||||||
PGID = "1000";
|
|
||||||
TZ = "Europe/Berlin";
|
|
||||||
};
|
|
||||||
|
|
||||||
environmentFiles = [
|
|
||||||
config.sops.templates."arcane_secrets.env".path
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
# "--privileged"
|
|
||||||
# "--device=nvidia.com/gpu=all"
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
mylib,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
boxVersion = "v0.31.0";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
box = {
|
||||||
|
image = "stashapp/stash:${boxVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = mylib.containers.mkDockerLogin config;
|
||||||
|
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
{
|
||||||
|
mylib,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
# comfyuiVersion = "cu128-slim-20260316";
|
||||||
|
# comfyuiVersion = "cu128-megapak-20260413";
|
||||||
|
# comfyuiVersion = "cu130-megapak-pt211-20260413";
|
||||||
|
comfyuiVersion = "cu130-megapak-pt211-20260508";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
comfyui = {
|
||||||
|
image = "yanwk/comfyui-boot:${comfyuiVersion}";
|
||||||
|
autoStart = false;
|
||||||
|
|
||||||
|
login = mylib.containers.mkDockerLogin config;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"8188:8188"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = let
|
||||||
|
rootDir = "/home/christoph/Games/ComfyUI";
|
||||||
|
in [
|
||||||
|
# cu128-slim / cu128-megapak
|
||||||
|
# "${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"
|
||||||
|
|
||||||
|
# cu130-megapak
|
||||||
|
"${rootDir}/storage-cache/dot-cache:/root/.cache"
|
||||||
|
"${rootDir}/storage-cache/dot-config:/root/.config"
|
||||||
|
"${rootDir}/storage-nodes/dot-local:/root/.local"
|
||||||
|
"${rootDir}/storage-nodes/comfy-extras:/root/ComfyUI/comfy_extras"
|
||||||
|
"${rootDir}/storage-nodes/custom_nodes:/root/ComfyUI/custom_nodes"
|
||||||
|
"${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/user-profile:/root/ComfyUI/user"
|
||||||
|
"${rootDir}/storage-user/user-scripts:/root/user-scripts"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
# https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
|
||||||
|
CLI_ARGS = lib.concatStringsSep " " [
|
||||||
|
# "--cache-none" # Leads to single nodes being executed multiple times for each output connection :/
|
||||||
|
# "--lowvram"
|
||||||
|
# "--disable-smart-memory"
|
||||||
|
# "--disable-pinned-memory"
|
||||||
|
# "--disable-xformers"
|
||||||
|
# "--use-sage-attention" # Crashes
|
||||||
|
# "--reserve-vram 1" # (1 or 2) => Assume less vram is available to mitigate OOM due to wrong vram estimation
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
# "--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
fileflowsVersion = "26.06";
|
fileflowsVersion = "26.01";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
fileflows-node = {
|
fileflows-node = {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
version = "26.06";
|
version = "26.01";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
fileflows = {
|
fileflows = {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
giteaVersion = "1.27.0";
|
giteaVersion = "1.24.2";
|
||||||
runnerVersion = "0.6.1";
|
runnerVersion = "0.2.12";
|
||||||
in {
|
in {
|
||||||
users = {
|
users = {
|
||||||
groups.git = {};
|
groups.git = {};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
}: let
|
}: let
|
||||||
vectorchordVersion = "0.4.2";
|
vectorchordVersion = "0.4.2";
|
||||||
pgvectorsVersion = "0.2.0";
|
pgvectorsVersion = "0.2.0";
|
||||||
immichVersion = "3.0.1-cuda";
|
immichVersion = "2.5.2";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
immich-database = {
|
immich-database = {
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/home/christoph/ssd/kiwix:/data"
|
# TODO: Add network location for .zim files
|
||||||
|
"kiwix_data:/data"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
|||||||
@@ -30,24 +30,20 @@ in {
|
|||||||
volumes = let
|
volumes = let
|
||||||
# TODO: Setup on ThinkNix: adguard_config, adguard_work, portainer_config
|
# TODO: Setup on ThinkNix: adguard_config, adguard_work, portainer_config
|
||||||
backup = [
|
backup = [
|
||||||
"arcane-agent_data"
|
|
||||||
"authelia_config"
|
"authelia_config"
|
||||||
"bazarr_config"
|
"formula10_cache"
|
||||||
"fileflows_data"
|
|
||||||
"formula10_data"
|
"formula10_data"
|
||||||
"formula11_pb_data"
|
"formula11_pb_data"
|
||||||
"formula12_pb_data"
|
|
||||||
"gitea-db_data"
|
"gitea-db_data"
|
||||||
|
"gitea_data"
|
||||||
"gitea-runner_config"
|
"gitea-runner_config"
|
||||||
"gitea-runner_data"
|
"gitea-runner_data"
|
||||||
"gitea_data"
|
|
||||||
"heidi_config"
|
"heidi_config"
|
||||||
"immich-database_data"
|
"immich-database_data"
|
||||||
"immich_config"
|
"immich_config"
|
||||||
"immich_data"
|
"immich_data"
|
||||||
"immich_machine-learning"
|
"immich_machine-learning"
|
||||||
"jellyfin_config"
|
"jellyfin_config"
|
||||||
"kopia_config"
|
|
||||||
"nextcloud-db_data"
|
"nextcloud-db_data"
|
||||||
"nextcloud_data"
|
"nextcloud_data"
|
||||||
"nginx_config"
|
"nginx_config"
|
||||||
@@ -55,13 +51,6 @@ in {
|
|||||||
"nginx_snippets"
|
"nginx_snippets"
|
||||||
"paperless-postgres_data"
|
"paperless-postgres_data"
|
||||||
"paperless_data"
|
"paperless_data"
|
||||||
"prowlarr_config"
|
|
||||||
"radarr_config"
|
|
||||||
"sabnzbd-movies_config"
|
|
||||||
"sabnzbd-shows_config"
|
|
||||||
"sonarr_config"
|
|
||||||
"teamspeak_data2"
|
|
||||||
"tinymediamanager_data"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
mkVolume = name: "${name}:/data/${name}:ro";
|
mkVolume = name: "${name}:/data/${name}:ro";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
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;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
teamspeakVersion = "6.0.0-beta11";
|
teamspeakVersion = "v6.0.0-beta8";
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
teamspeak = {
|
teamspeak = {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ in {
|
|||||||
# Sans/Serif fonts
|
# Sans/Serif fonts
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-color-emoji
|
noto-fonts-color-emoji
|
||||||
noto-fonts-cjk-serif
|
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
lxgw-wenkai
|
lxgw-wenkai
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ in {
|
|||||||
(mkRDir "/usr/systemd-placeholder" m755)
|
(mkRDir "/usr/systemd-placeholder" m755)
|
||||||
|
|
||||||
# TODO: Why does this use the mandb user?
|
# TODO: Why does this use the mandb user?
|
||||||
|
# TODO: Why does this apparently conflict with comfyui-nix?
|
||||||
# (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)
|
||||||
@@ -120,17 +121,14 @@ 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
|
||||||
@@ -138,21 +136,14 @@ in {
|
|||||||
(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
|
||||||
@@ -160,7 +151,6 @@ in {
|
|||||||
(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)
|
||||||
@@ -171,13 +161,11 @@ in {
|
|||||||
(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)
|
||||||
@@ -209,7 +197,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 +209,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)
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -17,20 +17,18 @@ restic-repo-key: ENC[AES256_GCM,data:lSFuhjbhdQq4cabAVFGQ4kuaJxb7EhXgBDlgoEQWJhs
|
|||||||
heidi-discord-token: ENC[AES256_GCM,data:FYvfUn8tG7glqIomSDj9rGyNQjnHSCsD/C3Kk/JR1vm/xkrxzXwP3rpyxAzqRQ7vd+zFBf2BJfV/zMk=,iv:b+aKcu98rxslEGSYf6t/jGwPfS256WQ3B/iuQ4Qeykk=,tag:e48Q0BraIvItyD2WBfbYEA==,type:str]
|
heidi-discord-token: ENC[AES256_GCM,data:FYvfUn8tG7glqIomSDj9rGyNQjnHSCsD/C3Kk/JR1vm/xkrxzXwP3rpyxAzqRQ7vd+zFBf2BJfV/zMk=,iv:b+aKcu98rxslEGSYf6t/jGwPfS256WQ3B/iuQ4Qeykk=,tag:e48Q0BraIvItyD2WBfbYEA==,type:str]
|
||||||
kopia-server-username: ENC[AES256_GCM,data:4onewFkWpi9g,iv:aA4WSS8T6KUcGbAIHDd8BjE0sRK/Qz0j4QvEnKdlt2U=,tag:FQlB0Wx2u8wT3TKIhMAyLg==,type:str]
|
kopia-server-username: ENC[AES256_GCM,data:4onewFkWpi9g,iv:aA4WSS8T6KUcGbAIHDd8BjE0sRK/Qz0j4QvEnKdlt2U=,tag:FQlB0Wx2u8wT3TKIhMAyLg==,type:str]
|
||||||
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:W8BdbqI=,iv:JoH0ig8X+h/+bmQvzWnDo8yu1SZyE8fCwTLyyZHmDAI=,tag:foH5Es/5CBOysD4JjQzDdA==,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-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]
|
ntfy-auth-tokens: ENC[AES256_GCM,data:C23r9djvEukUgDDloFGm52spwcW1DB5Jcwt9kxghLjL3vNiQ9HzGrvlSl5oEppoNa23BF0+t,iv:O9LepUKGbyXTHMvwn1avdJEhcMgtr2Sb1imIJ8ALMYY=,tag:o3g6f7YZL2VfgfeymzJK1g==,type:str]
|
||||||
arcane-agent-key: ENC[AES256_GCM,data:jbk1yiE1R2teclJc233qVvHOf+fvmQR/trPoVPMmnLz12rPFa/pciwaIne2SjacpJjxzqYDuJJqcwdYtOXAHzLBCXaQ=,iv:tZGQxfaUEccH/n62H5oP8X3K+UWrIvmthiywpSrejkY=,tag:UEGPBox7j2qiF+uyWRTZaw==,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]
|
||||||
#
|
#
|
||||||
wireguard-vps-private-key: ENC[AES256_GCM,data:B6IWYuzKV9YZ+G9GIjOsXVEVugwMY14PrwmYyHsFAJEb1OJRXMg8+zeFnqs=,iv:2QroGA10UVSmNIBHFSTeCgMBD3VjtiUnng3pkR/mPVQ=,tag:FGlCrmdccgsObyut6E5ggA==,type:str]
|
wireguard-vps-private-key: ENC[AES256_GCM,data:B6IWYuzKV9YZ+G9GIjOsXVEVugwMY14PrwmYyHsFAJEb1OJRXMg8+zeFnqs=,iv:2QroGA10UVSmNIBHFSTeCgMBD3VjtiUnng3pkR/mPVQ=,tag:FGlCrmdccgsObyut6E5ggA==,type:str]
|
||||||
arcane-encryption-key: ENC[AES256_GCM,data:4H2kaQwIV5m0FVv+3IlNaw85V00r8W4SQ5cOSOskljtaUkFUteHzamj9KH7NxdKY+pxFkrvwIOIAhNYQTMRBSQ==,iv:FDx8IYu7B7jENtGnFiS7U7W2pDIwz9ibfuCNL0UBX6c=,tag:WSm/SwCs8sSynXeXi3+muw==,type:str]
|
|
||||||
arcane-jwt-secret: ENC[AES256_GCM,data:BMC/Hju/FkHxXjdZrVr9xjiqs9Uny/w/k14K+b+DYgPOlPYMH+YSZQ/3/yyw5j52FNcm+lDG2drTaO0NfBKJsQ==,iv:gHU78Fw1L6Igp+Jewq5xqW39tSGvGh/HREcd+HX/nO4=,tag:KTL21t2kKWsB3zm7x+T0SA==,type:str]
|
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- enc: |
|
- recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
|
||||||
|
enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWSVRhVDREMXduZElrRklE
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWSVRhVDREMXduZElrRklE
|
||||||
R2s3Y081TGVTOCtKWVVWN0RLb0ZIT3lmMTNZCjFaNmRqb2hRVXFDSU12dFhDNmJo
|
R2s3Y081TGVTOCtKWVVWN0RLb0ZIT3lmMTNZCjFaNmRqb2hRVXFDSU12dFhDNmJo
|
||||||
@@ -38,8 +36,7 @@ sops:
|
|||||||
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
|
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
|
||||||
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
|
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
|
lastmodified: "2026-04-17T12:17:23Z"
|
||||||
lastmodified: "2026-07-02T19:27:51Z"
|
mac: ENC[AES256_GCM,data:YEHM2ebPhV6ycj8OxNy7mOlpy6VrvV6Gz9sHEWc9alnrwZ0qLzp5m4AUMuWBSfFTMtVgeAFdJ8Nf4X5b+AzQXahlHWJVAwiMiE8KqhRLGWF21OyDN2aIdwd4ue2vYyPDGYP43mC+19v9SW5isF901G28e5Q9SxmGJjNOkiVuiCI=,iv:WFvCN/7YGQnCSqjXBkkfiuPoNQ37bpxHx9jreZDc3EM=,tag:AUjFpbJ6//eScnn6P2QMgA==,type:str]
|
||||||
mac: ENC[AES256_GCM,data:IkpzDK4F1pEoGx1WyG8ksgMFuEa2h9KeF3m3PzM8KQkWo9iVt3jJn80jHEzWAm8riWIbo7fRkxyRetlSFTZf+MrByotgkWVVx6dMIVNYAOcg2IOK3s4NnX0L65MjbfWGQp/d27QzzEbd14WyklMWm2UO3ei82tF+UKYUEFJ2BWk=,iv:8LimsncylU+HhvVKNnjfyqZskZA72FQe92C4VrNWyQ0=,tag:L6CEno9m3ZncOskjZibq+Q==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.13.1
|
version: 3.12.2
|
||||||
|
|||||||
@@ -16,12 +16,11 @@
|
|||||||
|
|
||||||
# General services
|
# General services
|
||||||
../services/adguard.nix
|
../services/adguard.nix
|
||||||
../services/arcane.nix
|
|
||||||
../services/nginx-proxy-manager.nix
|
../services/nginx-proxy-manager.nix
|
||||||
# ../services/portainer.nix
|
../services/portainer.nix
|
||||||
# ../services/pulse.nix
|
../services/pulse.nix
|
||||||
# ../services/pulse-agent-thinknix.nix
|
../services/pulse-agent-thinknix.nix
|
||||||
# ../services/whats-up-docker.nix
|
../services/whats-up-docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
systemmodules = {
|
systemmodules = {
|
||||||
@@ -68,8 +67,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
sops-nix.secrets.${username} = [
|
sops-nix.secrets.${username} = [
|
||||||
"arcane-encryption-key"
|
# "wireguard-vps-private-key"
|
||||||
"arcane-jwt-secret"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user