Compare commits
71 Commits
c9edeca311
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
1da87ebdb8
|
|||
|
24d72349b2
|
|||
|
5630df0be7
|
|||
|
abeca5f52e
|
|||
| 211b4bef15 | |||
| 3417ee5618 | |||
| a4ed789ae9 | |||
| 2f6c5feda7 | |||
| e4087c9da8 | |||
| 291563bba3 | |||
|
993b77d5d0
|
|||
|
8c635dc3ad
|
|||
|
cffae80d70
|
|||
|
491a1ebb40
|
|||
|
25533605d3
|
|||
|
502920af58
|
|||
|
149397f16a
|
|||
|
3435e99cb1
|
|||
|
9faf6cdfe4
|
|||
|
3d116fe3a7
|
|||
|
97761a3af5
|
|||
|
92ee55e82a
|
|||
|
2d324de58a
|
|||
|
42fbf5cee6
|
|||
|
a1d873cc30
|
|||
|
e327d6acaf
|
|||
|
a9149d86c7
|
|||
|
bdddabcd52
|
|||
|
b2860d63c5
|
|||
|
dc15d79266
|
|||
|
b6992f554a
|
|||
|
06c0a24d98
|
|||
|
9aa25642ee
|
|||
|
b6a6f966dc
|
|||
|
754caf00d4
|
|||
|
ce8d76886a
|
|||
|
b3c173f0fa
|
|||
|
d6850b86dc
|
|||
|
9e38cb0712
|
|||
|
75b4d87dfa
|
|||
|
35358cf01c
|
|||
|
5a1880587f
|
|||
|
9c22723970
|
|||
|
cb3578bb0d
|
|||
|
3313dfc89b
|
|||
|
29734f85ba
|
|||
|
afe06213de
|
|||
|
69d6588c30
|
|||
|
aee0fb44d5
|
|||
|
602f599823
|
|||
|
df0a21913e
|
|||
|
a56e9bdaf2
|
|||
|
e574a70020
|
|||
|
c6a3fde1bd
|
|||
|
b3cd3fe209
|
|||
|
ad2aca84f0
|
|||
|
a07bcd9bab
|
|||
|
7eb32cfabc
|
|||
|
f9308dda9e
|
|||
|
99aea69128
|
|||
|
d0cffe4f1c
|
|||
|
b8597104b3
|
|||
|
3bd682e800
|
|||
|
296f250eba
|
|||
|
4ab322f08d
|
|||
|
e112f5f21d
|
|||
|
5bfd7bf857
|
|||
|
7a8e7ca9d7
|
|||
|
91c539ad99
|
|||
|
4c63836d35
|
|||
|
a2eaa6f72d
|
27
.lazy.lua
27
.lazy.lua
@@ -8,28 +8,13 @@ vim.lsp.config("nixd", {
|
|||||||
.. ".options",
|
.. ".options",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
diagnostic = {
|
||||||
|
suppress = {
|
||||||
|
"sema-primop-overridden",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {}
|
||||||
{
|
|
||||||
"folke/lazydev.nvim",
|
|
||||||
ft = "lua",
|
|
||||||
opts = {
|
|
||||||
library = {
|
|
||||||
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.sources = opts.sources or {}
|
|
||||||
table.insert(opts.sources, {
|
|
||||||
name = "lazydev",
|
|
||||||
group_index = 0,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|||||||
51
Justfile
Normal file
51
Justfile
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
set export
|
||||||
|
|
||||||
|
IMPURE_ROOT := `pwd`
|
||||||
|
|
||||||
|
all: fmt switch
|
||||||
|
|
||||||
|
@switch:
|
||||||
|
echo "Rebuilding NixOS..."
|
||||||
|
nh os switch . --impure
|
||||||
|
|
||||||
|
@switch-offline:
|
||||||
|
echo "Rebuilding NixOS without net..."
|
||||||
|
nh os switch . --impure --no-net
|
||||||
|
|
||||||
|
alias offline := switch-offline
|
||||||
|
|
||||||
|
@boot:
|
||||||
|
echo "Rebuilding NixOS..."
|
||||||
|
nh os boot . --impure
|
||||||
|
|
||||||
|
@test:
|
||||||
|
echo "Rebuilding NixOS..."
|
||||||
|
nh os test . --impure
|
||||||
|
|
||||||
|
@vm:
|
||||||
|
echo "Building NixOS VM..."
|
||||||
|
nh os build-vm . --impure
|
||||||
|
|
||||||
|
@update:
|
||||||
|
echo "Updating flakes..."
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
@repl:
|
||||||
|
nixos-rebuild repl --flake .
|
||||||
|
|
||||||
|
@cleandry:
|
||||||
|
echo "Listing all generations older than 15 days..."
|
||||||
|
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --dry-run --older-than 15d
|
||||||
|
nix profile wipe-history --profile ~/.local/state/nix/profiles/profile --dry-run --older-than 15d
|
||||||
|
|
||||||
|
@clean:
|
||||||
|
echo "Removing all generations older than 15 days..."
|
||||||
|
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 15d
|
||||||
|
nix profile wipe-history --profile ~/.local/state/nix/profiles/profile --older-than 15d
|
||||||
|
|
||||||
|
@gc:
|
||||||
|
nix store gc --debug
|
||||||
|
|
||||||
|
@fmt:
|
||||||
|
echo "Formatting files..."
|
||||||
|
nix fmt
|
||||||
51
Makefile
51
Makefile
@@ -1,51 +0,0 @@
|
|||||||
all: fmt switch
|
|
||||||
|
|
||||||
switch:
|
|
||||||
@echo "Rebuilding NixOS..."
|
|
||||||
@nh os switch .
|
|
||||||
|
|
||||||
switch-offline:
|
|
||||||
@echo "Rebuilding NixOS without net..."
|
|
||||||
@nh os switch . --no-net
|
|
||||||
|
|
||||||
offline:
|
|
||||||
@echo "Rebuilding NixOS without net..."
|
|
||||||
@nh os switch . --no-net
|
|
||||||
|
|
||||||
boot:
|
|
||||||
@echo "Rebuilding NixOS..."
|
|
||||||
@nh os boot .
|
|
||||||
|
|
||||||
test:
|
|
||||||
@echo "Rebuilding NixOS..."
|
|
||||||
@nh os test .
|
|
||||||
|
|
||||||
vm:
|
|
||||||
@echo "Building NixOS VM..."
|
|
||||||
@nh os build-vm .
|
|
||||||
|
|
||||||
update:
|
|
||||||
@echo "Updating flakes..."
|
|
||||||
@nix flake update
|
|
||||||
|
|
||||||
repl:
|
|
||||||
@nixos-rebuild repl --flake .
|
|
||||||
|
|
||||||
cleandry:
|
|
||||||
@echo "Listing all generations older than 15 days..."
|
|
||||||
@sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --dry-run --older-than 15d
|
|
||||||
@nix profile wipe-history --profile ~/.local/state/nix/profiles/home-manager --dry-run --older-than 15d
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo "Removing all generations older than 15 days..."
|
|
||||||
@sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 15d
|
|
||||||
@nix profile wipe-history --profile ~/.local/state/nix/profiles/home-manager --older-than 15d
|
|
||||||
|
|
||||||
gc:
|
|
||||||
@nix store gc --debug
|
|
||||||
|
|
||||||
fmt:
|
|
||||||
@echo "Formatting nix files..."
|
|
||||||
@nix fmt
|
|
||||||
|
|
||||||
.PHONY: all switch switch-offline boot test vm update repl cleandry clean gc fmt
|
|
||||||
21
README.md
21
README.md
@@ -10,7 +10,7 @@ Currently, this repository contains the nix code that builds:
|
|||||||
2. NixOS home server
|
2. NixOS home server
|
||||||
3. NixOS WSL
|
3. NixOS WSL
|
||||||
|
|
||||||
See [./config/hosts](./config/hosts) for details of each host.
|
See [./hosts](./hosts) for details of each host.
|
||||||
|
|
||||||
## Why NixOS & Flakes?
|
## Why NixOS & Flakes?
|
||||||
|
|
||||||
@@ -25,23 +25,6 @@ As for Flakes, refer to
|
|||||||
This configuration uses [flake-parts](https://flake.parts/) for better flake organization and modularity,
|
This configuration uses [flake-parts](https://flake.parts/) for better flake organization and modularity,
|
||||||
enabling declarative host definitions and cleaner separation of concerns.
|
enabling declarative host definitions and cleaner separation of concerns.
|
||||||
|
|
||||||
## Components
|
|
||||||
|
|
||||||
| | NixOS(Wayland) |
|
|
||||||
| ----------------------------- | :------------------------------------------- |
|
|
||||||
| **Window Manager** | Niri |
|
|
||||||
| **Desktop Shell** | Noctalia Shell |
|
|
||||||
| **Terminal Emulator** | Kitty |
|
|
||||||
| **Input method framework** | Fcitx5 |
|
|
||||||
| **Shell** | Zsh |
|
|
||||||
| **Netease Cloudmusic Player** | go-musicfox |
|
|
||||||
| **Media Player** | mpv |
|
|
||||||
| **Text Editor** | Neovim |
|
|
||||||
| **Fonts** | Noto Sans CJK & Jetbrains Mono & Nerd Font |
|
|
||||||
| **Filesystem** | Btrfs |
|
|
||||||
|
|
||||||
And more...
|
|
||||||
|
|
||||||
## Folder Structure
|
## Folder Structure
|
||||||
|
|
||||||
- `modules/` - custom NixOS modules
|
- `modules/` - custom NixOS modules
|
||||||
@@ -55,7 +38,7 @@ And more...
|
|||||||
- `profiles/desktop.nix` - desktop environment configuration
|
- `profiles/desktop.nix` - desktop environment configuration
|
||||||
- `profiles/server.nix` - server-specific configuration
|
- `profiles/server.nix` - server-specific configuration
|
||||||
- `profiles/wsl.nix` - WSL-specific configuration
|
- `profiles/wsl.nix` - WSL-specific configuration
|
||||||
- `config/hosts/<name>/` - host-specific configs
|
- `hosts/<name>/` - host-specific configs
|
||||||
- `flake/` - flake-parts modules
|
- `flake/` - flake-parts modules
|
||||||
- `flake/hosts.nix` - declarative host definitions
|
- `flake/hosts.nix` - declarative host definitions
|
||||||
- `lib/` - custom nix library
|
- `lib/` - custom nix library
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.grafana = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
server = {
|
|
||||||
http_addr = "0.0.0.0";
|
|
||||||
http_port = 8090;
|
|
||||||
domain = "grafana.imxyy.top";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.prometheus = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.stable.prometheus;
|
|
||||||
port = 8091;
|
|
||||||
exporters = {
|
|
||||||
node = {
|
|
||||||
enable = true;
|
|
||||||
port = 8092;
|
|
||||||
enabledCollectors = [
|
|
||||||
"systemd"
|
|
||||||
"zfs"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
scrapeConfigs = [
|
|
||||||
{
|
|
||||||
job_name = "node";
|
|
||||||
static_configs = [
|
|
||||||
{
|
|
||||||
targets = [ "127.0.0.1:8092" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services.caddy.virtualHosts."grafana.imxyy.top" = {
|
|
||||||
extraConfig = ''
|
|
||||||
reverse_proxy :8090 {
|
|
||||||
header_up X-Real-IP {remote_host}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ lib, username, ... }:
|
|
||||||
{
|
|
||||||
my.hm.programs.zsh.shellAliases = {
|
|
||||||
localproxy_on = "export http_proxy=http://192.168.128.1:7890 https_proxy=http://192.168.128.1:7890 all_proxy=socks://192.168.128.1:7890";
|
|
||||||
};
|
|
||||||
my = {
|
|
||||||
sops.sshKeyFile = "/home/${username}/.ssh/id_ed25519";
|
|
||||||
coding.all.enable = true;
|
|
||||||
coding.editor.vscode.enable = lib.mkForce false;
|
|
||||||
cli.misc.enable = true;
|
|
||||||
xdg.enable = true;
|
|
||||||
cli.media.all.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
290
flake.lock
generated
290
flake.lock
generated
@@ -11,11 +11,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765894709,
|
"lastModified": 1771000778,
|
||||||
"narHash": "sha256-M7fu9xe98wDOsW65RKzmNt5R5jSyM9wtRKZfwcGXjg4=",
|
"narHash": "sha256-Co3VdFeXl7abbNGEHEkjS9raX6P3yhigu162Mg6DV14=",
|
||||||
"owner": "linyinfeng",
|
"owner": "linyinfeng",
|
||||||
"repo": "angrr",
|
"repo": "angrr",
|
||||||
"rev": "35f13906a4a6410f92eefa9678526ac81321e816",
|
"rev": "6bea47aa18c2fb33aa9a363e452c037228893453",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -130,11 +130,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765990358,
|
"lastModified": 1771508520,
|
||||||
"narHash": "sha256-l8x0gU8mnYaGMl+gWrsSHKBJlZWD8KXJfHTkRlFiPI0=",
|
"narHash": "sha256-srt94sUlkaGEJHQg7k6gVrBF1QZcHUY/VBESjCgZmKI=",
|
||||||
"owner": "catppuccin",
|
"owner": "catppuccin",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "de1b60ca45a578f59f7d84c8d338b346017b2161",
|
"rev": "ec35c21e843e4748e60822cd5543983eb61dc87a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -150,11 +150,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766111011,
|
"lastModified": 1771363276,
|
||||||
"narHash": "sha256-OT1QEHVcwz10ZUbEgvXnS/o28kvElKvswaJR6rW+PxI=",
|
"narHash": "sha256-bW0untIUe6QMygBPABCMyrnaZCo8E4pKRQGZgLO9aGI=",
|
||||||
"owner": "Bali10050",
|
"owner": "Bali10050",
|
||||||
"repo": "Darkly",
|
"repo": "Darkly",
|
||||||
"rev": "fd6a59a0f63e411582359892b4adc84f5a26d96a",
|
"rev": "b37438a974e39dea0c04a6d64633eab2125b9370",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -193,11 +193,11 @@
|
|||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765435813,
|
"lastModified": 1771571526,
|
||||||
"narHash": "sha256-C6tT7K1Lx6VsYw1BY5S3OavtapUvEnDQtmQB5DSgbCc=",
|
"narHash": "sha256-JvL7TMheC4pih3VbxVlPSgqhGxLiaFUppcsJoDnOg9Y=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "fenix",
|
"repo": "fenix",
|
||||||
"rev": "6399553b7a300c77e7f07342904eb696a5b6bf9d",
|
"rev": "f677bc93ec72abced2828e2c7720df0f9c25f825",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -209,11 +209,11 @@
|
|||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764724327,
|
"lastModified": 1764873433,
|
||||||
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=",
|
"narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
|
||||||
"owner": "rafaelmardojai",
|
"owner": "rafaelmardojai",
|
||||||
"repo": "firefox-gnome-theme",
|
"repo": "firefox-gnome-theme",
|
||||||
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047",
|
"rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -225,11 +225,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765121682,
|
"lastModified": 1767039857,
|
||||||
"narHash": "sha256-4VBOP18BFeiPkyhy9o4ssBNQEvfvv1kXkasAYd0+rrA=",
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "65f23138d8d09a92e30f1e5c87611b23ef451bf3",
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -257,11 +257,11 @@
|
|||||||
"flake-compat_3": {
|
"flake-compat_3": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765121682,
|
"lastModified": 1767039857,
|
||||||
"narHash": "sha256-4VBOP18BFeiPkyhy9o4ssBNQEvfvv1kXkasAYd0+rrA=",
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "65f23138d8d09a92e30f1e5c87611b23ef451bf3",
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -278,11 +278,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765835352,
|
"lastModified": 1769996383,
|
||||||
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
|
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
|
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -298,11 +298,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765835352,
|
"lastModified": 1769996383,
|
||||||
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
|
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
|
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -359,11 +359,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763759067,
|
"lastModified": 1767609335,
|
||||||
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
"narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
"rev": "250481aafeb741edfe23d29195671c19b36b6dca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -475,11 +475,11 @@
|
|||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.gnome.org",
|
"host": "gitlab.gnome.org",
|
||||||
"lastModified": 1764524476,
|
"lastModified": 1767737596,
|
||||||
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=",
|
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22",
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -544,11 +544,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765980955,
|
"lastModified": 1771531206,
|
||||||
"narHash": "sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs+zlQ07dGQFk4=",
|
"narHash": "sha256-1R3Wx6KUkMb4x4E5UOhW9p6rqiexzSGGWxZqSHqW5n0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "89c9508bbe9b40d36b3dc206c2483ef176f15173",
|
"rev": "91be7cce763fa4022c7cf025a71b0c366d1b6e77",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -559,6 +559,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_2": {
|
"home-manager_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"impermanence",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768598210,
|
||||||
|
"narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "c47b2cc64a629f8e075de52e4742de688f930dc6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"zen",
|
"zen",
|
||||||
@@ -566,11 +587,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765682243,
|
"lastModified": 1771102945,
|
||||||
"narHash": "sha256-yeCxFV/905Wr91yKt5zrVvK6O2CVXWRMSrxqlAZnLp0=",
|
"narHash": "sha256-e5NfW8NhC3qChR8bHVni/asrig/ZFzd1wzpq+cEE/tg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "58bf3ecb2d0bba7bdf363fc8a6c4d49b4d509d03",
|
"rev": "ff5e5d882c51f9a032479595cbab40fd04f56399",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -580,12 +601,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanence": {
|
"impermanence": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager_2",
|
||||||
|
"nixpkgs": "nixpkgs_4"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737831083,
|
"lastModified": 1769548169,
|
||||||
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
|
"narHash": "sha256-03+JxvzmfwRu+5JafM0DLbxgHttOQZkUtDWBmeUkN8Y=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "impermanence",
|
"repo": "impermanence",
|
||||||
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
|
"rev": "7b1d382faf603b6d264f58627330f9faa5cba149",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -597,11 +622,11 @@
|
|||||||
"infuse": {
|
"infuse": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738726976,
|
"lastModified": 1768766368,
|
||||||
"narHash": "sha256-N+u3vnK3zyXLUuDj/vr62r9tM7uarhKVCaLHWxjo/YY=",
|
"narHash": "sha256-GW7S5dsFiQChSbGESrkFyNSzDLKGNH3H0EMeY+NLefY=",
|
||||||
"ref": "refs/heads/trunk",
|
"ref": "refs/heads/trunk",
|
||||||
"rev": "c8fb7397039215e1444c835e36a0da7dc3c743f8",
|
"rev": "e837ece1b9de6ebcb7abd261f54a09bad3a2f820",
|
||||||
"revCount": 48,
|
"revCount": 49,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/amjoseph/infuse.nix"
|
"url": "https://codeberg.org/amjoseph/infuse.nix"
|
||||||
},
|
},
|
||||||
@@ -675,17 +700,17 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"niri-stable": "niri-stable",
|
"niri-stable": "niri-stable",
|
||||||
"niri-unstable": "niri-unstable",
|
"niri-unstable": "niri-unstable",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766090778,
|
"lastModified": 1771514840,
|
||||||
"narHash": "sha256-e1SOJYHe5IbKFIOpWswB/4nIog1Zx5iXA4YB49XTFxE=",
|
"narHash": "sha256-t3WbZvwoDj/75YDX/nwkZuxanZLZaWr9meSfKswaN6g=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "d06ab0308d797dc4b2f9025d5952cca90afd11a7",
|
"rev": "4f69ab280e9bb34e2c0b67fdfa6f0978a170ef56",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -714,11 +739,11 @@
|
|||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766085543,
|
"lastModified": 1771305475,
|
||||||
"narHash": "sha256-96X+37m2HH8IG3BzXEN3d4eHeUbiu9g1Q+KJQRX/Jpw=",
|
"narHash": "sha256-lqweVTwHhYc+9T33cysp38gVwxaibGJHriOPZXWyhCY=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "c4462d0c7fddfc11c9e98d43e3ef68a5b3c844ca",
|
"rev": "a2a52911757cb3b497db9407592f9b4c439571ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -772,11 +797,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765684049,
|
"lastModified": 1770922915,
|
||||||
"narHash": "sha256-svCS2r984qEowMT0y3kCrsD/m0J6zaF5I/UusS7QaH0=",
|
"narHash": "sha256-6J/JoK9iL7sHvKJcGW2KId2agaKv1OGypsa7kN+ZBD4=",
|
||||||
"owner": "nix-darwin",
|
"owner": "nix-darwin",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "9b628e171bfaea1a3d1edf31eee46251e0fe4a33",
|
"rev": "6c5a56295d2a24e43bcd8af838def1b9a95746b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -815,11 +840,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765841014,
|
"lastModified": 1771563879,
|
||||||
"narHash": "sha256-55V0AJ36V5Egh4kMhWtDh117eE3GOjwq5LhwxDn9eHg=",
|
"narHash": "sha256-vA5hocvdGhr+jfBN7A7ogeZqIz2qx01EixXwdVsQcnE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "be4af8042e7a61fa12fda58fe9a3b3babdefe17b",
|
"rev": "379d20c55f552e91fb9f3f0382e4a97d3f452943",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -858,11 +883,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766141189,
|
"lastModified": 1771575107,
|
||||||
"narHash": "sha256-BpAJ4bP8PIubBDPgaBIHso54jywR7mm8IlpTihW5oEE=",
|
"narHash": "sha256-RMiV8PRAuFFtJ0l6EZcADdBW1JP+DUIPpDXnMJp0w/k=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "007e6ccf11c5526e62b534f7360336b9b3b86e20",
|
"rev": "6b0f198fe0363867d9f8cea387a3b9212b468839",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -874,11 +899,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765838191,
|
"lastModified": 1771419570,
|
||||||
"narHash": "sha256-m5KWt1nOm76ILk/JSCxBM4MfK3rYY7Wq9/TZIIeGnT8=",
|
"narHash": "sha256-bxAlQgre3pcQcaRUm/8A0v/X8d2nhfraWSFqVmMcBcU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c6f52ebd45e5925c188d1a20119978aa4ffd5ef6",
|
"rev": "6d41bc27aaf7b6a3ba6b169db3bd5d6159cfaa47",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -890,11 +915,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766138279,
|
"lastModified": 1771574726,
|
||||||
"narHash": "sha256-T331jrvONqbuuhc9dz0sG0IOYA6KKcA99qgDoIYjExo=",
|
"narHash": "sha256-D1PA3xQv/s4W3lnR9yJFSld8UOLr0a/cBWMQMXS+1Qg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "77aec6c71e9521cafade0e3998d04f1a9961aeab",
|
"rev": "c217913993d6c6f6805c3b1a3bda5e639adfde6d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -906,11 +931,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765779637,
|
"lastModified": 1771369470,
|
||||||
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
|
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
|
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -954,15 +979,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765779637,
|
"lastModified": 1768564909,
|
||||||
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
|
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
@@ -970,16 +995,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761236834,
|
"lastModified": 1771369470,
|
||||||
"narHash": "sha256-+pthv6hrL5VLW2UqPdISGuLiUZ6SnAXdd2DdUE+fV2Q=",
|
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d5faa84122bc0a1fd5d378492efce4e289f8eac1",
|
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -991,16 +1016,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766068587,
|
"lastModified": 1771375091,
|
||||||
"narHash": "sha256-nlimljubh2NCfSllK5QGEgqcJO92nT5JXz4Bpk5m6hw=",
|
"narHash": "sha256-Y5P0RYO9NKxa4UZBoGmmxtz3mEwJrBOfvdLJRGjV2Os=",
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"rev": "a75fdead1aa5eeeef7f5394cb8ca4dbd6fe6d1a4",
|
"rev": "dbfe3634df0c57faf9772cecae1f2e92bd04de66",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"ref": "v3.7.1",
|
"ref": "v4.5.0",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -1017,11 +1042,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764773531,
|
"lastModified": 1767810917,
|
||||||
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=",
|
"narHash": "sha256-ZKqhk772+v/bujjhla9VABwcvz+hB2IaRyeLT6CFnT0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "1d9616689e98beded059ad0384b9951e967a17fa",
|
"rev": "dead29c804adc928d3a69dfe7f9f12d0eec1f1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1072,6 +1097,7 @@
|
|||||||
"plant": "plant",
|
"plant": "plant",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
|
"system76-scheduler-niri": "system76-scheduler-niri",
|
||||||
"treefmt": "treefmt",
|
"treefmt": "treefmt",
|
||||||
"zen": "zen"
|
"zen": "zen"
|
||||||
}
|
}
|
||||||
@@ -1079,11 +1105,11 @@
|
|||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765400135,
|
"lastModified": 1771505899,
|
||||||
"narHash": "sha256-D3+4hfNwUhG0fdCpDhOASLwEQ1jKuHi4mV72up4kLQM=",
|
"narHash": "sha256-MdRGkz3huAAhsHGnRv0XZV4RG/yO9HOrmhCbOclqcIk=",
|
||||||
"owner": "rust-lang",
|
"owner": "rust-lang",
|
||||||
"repo": "rust-analyzer",
|
"repo": "rust-analyzer",
|
||||||
"rev": "fface27171988b3d605ef45cf986c25533116f7e",
|
"rev": "d8e0e96766968bfebca2360ae4cb8f08d7bbab18",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1100,11 +1126,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765863190,
|
"lastModified": 1771575468,
|
||||||
"narHash": "sha256-wnRrh24BUdZL2JPk4i3fjHM6ru7lWBrL9nvYcdIpImw=",
|
"narHash": "sha256-4FMXl7wWiGesb7Udh5CBZ6LtisHoDszwPn9dpUiUhS0=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "d6c7d245abf3ed4290e80ebd45d8479c4fd2d207",
|
"rev": "6f54775bc534535d6a206135bca7455dc5c1a7d9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1135,11 +1161,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765897595,
|
"lastModified": 1771541829,
|
||||||
"narHash": "sha256-NgTRxiEC5y96zrhdBygnY+mSzk5FWMML39PcRGVJmxg=",
|
"narHash": "sha256-jtrIUcFoZuS6R4P18907H0pPyHaGoF5Tomez7j3KIHs=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "e6829552d4bb659ebab00f08c61d8c62754763f3",
|
"rev": "cb73f89d3ecef7e790c42f828e2228ff82975de5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1148,6 +1174,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"system76-scheduler-niri": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769878625,
|
||||||
|
"narHash": "sha256-cOLzS70XjXcxPi4vkTjbvSBOZ5o+CmzkLXX/AgtJMRQ=",
|
||||||
|
"owner": "Kirottu",
|
||||||
|
"repo": "system76-scheduler-niri",
|
||||||
|
"rev": "9fe30d78748bd8f655c3f8ec8b3ce8cd25577182",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Kirottu",
|
||||||
|
"repo": "system76-scheduler-niri",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@@ -1214,11 +1260,11 @@
|
|||||||
"tinted-schemes": {
|
"tinted-schemes": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763914658,
|
"lastModified": 1767710407,
|
||||||
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=",
|
"narHash": "sha256-+W1EB79Jl0/gm4JqmO0Nuc5C7hRdp4vfsV/VdzI+des=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "schemes",
|
"repo": "schemes",
|
||||||
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c",
|
"rev": "2800e2b8ac90f678d7e4acebe4fa253f602e05b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1230,11 +1276,11 @@
|
|||||||
"tinted-tmux": {
|
"tinted-tmux": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764465359,
|
"lastModified": 1767489635,
|
||||||
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=",
|
"narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "tinted-tmux",
|
"repo": "tinted-tmux",
|
||||||
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa",
|
"rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1246,11 +1292,11 @@
|
|||||||
"tinted-zed": {
|
"tinted-zed": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764464512,
|
"lastModified": 1767488740,
|
||||||
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=",
|
"narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-zed",
|
"repo": "base16-zed",
|
||||||
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a",
|
"rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1261,14 +1307,16 @@
|
|||||||
},
|
},
|
||||||
"treefmt": {
|
"treefmt": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766000401,
|
"lastModified": 1770228511,
|
||||||
"narHash": "sha256-+cqN4PJz9y0JQXfAK5J1drd0U05D5fcAGhzhfVrDlsI=",
|
"narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "42d96e75aa56a3f70cab7e7dc4a32868db28e8fd",
|
"rev": "337a4fe074be1042a35086f15481d763b8ddc0e7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1285,11 +1333,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762938485,
|
"lastModified": 1770228511,
|
||||||
"narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=",
|
"narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4",
|
"rev": "337a4fe074be1042a35086f15481d763b8ddc0e7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1318,11 +1366,11 @@
|
|||||||
"xwayland-satellite-unstable": {
|
"xwayland-satellite-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765935116,
|
"lastModified": 1771195969,
|
||||||
"narHash": "sha256-lNyckAdrhNKXsi9pNOBYajntNFlWs+BITVoIZuNuwX0=",
|
"narHash": "sha256-BUE41HjLIGPjq3U8VXPjf8asH8GaMI7FYdgrIHKFMXA=",
|
||||||
"owner": "Supreeeme",
|
"owner": "Supreeeme",
|
||||||
"repo": "xwayland-satellite",
|
"repo": "xwayland-satellite",
|
||||||
"rev": "979eab242e60cf481a31d9de508a1bdaf2dcf7d4",
|
"rev": "536bd32efc935bf876d6de385ec18a1b715c9358",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1333,17 +1381,17 @@
|
|||||||
},
|
},
|
||||||
"zen": {
|
"zen": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_3",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766032508,
|
"lastModified": 1771562861,
|
||||||
"narHash": "sha256-7MHR94mOoa5/s4NBrpsXWaNNzrZyRC0OwRwEobp1wzI=",
|
"narHash": "sha256-6oT3rF68W8HERLXvFfEkpz8xpAVLKZsY1ZuR/BbDTO8=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "a7f58a9e3481804915d75a9c86527bca6d9dafb3",
|
"rev": "7783a3adf3d5a9599a82c75a44c7482e70398ac2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
13
flake.nix
13
flake.nix
@@ -55,6 +55,10 @@
|
|||||||
url = "github:danth/stylix";
|
url = "github:danth/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
system76-scheduler-niri = {
|
||||||
|
url = "github:Kirottu/system76-scheduler-niri";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
# keep-sorted end
|
# keep-sorted end
|
||||||
|
|
||||||
# Useful software
|
# Useful software
|
||||||
@@ -77,7 +81,7 @@
|
|||||||
};
|
};
|
||||||
niri.url = "github:sodiboo/niri-flake";
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
noctalia = {
|
noctalia = {
|
||||||
url = "github:noctalia-dev/noctalia-shell/v3.7.1";
|
url = "github:noctalia-dev/noctalia-shell/v4.5.0";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
zen.inputs.nixpkgs.follows = "nixpkgs";
|
zen.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -85,7 +89,10 @@
|
|||||||
# keep-sorted end
|
# keep-sorted end
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
treefmt.url = "github:numtide/treefmt-nix";
|
treefmt = {
|
||||||
|
url = "github:numtide/treefmt-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
plant = {
|
plant = {
|
||||||
url = "git+ssh://git@git.imxyy.top:2222/imxyy1soope1/HF-plant.git?rev=08dc0b3889797eb3618c7475c3c367ec0e5fdf40";
|
url = "git+ssh://git@git.imxyy.top:2222/imxyy1soope1/HF-plant.git?rev=08dc0b3889797eb3618c7475c3c367ec0e5fdf40";
|
||||||
flake = false;
|
flake = false;
|
||||||
@@ -111,8 +118,8 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./flake/hosts.nix
|
./flake/hosts.nix
|
||||||
|
./flake/pkgs.nix
|
||||||
./treefmt.nix
|
./treefmt.nix
|
||||||
./pkgs
|
|
||||||
./overlays
|
./overlays
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -10,18 +10,18 @@
|
|||||||
let
|
let
|
||||||
vars = import ../vars.nix;
|
vars = import ../vars.nix;
|
||||||
pkgsModule = {
|
pkgsModule = {
|
||||||
nixpkgs = pkgsParams // {
|
nixpkgs = pkgsParams;
|
||||||
inherit (config.nixpkgs.hostPlatform) system;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
hmModule = {
|
hmModule = {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
sharedModules = [
|
sharedModules = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
# keep-sorted start
|
||||||
inputs.impermanence.nixosModules.home-manager.impermanence
|
|
||||||
inputs.stylix.homeModules.stylix
|
|
||||||
inputs.noctalia.homeModules.default
|
inputs.noctalia.homeModules.default
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
inputs.stylix.homeModules.stylix
|
||||||
|
inputs.system76-scheduler-niri.homeModules.default
|
||||||
inputs.zen.homeModules.beta
|
inputs.zen.homeModules.beta
|
||||||
|
# keep-sorted end
|
||||||
{
|
{
|
||||||
stylix.overlays.enable = lib.mkForce false;
|
stylix.overlays.enable = lib.mkForce false;
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ in
|
|||||||
type = lib.types.listOf lib.types.deferredModule;
|
type = lib.types.listOf lib.types.deferredModule;
|
||||||
default = (
|
default = (
|
||||||
lib.umport {
|
lib.umport {
|
||||||
paths = [ ../config/hosts/${name} ];
|
paths = [ ../hosts/${name} ];
|
||||||
extraExcludePredicate = path: lib.hasInfix "/_" (toString path);
|
extraExcludePredicate = path: lib.hasInfix "/_" (toString path);
|
||||||
recursive = true;
|
recursive = true;
|
||||||
}
|
}
|
||||||
@@ -124,12 +124,14 @@ in
|
|||||||
(lib.mkAliasOptionModule [ "my" "hm" ] [ "home-manager" "users" vars.username ])
|
(lib.mkAliasOptionModule [ "my" "hm" ] [ "home-manager" "users" vars.username ])
|
||||||
|
|
||||||
# Upstream modules
|
# Upstream modules
|
||||||
inputs.sops-nix.nixosModules.sops
|
# keep-sorted start
|
||||||
inputs.impermanence.nixosModules.impermanence
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
inputs.niri.nixosModules.niri
|
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
|
||||||
inputs.angrr.nixosModules.angrr
|
inputs.angrr.nixosModules.angrr
|
||||||
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
inputs.impermanence.nixosModules.impermanence
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
# keep-sorted end
|
||||||
|
|
||||||
# pkgs and home-manager configuration
|
# pkgs and home-manager configuration
|
||||||
pkgsModule
|
pkgsModule
|
||||||
|
|||||||
@@ -24,19 +24,16 @@
|
|||||||
flake.setNixPath = false;
|
flake.setNixPath = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem =
|
perSystem =
|
||||||
{
|
{
|
||||||
system,
|
system,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
_module.args.pkgs = import inputs.nixpkgs (pkgsParams // { inherit system; });
|
_module.args.pkgs = import inputs.nixpkgs (pkgsParams // { inherit system; });
|
||||||
|
|
||||||
legacyPackages = pkgs;
|
legacyPackages = pkgs;
|
||||||
|
|
||||||
packages = lib.genAttrs (builtins.attrNames (config.flake.overlays.additions pkgs pkgs)) (
|
packages = lib.genAttrs (builtins.attrNames (config.flake.overlays.additions pkgs pkgs)) (
|
||||||
pkg: pkgs.${pkg}
|
pkg: pkgs.${pkg}
|
||||||
);
|
);
|
||||||
@@ -44,18 +41,15 @@
|
|||||||
|
|
||||||
flake.overlays.additions =
|
flake.overlays.additions =
|
||||||
final: prev:
|
final: prev:
|
||||||
let
|
with lib.haumea;
|
||||||
paths = [
|
load {
|
||||||
./fcitx5-lightly
|
src = ../pkgs;
|
||||||
./mono-gtk-theme.nix
|
loader = [
|
||||||
./ttf-wps-fonts.nix
|
{
|
||||||
./wps-office-fonts.nix
|
matches = str: builtins.match ".*\\.nix" str != null;
|
||||||
];
|
loader = _: path: final.callPackage path { };
|
||||||
in
|
}
|
||||||
builtins.listToAttrs (
|
];
|
||||||
map (path: {
|
transformer = transformers.liftDefault;
|
||||||
name = builtins.elemAt (lib.splitString "." (builtins.baseNameOf path)) 0;
|
};
|
||||||
value = final.callPackage path { };
|
|
||||||
}) paths
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
secrets,
|
secrets,
|
||||||
|
hosts,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@@ -30,13 +32,7 @@
|
|||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
description = "nix remote build user";
|
description = "nix remote build user";
|
||||||
group = "nixremote";
|
group = "nixremote";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = (lib.mapAttrsToList (host: key: "${key} ${host}") hosts) ++ [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBWOy0QmAyxENg/O5m3cus8U3c9jCLioivwcWsh5/a82 imxyy-hisense-pad"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK8pivvE8PMtsOxmccfNhH/4KehDKhBfUfJbQZxo/SZT imxyy-ace5"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKALTBn/QSGcSPgMg0ViSazFcaA0+nEF05EJpjbsI6dE imxyy_soope_@imxyy-cloudwin"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb5G/ieEYBOng66YeyttBQLThyM6W//z2POsNyq4Rw/ imxyy@imxyy-nix-x16"
|
|
||||||
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIENauvvhVMLsUwH9cPYsvnOg7VCL3a4yEiKm8I524TE efl@efl-nix"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIENauvvhVMLsUwH9cPYsvnOg7VCL3a4yEiKm8I524TE efl@efl-nix"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -7,12 +7,13 @@
|
|||||||
};
|
};
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
tuwunel = {
|
tuwunel = {
|
||||||
image = "jevolk/tuwunel:latest";
|
image = "ghcr.io/matrix-construct/tuwunel:latest";
|
||||||
volumes = [
|
volumes = [
|
||||||
"tuwunel_db:/var/lib/tuwunel"
|
"tuwunel_db:/var/lib/tuwunel"
|
||||||
];
|
];
|
||||||
ports = [ "6167:6167" ];
|
ports = [ "6167:6167" ];
|
||||||
networks = [ "podman" ];
|
networks = [ "podman" ];
|
||||||
|
extraOptions = [ "--pids-limit=-1" ];
|
||||||
environment = {
|
environment = {
|
||||||
TUWUNEL_SERVER_NAME = "mtx.eflx.top";
|
TUWUNEL_SERVER_NAME = "mtx.eflx.top";
|
||||||
TUWUNEL_PORT = "6167";
|
TUWUNEL_PORT = "6167";
|
||||||
@@ -18,15 +18,12 @@ in
|
|||||||
];
|
];
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_latest;
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_stable;
|
||||||
services.scx = {
|
|
||||||
enable = true;
|
|
||||||
scheduler = "scx_rusty";
|
|
||||||
};
|
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.tmp.useTmpfs = true;
|
boot.tmp.useTmpfs = true;
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
boot.zfs = {
|
boot.zfs = {
|
||||||
|
package = pkgs.zfs_unstable;
|
||||||
extraPools = [ "data" ];
|
extraPools = [ "data" ];
|
||||||
forceImportRoot = false;
|
forceImportRoot = false;
|
||||||
};
|
};
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
|
hosts,
|
||||||
secrets,
|
secrets,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -127,18 +128,12 @@
|
|||||||
PasswordAuthentication = true;
|
PasswordAuthentication = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
users.users.root.openssh.authorizedKeys.keys = lib.mapAttrsToList (
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix"
|
host: key: "${key} ${host}"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBWOy0QmAyxENg/O5m3cus8U3c9jCLioivwcWsh5/a82 imxyy-hisense-pad"
|
) hosts;
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK8pivvE8PMtsOxmccfNhH/4KehDKhBfUfJbQZxo/SZT imxyy-ace5"
|
users.users.${username}.openssh.authorizedKeys.keys = lib.mapAttrsToList (
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb5G/ieEYBOng66YeyttBQLThyM6W//z2POsNyq4Rw/ imxyy@imxyy-nix-x16"
|
host: key: "${key} ${host}"
|
||||||
];
|
) hosts;
|
||||||
users.users.${username}.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBWOy0QmAyxENg/O5m3cus8U3c9jCLioivwcWsh5/a82 imxyy-hisense-pad"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK8pivvE8PMtsOxmccfNhH/4KehDKhBfUfJbQZxo/SZT imxyy-ace5"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb5G/ieEYBOng66YeyttBQLThyM6W//z2POsNyq4Rw/ imxyy@imxyy-nix-x16"
|
|
||||||
];
|
|
||||||
|
|
||||||
sops.secrets.dae-imxyy-nix-server = {
|
sops.secrets.dae-imxyy-nix-server = {
|
||||||
sopsFile = secrets.dae-imxyy-nix-server;
|
sopsFile = secrets.dae-imxyy-nix-server;
|
||||||
@@ -295,21 +290,6 @@
|
|||||||
customDomains = [ "coder.imxyy.top" ];
|
customDomains = [ "coder.imxyy.top" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
name = "grafana-http";
|
|
||||||
type = "http";
|
|
||||||
localIP = "127.0.0.1";
|
|
||||||
localPort = 80;
|
|
||||||
customDomains = [ "grafana.imxyy.top" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "grafana-https";
|
|
||||||
type = "https";
|
|
||||||
localIP = "127.0.0.1";
|
|
||||||
localPort = 443;
|
|
||||||
customDomains = [ "grafana.imxyy.top" ];
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "siyuan-http";
|
name = "siyuan-http";
|
||||||
type = "http";
|
type = "http";
|
||||||
@@ -504,7 +484,6 @@
|
|||||||
"git"
|
"git"
|
||||||
"vault"
|
"vault"
|
||||||
"coder"
|
"coder"
|
||||||
"grafana"
|
|
||||||
"matrix"
|
"matrix"
|
||||||
"note"
|
"note"
|
||||||
"oidc"
|
"oidc"
|
||||||
19
hosts/imxyy-nix-wsl/home.nix
Normal file
19
hosts/imxyy-nix-wsl/home.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ lib, username, ... }:
|
||||||
|
{
|
||||||
|
my.hm = {
|
||||||
|
programs.zsh.shellAliases = {
|
||||||
|
localproxy_on = "export http_proxy=http://192.168.128.1:7890 https_proxy=http://192.168.128.1:7890 all_proxy=socks://192.168.128.1:7890";
|
||||||
|
};
|
||||||
|
programs.fish.shellAliases = {
|
||||||
|
localproxy_on = "export http_proxy=http://192.168.128.1:7890 https_proxy=http://192.168.128.1:7890 all_proxy=socks://192.168.128.1:7890";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
my = {
|
||||||
|
sops.sshKeyFile = "/home/${username}/.ssh/id_ed25519";
|
||||||
|
coding.all.enable = true;
|
||||||
|
coding.editor.vscode.enable = lib.mkForce false;
|
||||||
|
cli.misc.enable = true;
|
||||||
|
xdg.enable = true;
|
||||||
|
cli.media.all.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -29,10 +29,6 @@ in
|
|||||||
"fs.file-max" = 9223372036854775807;
|
"fs.file-max" = 9223372036854775807;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.scx = {
|
|
||||||
enable = true;
|
|
||||||
scheduler = "scx_rusty";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = btrfs;
|
device = btrfs;
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
anki
|
anki
|
||||||
|
|
||||||
ayugram-desktop
|
ayugram-desktop
|
||||||
signal-desktop
|
signal-desktop-wayland
|
||||||
element-desktop
|
element-desktop
|
||||||
fractal
|
fractal
|
||||||
qq
|
qq-wayland
|
||||||
wechat
|
wechat
|
||||||
|
|
||||||
gnome-clocks
|
gnome-clocks
|
||||||
@@ -30,6 +30,9 @@
|
|||||||
PATH = "/home/${username}/bin:$PATH";
|
PATH = "/home/${username}/bin:$PATH";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.fish.interactiveShellInit = ''
|
||||||
|
set -gp PATH $HOME/bin
|
||||||
|
'';
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
environment.STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
|
environment.STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
|
||||||
@@ -61,8 +64,8 @@
|
|||||||
defaultApplications =
|
defaultApplications =
|
||||||
let
|
let
|
||||||
browser = [ config.my.desktop.browser.default.desktop ];
|
browser = [ config.my.desktop.browser.default.desktop ];
|
||||||
editor = [ "codium.desktop" ];
|
editor = [ "nvim.desktop" ];
|
||||||
imageviewer = [ "org.gnome.Shotwell-Viewer.desktop" ];
|
imageviewer = [ "org.gnome.Loupe.desktop" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
||||||
@@ -71,7 +74,6 @@
|
|||||||
|
|
||||||
"text/*" = editor;
|
"text/*" = editor;
|
||||||
"application/json" = editor;
|
"application/json" = editor;
|
||||||
"text/html" = editor;
|
|
||||||
"text/xml" = editor;
|
"text/xml" = editor;
|
||||||
"application/xml" = editor;
|
"application/xml" = editor;
|
||||||
"application/xhtml+xml" = editor;
|
"application/xhtml+xml" = editor;
|
||||||
@@ -84,6 +86,7 @@
|
|||||||
"application/x-extension-xht" = editor;
|
"application/x-extension-xht" = editor;
|
||||||
"application/x-extension-xhtml" = editor;
|
"application/x-extension-xhtml" = editor;
|
||||||
|
|
||||||
|
"text/html" = browser;
|
||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/ftp" = browser;
|
"x-scheme-handler/ftp" = browser;
|
||||||
"x-scheme-handler/http" = browser;
|
"x-scheme-handler/http" = browser;
|
||||||
@@ -36,10 +36,6 @@ in
|
|||||||
"resume_offset=6444127"
|
"resume_offset=6444127"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.scx = {
|
|
||||||
enable = true;
|
|
||||||
scheduler = "scx_rusty";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = btrfs;
|
device = btrfs;
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
anki
|
anki
|
||||||
|
|
||||||
ayugram-desktop
|
ayugram-desktop
|
||||||
signal-desktop
|
signal-desktop-wayland
|
||||||
element-desktop
|
element-desktop
|
||||||
fractal
|
fractal
|
||||||
qq
|
qq-wayland
|
||||||
wechat
|
wechat
|
||||||
|
|
||||||
gnome-clocks
|
gnome-clocks
|
||||||
@@ -35,10 +35,16 @@
|
|||||||
no_proxy = "192.168.3.0/24";
|
no_proxy = "192.168.3.0/24";
|
||||||
PATH = "/home/${username}/bin:$PATH";
|
PATH = "/home/${username}/bin:$PATH";
|
||||||
};
|
};
|
||||||
profileExtra = ''
|
};
|
||||||
if [ `tty` = "/dev/tty6" ]; then
|
programs.fish = {
|
||||||
clear
|
shellAliases = {
|
||||||
fi
|
cageterm = "cage -m DP-1 -s -- alacritty -o font.size=20";
|
||||||
|
cagefoot = "cage -m DP-1 -s -- foot --font=monospace:size=20";
|
||||||
|
cagekitty = "cage -m DP-1 -s -- kitty -o font_size=20";
|
||||||
|
};
|
||||||
|
interactiveShellInit = ''
|
||||||
|
set -g no_proxy "192.168.3.0/24"
|
||||||
|
set -gp PATH $HOME/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -90,8 +96,8 @@
|
|||||||
defaultApplications =
|
defaultApplications =
|
||||||
let
|
let
|
||||||
browser = [ config.my.desktop.browser.default.desktop ];
|
browser = [ config.my.desktop.browser.default.desktop ];
|
||||||
editor = [ "codium.desktop" ];
|
editor = [ "nvim.desktop" ];
|
||||||
imageviewer = [ "org.gnome.Shotwell-Viewer.desktop" ];
|
imageviewer = [ "org.gnome.Loupe.desktop" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
||||||
@@ -100,7 +106,6 @@
|
|||||||
|
|
||||||
"text/*" = editor;
|
"text/*" = editor;
|
||||||
"application/json" = editor;
|
"application/json" = editor;
|
||||||
"text/html" = editor;
|
|
||||||
"text/xml" = editor;
|
"text/xml" = editor;
|
||||||
"application/xml" = editor;
|
"application/xml" = editor;
|
||||||
"application/xhtml+xml" = editor;
|
"application/xhtml+xml" = editor;
|
||||||
@@ -113,6 +118,7 @@
|
|||||||
"application/x-extension-xht" = editor;
|
"application/x-extension-xht" = editor;
|
||||||
"application/x-extension-xhtml" = editor;
|
"application/x-extension-xhtml" = editor;
|
||||||
|
|
||||||
|
"text/html" = browser;
|
||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/ftp" = browser;
|
"x-scheme-handler/ftp" = browser;
|
||||||
"x-scheme-handler/http" = browser;
|
"x-scheme-handler/http" = browser;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{ lib, inputs }:
|
{ lib, inputs }:
|
||||||
lib.extend (
|
lib.extend (
|
||||||
self: super: {
|
self: super: {
|
||||||
umport = import ./umport.nix { lib = self; };
|
|
||||||
inherit (inputs.home-manager.lib) hm;
|
inherit (inputs.home-manager.lib) hm;
|
||||||
|
umport = import ./umport.nix { lib = self; };
|
||||||
haumea = inputs.haumea.lib;
|
haumea = inputs.haumea.lib;
|
||||||
infuse = (import inputs.infuse { inherit lib; }).v1.infuse;
|
infuse = (import inputs.infuse { inherit lib; }).v1.infuse;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,9 +28,7 @@ let
|
|||||||
|| extraExcludePredicate path;
|
|| extraExcludePredicate path;
|
||||||
in
|
in
|
||||||
unique (
|
unique (
|
||||||
(filter
|
(filter (file: pathIsRegularFile file && hasSuffix ".nix" (toString file) && !isExcluded file) (
|
||||||
(file: pathIsRegularFile file && hasSuffix ".nix" (builtins.toString file) && !isExcluded file)
|
|
||||||
(
|
|
||||||
concatMap (
|
concatMap (
|
||||||
path:
|
path:
|
||||||
if recursive then
|
if recursive then
|
||||||
@@ -40,8 +38,7 @@ let
|
|||||||
name: type: path + (if type == "directory" then "/${name}/default.nix" else "/${name}")
|
name: type: path + (if type == "directory" then "/${name}/default.nix" else "/${name}")
|
||||||
) (builtins.readDir path)
|
) (builtins.readDir path)
|
||||||
) (unique (if path == null then paths else [ path ] ++ paths))
|
) (unique (if path == null then paths else [ path ] ++ paths))
|
||||||
)
|
))
|
||||||
)
|
|
||||||
++ (if recursive then concatMap (path: toList path) (unique include) else unique include)
|
++ (if recursive then concatMap (path: toList path) (unique include) else unique include)
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ in
|
|||||||
monitor.all.enable = true;
|
monitor.all.enable = true;
|
||||||
shell.all.enable = true;
|
shell.all.enable = true;
|
||||||
vcs.all.enable = true;
|
vcs.all.enable = true;
|
||||||
|
|
||||||
|
shpool.enable = true;
|
||||||
|
tmux.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,8 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my = {
|
my = {
|
||||||
hm = {
|
hm = {
|
||||||
home.packages = with pkgs; [
|
home.packages = [
|
||||||
playerctl
|
pkgs.go-musicfox
|
||||||
go-musicfox
|
|
||||||
];
|
];
|
||||||
sops.secrets.go-musicfox = {
|
sops.secrets.go-musicfox = {
|
||||||
sopsFile = secrets.go-musicfox;
|
sopsFile = secrets.go-musicfox;
|
||||||
|
|||||||
@@ -30,10 +30,14 @@ in
|
|||||||
xz
|
xz
|
||||||
p7zip
|
p7zip
|
||||||
unrar-free
|
unrar-free
|
||||||
|
ouch
|
||||||
|
|
||||||
pciutils
|
pciutils
|
||||||
usbutils
|
usbutils
|
||||||
|
|
||||||
|
dust
|
||||||
|
dysk
|
||||||
|
|
||||||
lsof
|
lsof
|
||||||
|
|
||||||
nmap
|
nmap
|
||||||
@@ -51,6 +55,13 @@ in
|
|||||||
".config/television/cable"
|
".config/television/cable"
|
||||||
];
|
];
|
||||||
my.hm = {
|
my.hm = {
|
||||||
|
programs.fish.shellAliases = {
|
||||||
|
x = "ouch d";
|
||||||
|
};
|
||||||
|
programs.zsh.shellAliases = {
|
||||||
|
x = "ouch d";
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
aria2
|
aria2
|
||||||
@@ -59,6 +70,7 @@ in
|
|||||||
fastfetch
|
fastfetch
|
||||||
fd
|
fd
|
||||||
fzf
|
fzf
|
||||||
|
jq
|
||||||
keep-sorted
|
keep-sorted
|
||||||
lsd
|
lsd
|
||||||
neofetch
|
neofetch
|
||||||
@@ -67,23 +79,6 @@ in
|
|||||||
typos
|
typos
|
||||||
# keep-sorted end
|
# keep-sorted end
|
||||||
];
|
];
|
||||||
programs.tmux = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = "set-option -g mouse on";
|
|
||||||
plugins = [
|
|
||||||
(pkgs.tmuxPlugins.mkTmuxPlugin {
|
|
||||||
pluginName = "tokyo-night-tmux";
|
|
||||||
rtpFilePath = "tokyo-night.tmux";
|
|
||||||
version = "legacy";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "janoamaral";
|
|
||||||
repo = "tokyo-night-tmux";
|
|
||||||
rev = "16469dfad86846138f594ceec780db27039c06cd";
|
|
||||||
hash = "sha256-EKCgYan0WayXnkSb2fDJxookdBLW0XBKi2hf/YISwJE=";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
programs.tealdeer = {
|
programs.tealdeer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutoUpdates = true;
|
enableAutoUpdates = true;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -21,9 +20,6 @@ in
|
|||||||
homeDirs = [
|
homeDirs = [
|
||||||
".local/share/fish"
|
".local/share/fish"
|
||||||
];
|
];
|
||||||
homeFiles = [
|
|
||||||
".config/fish/fish_variables"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
my.hm = {
|
my.hm = {
|
||||||
xdg.configFile."fish/themes/tokyonight_storm.theme".source = builtins.fetchurl {
|
xdg.configFile."fish/themes/tokyonight_storm.theme".source = builtins.fetchurl {
|
||||||
@@ -33,36 +29,16 @@ in
|
|||||||
programs.starship.enableFishIntegration = false;
|
programs.starship.enableFishIntegration = false;
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "extract";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "hexclover";
|
|
||||||
repo = "fish-extract-ng";
|
|
||||||
tag = "v0.1";
|
|
||||||
hash = "sha256-yef5NX4HdZ3ab/2AzNrvvhi0CbeTvXYKZmyH76gIpyk=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "starship";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "tyler-stefani";
|
|
||||||
repo = "starship";
|
|
||||||
rev = "fff9bc53ef9997775d31d860246af88cd7721ec8";
|
|
||||||
hash = "sha256-S/Vt/jfYTCrMXXfu6YUIv+d0RoT7GYG1isayhtHc7DA=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
la = "lsd -lah";
|
la = "lsd -lah";
|
||||||
ls = "lsd";
|
ls = "lsd";
|
||||||
svim = "doasedit";
|
svim = "doasedit";
|
||||||
nf = "fastfetch";
|
nf = "fastfetch";
|
||||||
tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle";
|
|
||||||
};
|
};
|
||||||
interactiveShellInit = lib.mkBefore ''
|
interactiveShellInit = lib.mkBefore ''
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
fish_config theme choose tokyonight_storm
|
fish_config theme choose tokyonight_storm
|
||||||
|
${lib.optionalString config.my.cli.shell.starship.enable "source ${./starship.fish}"}
|
||||||
'';
|
'';
|
||||||
functions = {
|
functions = {
|
||||||
fish_greeting = "";
|
fish_greeting = "";
|
||||||
|
|||||||
143
modules/cli/shell/starship.fish
Normal file
143
modules/cli/shell/starship.fish
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
# This file is modified from:
|
||||||
|
# https://github.com/tyler-stefani/starship/blob/main/conf.d/starship.fish
|
||||||
|
# The MIT License can be found here:
|
||||||
|
# https://github.com/tyler-stefani/starship/blob/main/LICENSE
|
||||||
|
|
||||||
|
status is-interactive
|
||||||
|
or exit 0
|
||||||
|
|
||||||
|
# set temp file and signal for async prompts
|
||||||
|
if test -n "$XDG_RUNTIME_DIR"
|
||||||
|
set -g starship_temp_dir "$XDG_RUNTIME_DIR"/fish-async-prompt
|
||||||
|
else
|
||||||
|
set -g starship_temp_dir /tmp/fish-async-prompt
|
||||||
|
end
|
||||||
|
mkdir -p "$starship_temp_dir"
|
||||||
|
set -g starship_temp_file "$starship_temp_dir"/"$fish_pid"_last_prompt
|
||||||
|
set -g starship_async_signal SIGUSR1
|
||||||
|
|
||||||
|
function fish_prompt
|
||||||
|
if test "$TRANSIENT" = "1"
|
||||||
|
starship_transient_prompt_func
|
||||||
|
else if test -e $starship_temp_file
|
||||||
|
cat $starship_temp_file
|
||||||
|
else
|
||||||
|
starship_transient_prompt_func
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function starship_transient_prompt_func
|
||||||
|
# Clear from cursor to end of screen as `commandline -f repaint` does not do this
|
||||||
|
# See https://github.com/fish-shell/fish-shell/issues/8418
|
||||||
|
printf \e\[0J
|
||||||
|
starship module character
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function fish_right_prompt
|
||||||
|
switch "$fish_key_bindings"
|
||||||
|
case fish_hybrid_key_bindings fish_vi_key_bindings
|
||||||
|
set STARSHIP_KEYMAP "$fish_bind_mode"
|
||||||
|
case '*'
|
||||||
|
set STARSHIP_KEYMAP insert
|
||||||
|
end
|
||||||
|
set STARSHIP_CMD_PIPESTATUS $pipestatus
|
||||||
|
set STARSHIP_CMD_STATUS $status
|
||||||
|
# Account for changes in variable name between v2.7 and v3.0
|
||||||
|
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
||||||
|
set STARSHIP_JOBS (count (jobs -p))
|
||||||
|
if test "$TRANSIENT" = "1"
|
||||||
|
if type -q starship_transient_rprompt_func
|
||||||
|
starship_transient_rprompt_func
|
||||||
|
else
|
||||||
|
printf ""
|
||||||
|
end
|
||||||
|
else
|
||||||
|
starship prompt --right --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus="$STARSHIP_CMD_PIPESTATUS" --keymap=$STARSHIP_KEYMAP --cmd-duration=$STARSHIP_DURATION --jobs=$STARSHIP_JOBS
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Disable virtualenv prompt, it breaks starship
|
||||||
|
set -g VIRTUAL_ENV_DISABLE_PROMPT 1
|
||||||
|
|
||||||
|
# Remove default mode prompt
|
||||||
|
builtin functions -e fish_mode_prompt
|
||||||
|
|
||||||
|
set -gx STARSHIP_SHELL fish
|
||||||
|
|
||||||
|
# Transience related functions
|
||||||
|
function reset-transient --on-event fish_postexec
|
||||||
|
set -g TRANSIENT 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function transient_execute
|
||||||
|
if commandline --is-valid
|
||||||
|
set -g TRANSIENT 1
|
||||||
|
commandline -f repaint
|
||||||
|
else
|
||||||
|
set -g TRANSIENT 0
|
||||||
|
end
|
||||||
|
commandline -f execute
|
||||||
|
end
|
||||||
|
|
||||||
|
function transient_cancel
|
||||||
|
if string length -q -- (commandline)
|
||||||
|
set -g TRANSIENT 1
|
||||||
|
commandline -f repaint
|
||||||
|
end
|
||||||
|
commandline -f cancel-commandline
|
||||||
|
end
|
||||||
|
|
||||||
|
# --user is the default, but listed anyway to make it explicit.
|
||||||
|
function enable_transience --description 'enable transient prompt keybindings'
|
||||||
|
bind --user \r transient_execute
|
||||||
|
bind --user -M insert \r transient_execute
|
||||||
|
bind --user \cc transient_cancel
|
||||||
|
end
|
||||||
|
|
||||||
|
# Erase the transient prompt related key bindings.
|
||||||
|
# --user is the default, but listed anyway to make it explicit.
|
||||||
|
# Erasing a user binding will revert to the preset.
|
||||||
|
function disable_transience --description 'remove transient prompt keybindings'
|
||||||
|
bind --user -e \r
|
||||||
|
bind --user -M insert -e \r
|
||||||
|
bind --user -e \cc
|
||||||
|
end
|
||||||
|
|
||||||
|
# Set up the session key that will be used to store logs
|
||||||
|
# We don't use `random [min] [max]` because it is unavailable in older versions of fish shell
|
||||||
|
set -gx STARSHIP_SESSION_KEY (string sub -s1 -l16 (random)(random)(random)(random)(random)0000000000000000)
|
||||||
|
|
||||||
|
# async related functions
|
||||||
|
function write_prompt_to_temp --on-event fish_prompt
|
||||||
|
switch "$fish_key_bindings"
|
||||||
|
case fish_hybrid_key_bindings fish_vi_key_bindings
|
||||||
|
set STARSHIP_KEYMAP "$fish_bind_mode"
|
||||||
|
case '*'
|
||||||
|
set STARSHIP_KEYMAP insert
|
||||||
|
end
|
||||||
|
set STARSHIP_CMD_PIPESTATUS $pipestatus
|
||||||
|
set STARSHIP_CMD_STATUS $status
|
||||||
|
# Account for changes in variable name between v2.7 and v3.0
|
||||||
|
set STARSHIP_DURATION "$CMD_DURATION$cmd_duration"
|
||||||
|
set STARSHIP_JOBS (count (jobs -p))
|
||||||
|
|
||||||
|
# MODIFIED: '"$STARSHIP_CMD_PIPESTATUS"' -> '$STARSHIP_CMD_PIPESTATUS'
|
||||||
|
fish -c 'starship prompt \
|
||||||
|
--terminal-width='"$COLUMNS"' \
|
||||||
|
--status='$STARSHIP_CMD_STATUS' \
|
||||||
|
--pipestatus='$STARSHIP_CMD_PIPESTATUS' \
|
||||||
|
--keymap='$STARSHIP_KEYMAP' \
|
||||||
|
--cmd-duration='$STARSHIP_DURATION' \
|
||||||
|
--jobs='$STARSHIP_JOBS' > '$starship_temp_file' \
|
||||||
|
&& kill -s '"$starship_async_signal"' '"$fish_pid"'' &
|
||||||
|
disown
|
||||||
|
end
|
||||||
|
|
||||||
|
function repaint_prompt_on_signal --on-signal "$starship_async_signal"
|
||||||
|
commandline -f repaint
|
||||||
|
end
|
||||||
|
|
||||||
|
function remove_temp_prompt_on_exit --on-event fish_exit
|
||||||
|
rm -f $starship_temp_file
|
||||||
|
end
|
||||||
@@ -5,17 +5,53 @@ in
|
|||||||
{
|
{
|
||||||
options.my.cli.shell.starship = {
|
options.my.cli.shell.starship = {
|
||||||
enable = lib.mkEnableOption "starship prompt";
|
enable = lib.mkEnableOption "starship prompt";
|
||||||
|
format = lib.mkOption {
|
||||||
|
type = with lib.types; listOf singleLineStr;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf cfg.enable {
|
||||||
my.hm = {
|
my.hm = {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = lib.recursiveUpdate (with builtins; fromTOML (readFile ./starship-preset.toml)) {
|
settings = lib.recursiveUpdate (with builtins; fromTOML (readFile ./starship-preset.toml)) {
|
||||||
add_newline = false;
|
add_newline = false;
|
||||||
|
command_timeout = 2000;
|
||||||
nix_shell.disabled = true;
|
nix_shell.disabled = true;
|
||||||
};
|
format =
|
||||||
};
|
let
|
||||||
};
|
dedupDollar =
|
||||||
};
|
list:
|
||||||
|
let
|
||||||
|
result =
|
||||||
|
builtins.foldl'
|
||||||
|
(
|
||||||
|
acc: elem:
|
||||||
|
if lib.hasPrefix "$" elem then
|
||||||
|
if builtins.elem elem acc.seen then
|
||||||
|
acc
|
||||||
|
else
|
||||||
|
acc
|
||||||
|
// {
|
||||||
|
result = acc.result ++ [ elem ];
|
||||||
|
seen = acc.seen ++ [ elem ];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
acc // { result = acc.result ++ [ elem ]; }
|
||||||
|
)
|
||||||
|
{
|
||||||
|
result = [ ];
|
||||||
|
seen = [ ];
|
||||||
|
}
|
||||||
|
(lib.reverseList list);
|
||||||
|
in
|
||||||
|
lib.reverseList result.result;
|
||||||
|
in
|
||||||
|
"$all" + lib.concatStrings (dedupDollar cfg.format);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,11 +50,9 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
x = "extract";
|
|
||||||
ls = "lsd";
|
ls = "lsd";
|
||||||
svim = "doasedit";
|
svim = "doasedit";
|
||||||
nf = "fastfetch";
|
nf = "fastfetch";
|
||||||
tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
43
modules/cli/shpool.nix
Normal file
43
modules/cli/shpool.nix
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.cli.shpool;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.cli.shpool = {
|
||||||
|
enable = lib.mkEnableOption "shpool";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.hm = {
|
||||||
|
services.shpool = {
|
||||||
|
enable = true;
|
||||||
|
systemd = true;
|
||||||
|
settings = {
|
||||||
|
motd = "never";
|
||||||
|
prompt_prefix = "";
|
||||||
|
forward_env = [ "PATH" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.starship = {
|
||||||
|
settings = {
|
||||||
|
custom.shpool = {
|
||||||
|
description = "Display current shpool session name";
|
||||||
|
when = ''test -n "$SHPOOL_SESSION_NAME"'';
|
||||||
|
command = "echo $SHPOOL_SESSION_NAME";
|
||||||
|
symbol = " ";
|
||||||
|
style = "fg:#dea584";
|
||||||
|
format = "[$symbol \\[$output\\] ]($style)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
my.cli.shell.starship.format = [
|
||||||
|
"\${custom.shpool}"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
55
modules/cli/tmux.nix
Normal file
55
modules/cli/tmux.nix
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.cli.tmux;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.cli.tmux = {
|
||||||
|
enable = lib.mkEnableOption "tmux";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.hm = {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
set-option -g mouse on
|
||||||
|
set-option -a terminal-features ",xterm-256color:RGB,focus,clipboard,usstyle"
|
||||||
|
'';
|
||||||
|
plugins = [
|
||||||
|
(pkgs.tmuxPlugins.mkTmuxPlugin {
|
||||||
|
pluginName = "tokyo-night-tmux";
|
||||||
|
rtpFilePath = "tokyo-night.tmux";
|
||||||
|
version = "legacy";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "janoamaral";
|
||||||
|
repo = "tokyo-night-tmux";
|
||||||
|
rev = "16469dfad86846138f594ceec780db27039c06cd";
|
||||||
|
hash = "sha256-EKCgYan0WayXnkSb2fDJxookdBLW0XBKi2hf/YISwJE=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
programs.starship = {
|
||||||
|
settings = {
|
||||||
|
custom.tmux = {
|
||||||
|
description = "Display current tmux session name";
|
||||||
|
when = ''test -n "$TMUX"'';
|
||||||
|
command = "tmux display-message -p '#S'";
|
||||||
|
symbol = " ";
|
||||||
|
style = "bold green";
|
||||||
|
format = "[$symbol \\[$output\\] ]($style)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
my.cli.shell.starship.format = [
|
||||||
|
"\${custom.tmux}"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
userfullname,
|
userfullname,
|
||||||
useremail,
|
emails,
|
||||||
|
hosts,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -21,14 +22,18 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
gpg.ssh.allowedSignersFile =
|
gpg.ssh.allowedSignersFile =
|
||||||
(pkgs.writeText "allowed_signers" ''
|
hosts
|
||||||
imxyy1soope1@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
|> lib.mapAttrsToList (
|
||||||
imxyy@imxyy.top ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
host: key: map (email: "${email} ${key} ${host}") (builtins.attrValues emails)
|
||||||
'').outPath;
|
)
|
||||||
|
|> lib.flatten
|
||||||
|
|> lib.concatStringsSep "\n"
|
||||||
|
|> pkgs.writeText "allowed-signers"
|
||||||
|
|> toString;
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
user = {
|
user = {
|
||||||
name = userfullname;
|
name = userfullname;
|
||||||
email = useremail;
|
email = emails.default;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
signing = {
|
signing = {
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
userfullname,
|
userfullname,
|
||||||
useremail,
|
emails,
|
||||||
|
hosts,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -16,13 +17,23 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm.programs.jujutsu.enable = true;
|
|
||||||
my.hm = {
|
my.hm = {
|
||||||
programs.jujutsu = {
|
programs.jujutsu = {
|
||||||
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
# take the closest ancestor bookmark and move them the current change.
|
||||||
|
# https://shaddy.dev/notes/jj-tug
|
||||||
|
aliases.tug = [
|
||||||
|
"bookmark"
|
||||||
|
"move"
|
||||||
|
"--from"
|
||||||
|
"heads(::@- & bookmarks())"
|
||||||
|
"--to"
|
||||||
|
"@-"
|
||||||
|
];
|
||||||
user = {
|
user = {
|
||||||
name = "${userfullname}";
|
name = userfullname;
|
||||||
email = "${useremail}";
|
email = emails.default;
|
||||||
};
|
};
|
||||||
ui = {
|
ui = {
|
||||||
graph.style = "square";
|
graph.style = "square";
|
||||||
@@ -34,17 +45,22 @@ in
|
|||||||
behavior = "own";
|
behavior = "own";
|
||||||
key = "/home/${username}/.ssh/id_ed25519";
|
key = "/home/${username}/.ssh/id_ed25519";
|
||||||
backends.backends.ssh.allowed-signers =
|
backends.backends.ssh.allowed-signers =
|
||||||
(pkgs.writeText "allowed_signers" ''
|
hosts
|
||||||
imxyy1soope1@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
|> lib.mapAttrsToList (
|
||||||
imxyy@imxyy.top ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
host: key: map (email: "${email} ${key} ${host}") (builtins.attrValues emails)
|
||||||
'').outPath;
|
)
|
||||||
|
|> lib.flatten
|
||||||
|
|> lib.concatStringsSep "\n"
|
||||||
|
|> pkgs.writeText "allowed-signers"
|
||||||
|
|> toString;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.packages = [ pkgs.lazyjj ];
|
programs.jjui.enable = true;
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
settings = {
|
settings = {
|
||||||
custom = {
|
custom = {
|
||||||
|
# Borrowed from https://github.com/jj-vcs/jj/wiki/Starship/b18afc53417848f58333b24d446b8e2522b42bd2#alternative-prompt
|
||||||
jj = {
|
jj = {
|
||||||
ignore_timeout = true;
|
ignore_timeout = true;
|
||||||
description = "The current jj status";
|
description = "The current jj status";
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
impure,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -14,11 +15,7 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm = {
|
my.hm = {
|
||||||
xdg.configFile."nvim/init.lua".source = ./nvim/init.lua;
|
xdg.configFile."nvim".source = impure.mkImpureLink ./nvim;
|
||||||
xdg.configFile."nvim/lua" = {
|
|
||||||
source = ./nvim/lua;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
@@ -30,6 +27,9 @@ in
|
|||||||
|
|
||||||
ripgrep # telescope
|
ripgrep # telescope
|
||||||
|
|
||||||
|
vscode-json-languageserver
|
||||||
|
vscode-langservers-extracted
|
||||||
|
taplo
|
||||||
typos-lsp
|
typos-lsp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
44
modules/coding/editor/neovim/nvim/lazy-lock.json
Normal file
44
modules/coding/editor/neovim/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "de10d8414235b0a8cabfeba60d07c24304e71f5c" },
|
||||||
|
"blink.cmp": { "branch": "main", "commit": "f9e855c4d96e1264f7c818844f5a0166ad48c212" },
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "c7d37ca22b461f64e26f8f6701b2586128ed0bef" },
|
||||||
|
"glance.nvim": { "branch": "master", "commit": "bf86d8b79dce808e65fdb6e9269d0b4ed6d2eefc" },
|
||||||
|
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
|
||||||
|
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||||
|
"inlay-hints.nvim": { "branch": "master", "commit": "990e1f96699b8293b6665b9e73b16128c66684e6" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
|
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
|
||||||
|
"leap.nvim": { "branch": "main", "commit": "02bf52e49c72cc5dabb53ec9494d10d304f0b2c9" },
|
||||||
|
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
||||||
|
"mini.nvim": { "branch": "main", "commit": "8c40d95931cbe6138391af9180e59439ed2e69df" },
|
||||||
|
"neo-tree.nvim": { "branch": "main", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||||
|
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
|
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||||
|
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "276ce3bc878243dc63c32b75790c4296d11848f6" },
|
||||||
|
"nvim-notify": { "branch": "master", "commit": "397c7c1184745fca649e5104de659e6392ef5a4d" },
|
||||||
|
"nvim-osc52": { "branch": "main", "commit": "04cfaba1865ae5c53b6f887c3ca7304973824fb2" },
|
||||||
|
"nvim-tmux-navigation": { "branch": "main", "commit": "4898c98702954439233fdaf764c39636681e2861" },
|
||||||
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "3362099de3368aa620a8105b19ed04c2053e38c0" },
|
||||||
|
"outline.nvim": { "branch": "main", "commit": "0eb9289ab39c91caf8b3ed0e3a17764809d69558" },
|
||||||
|
"pest.vim": { "branch": "master", "commit": "7cfcb43f824e74d13dfe631359fff2ec23836a77" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"rainbow-delimiters.nvim": { "branch": "master", "commit": "97bf4b8ef9298644a29fcd9dd41a0210cf08cac7" },
|
||||||
|
"render-markdown.nvim": { "branch": "main", "commit": "3da7bb459f6cff03980dd1e106c46f3e62ff4d9f" },
|
||||||
|
"ripgrep": { "branch": "master", "commit": "119a58a400ea948c2d2b0cd4ec58361e74478641" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
|
||||||
|
"tree-sitter-nu": { "branch": "main", "commit": "6544c4383643cf8608d50def2247a7af8314e148" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
|
||||||
|
"vim-floaterm": { "branch": "master", "commit": "fd4bdd66eca56c6cc59f2119e4447496d8cde2ea" },
|
||||||
|
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
|
||||||
|
"workspace-diagnostics.nvim": { "branch": "main", "commit": "60f9175b2501ae3f8b1aba9719c0df8827610c8e" }
|
||||||
|
}
|
||||||
@@ -63,7 +63,7 @@ function G.buf_kill(kill_command, bufnr, force)
|
|||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
elseif api.nvim_buf_get_option(bufnr, "buftype") == "terminal" then
|
elseif api.nvim_get_option_value("buftype", { buf = bufnr }) == "terminal" then
|
||||||
choice = fn.confirm(fmt([[Close "%s"?]], bufname), "&Yes\n&No\n&Cancel")
|
choice = fn.confirm(fmt([[Close "%s"?]], bufname), "&Yes\n&No\n&Cancel")
|
||||||
if choice == 1 then
|
if choice == 1 then
|
||||||
force = true
|
force = true
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
M = {
|
|
||||||
check_ts = true,
|
|
||||||
ts_config = {
|
|
||||||
lua = { "string", "source" },
|
|
||||||
javascript = { "string", "template_string" },
|
|
||||||
},
|
|
||||||
fast_wrap = {
|
|
||||||
map = "<M-e>",
|
|
||||||
chars = { "{", "[", "(", '"', "'" },
|
|
||||||
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
|
|
||||||
end_key = "$",
|
|
||||||
keys = "qwertyuiopzxcvbnmasdfghjkl",
|
|
||||||
check_comma = true,
|
|
||||||
highlight = "Search",
|
|
||||||
highlight_grey = "Comment",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
|
||||||
local ok, cmp = pcall(require, "cmp")
|
|
||||||
if ok then
|
|
||||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done({ map_char = { tex = "" } }))
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
local buf_kill = require("core.globals").buf_kill
|
local buf_kill = require("core.globals").buf_kill
|
||||||
|
|
||||||
|
--- @type bufferline.UserConfig
|
||||||
M = {
|
M = {
|
||||||
highlights = {
|
highlights = {
|
||||||
buffer_selected = {
|
buffer_selected = {
|
||||||
@@ -10,7 +11,7 @@ M = {
|
|||||||
diagnostics = "nvim_lsp",
|
diagnostics = "nvim_lsp",
|
||||||
offsets = {
|
offsets = {
|
||||||
{
|
{
|
||||||
filetype = "NvimTree",
|
filetype = "neo-tree",
|
||||||
text = "File Explorer",
|
text = "File Explorer",
|
||||||
highlight = "Directory",
|
highlight = "Directory",
|
||||||
text_align = "center",
|
text_align = "center",
|
||||||
|
|||||||
@@ -1,64 +1,32 @@
|
|||||||
local cmp = require("cmp")
|
--- @type blink.cmp.Config
|
||||||
|
|
||||||
M = {
|
M = {
|
||||||
window = {
|
keymap = {
|
||||||
|
-- <Tab> to accept
|
||||||
|
preset = "super-tab",
|
||||||
|
},
|
||||||
|
appearance = {
|
||||||
|
nerd_font_variant = "mono",
|
||||||
|
},
|
||||||
completion = {
|
completion = {
|
||||||
border = "rounded",
|
-- By default, you may press `<c-space>` to show the documentation.
|
||||||
scrollbar = "║",
|
-- Optionally, set `auto_show = true` to show the documentation after a delay.
|
||||||
|
documentation = { auto_show = true, auto_show_delay_ms = 1000 },
|
||||||
},
|
},
|
||||||
documentation = {
|
sources = {
|
||||||
border = "rounded",
|
default = { "lsp", "path", "snippets", "lazydev" },
|
||||||
scrollbar = "║",
|
providers = {
|
||||||
|
lazydev = { module = "lazydev.integrations.blink", score_offset = 100 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
formatting = {
|
snippets = { preset = "luasnip" },
|
||||||
format = require("lspkind").cmp_format({
|
|
||||||
mode = "symbol",
|
-- See :h blink-cmp-config-fuzzy for more information
|
||||||
maxwidth = 50,
|
fuzzy = {
|
||||||
ellipsis_char = "...",
|
implementation = "lua",
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
snippet = {
|
|
||||||
expand = function(args)
|
-- Shows a signature help window while you type arguments for a function
|
||||||
require("luasnip").lsp_expand(args.body)
|
signature = { enabled = true },
|
||||||
end,
|
|
||||||
},
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
|
||||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
|
||||||
["<Escape>"] = cmp.mapping.abort(),
|
|
||||||
["<Tab>"] = cmp.mapping.confirm({ select = true }),
|
|
||||||
["<Up>"] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_prev_item()
|
|
||||||
else
|
|
||||||
fallback()
|
|
||||||
end
|
|
||||||
end, {
|
|
||||||
"i",
|
|
||||||
"s",
|
|
||||||
}),
|
|
||||||
["<Down>"] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_next_item()
|
|
||||||
else
|
|
||||||
fallback()
|
|
||||||
end
|
|
||||||
end, {
|
|
||||||
"i",
|
|
||||||
"s",
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = "nvim_lsp" },
|
|
||||||
{ name = "luasnip" },
|
|
||||||
{ name = "path" },
|
|
||||||
}, {
|
|
||||||
{ name = "buffer" },
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.o.wildmenu = true
|
|
||||||
vim.o.pumheight = 10
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
-- rainbow-delimiters integration
|
||||||
|
local hooks = require("ibl.hooks")
|
||||||
|
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
|
||||||
|
|
||||||
|
--- @type ibl.config
|
||||||
M = {
|
M = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
indent = {
|
indent = {
|
||||||
@@ -6,6 +11,7 @@ M = {
|
|||||||
scope = {
|
scope = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
show_start = false,
|
show_start = false,
|
||||||
|
highlight = vim.g.rainbow_delimiters.highlight,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
M = {}
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -34,6 +34,9 @@ local servers = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
require("inlay-hints").on_attach(client, bufnr)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
nixd = {
|
nixd = {
|
||||||
settings = {
|
settings = {
|
||||||
@@ -69,24 +72,30 @@ local servers = {
|
|||||||
cmd = { "qmlls", "-E" },
|
cmd = { "qmlls", "-E" },
|
||||||
},
|
},
|
||||||
-- keep-sorted start
|
-- keep-sorted start
|
||||||
|
biome = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
cssls = {},
|
cssls = {},
|
||||||
|
eslint = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
html = {},
|
html = {},
|
||||||
java_language_server = {},
|
java_language_server = {},
|
||||||
jsonls = {},
|
jsonls = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
|
taplo = {},
|
||||||
ts_ls = {},
|
ts_ls = {},
|
||||||
typos_lsp = {},
|
typos_lsp = {},
|
||||||
-- keep-sorted end
|
-- keep-sorted end
|
||||||
}
|
}
|
||||||
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = {
|
||||||
capabilities = vim.lsp.protocol.make_client_capabilities()
|
textDocument = {
|
||||||
capabilities.textDocument.foldingRange = {
|
foldingRange = {
|
||||||
dynamicRegistration = false,
|
dynamicRegistration = false,
|
||||||
lineFoldingOnly = true,
|
lineFoldingOnly = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
capabilities = require("blink.cmp").get_lsp_capabilities(capabilities)
|
||||||
for server, config in pairs(servers) do
|
for server, config in pairs(servers) do
|
||||||
config["capabilities"] = capabilities
|
config["capabilities"] = capabilities
|
||||||
vim.lsp.config(server, config)
|
vim.lsp.config(server, config)
|
||||||
|
|||||||
@@ -25,10 +25,6 @@ vim.diagnostic.config({
|
|||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
|
||||||
border = "single",
|
|
||||||
})
|
|
||||||
|
|
||||||
local diag_config1 = {
|
local diag_config1 = {
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
severity = {
|
severity = {
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
M = {
|
|
||||||
bind = true, -- This is mandatory, otherwise border config won't get registered.
|
|
||||||
handler_opts = {
|
|
||||||
border = "rounded",
|
|
||||||
},
|
|
||||||
hint_prefix = "^ ",
|
|
||||||
toggle_key = "<C-k>",
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.keymap.set(
|
|
||||||
{ "n" },
|
|
||||||
"<leader>k",
|
|
||||||
require("lsp_signature").toggle_float_win,
|
|
||||||
{ silent = true, noremap = true, desc = "toggle signature" }
|
|
||||||
)
|
|
||||||
|
|
||||||
vim.keymap.set({ "n" }, "K", vim.lsp.buf.signature_help, { silent = true, noremap = true, desc = "toggle signature" })
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
M = {
|
|
||||||
sync_root_with_cwd = true,
|
|
||||||
diagnostics = {
|
|
||||||
enable = false,
|
|
||||||
debounce_delay = 50,
|
|
||||||
show_on_dirs = true,
|
|
||||||
},
|
|
||||||
filters = {
|
|
||||||
git_ignored = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
|
|
||||||
local opt = require("core.globals").keymap_opt
|
|
||||||
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", opt)
|
|
||||||
vim.keymap.set("n", "<leader>te", ":NvimTreeFocus<CR>", opt)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
|
||||||
group = vim.api.nvim_create_augroup("NvimTreeCloseOnLast", { clear = true }),
|
|
||||||
pattern = "NvimTree*",
|
|
||||||
callback = function()
|
|
||||||
if vim.api.nvim_call_function("winlayout", {})[1] == "leaf" and vim.bo.filetype == "NvimTree" then
|
|
||||||
vim.defer_fn(function()
|
|
||||||
vim.cmd("NvimTreeClose")
|
|
||||||
end, 10)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
return M
|
|
||||||
@@ -14,7 +14,6 @@ package.path = package.path .. ";" .. vim.fn.stdpath("config") .. "/lua/"
|
|||||||
local plugins = {
|
local plugins = {
|
||||||
{
|
{
|
||||||
"folke/tokyonight.nvim",
|
"folke/tokyonight.nvim",
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd.colorscheme("tokyonight-storm")
|
vim.cmd.colorscheme("tokyonight-storm")
|
||||||
@@ -22,23 +21,66 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
lazy = false,
|
|
||||||
dependencies = { { "nvim-tree/nvim-web-devicons", lazy = true } },
|
dependencies = { { "nvim-tree/nvim-web-devicons", lazy = true } },
|
||||||
config = function()
|
config = function()
|
||||||
require("lualine").setup(require("plugins.lualine"))
|
require("lualine").setup(require("plugins.lualine"))
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-tree.lua",
|
"echasnovski/mini.nvim",
|
||||||
dependencies = { { "nvim-tree/nvim-web-devicons", lazy = true } },
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-tree").setup(require("plugins.nvim-tree"))
|
-- Better Around/Inside textobjects
|
||||||
|
--
|
||||||
|
-- Examples:
|
||||||
|
-- - va) - [V]isually select [A]round [)]paren
|
||||||
|
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||||
|
-- - ci' - [C]hange [I]nside [']quote
|
||||||
|
require("mini.ai").setup({ n_lines = 500 })
|
||||||
|
|
||||||
|
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||||
|
--
|
||||||
|
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||||
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
|
require("mini.surround").setup()
|
||||||
|
|
||||||
|
-- ... and there is more!
|
||||||
|
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
version = "*",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
cmd = "Neotree",
|
||||||
|
keys = {
|
||||||
|
{ "\\", ":Neotree reveal toggle<CR>", desc = "Toggle NeoTree", silent = true },
|
||||||
|
{ "<leader>e", ":Neotree reveal toggle<CR>", desc = "Toggle NeoTree", silent = true },
|
||||||
|
},
|
||||||
|
--- @type neotree.Config
|
||||||
|
opts = {
|
||||||
|
close_if_last_window = true,
|
||||||
|
filesystem = {
|
||||||
|
filtered_items = {
|
||||||
|
hide_dotfiles = false,
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
width = 30,
|
||||||
|
mappings = {
|
||||||
|
["\\"] = "close_window",
|
||||||
|
["<leader>e"] = "close_window",
|
||||||
|
["<c-]>"] = "set_root",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
lazy = false,
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
"nushell/tree-sitter-nu",
|
"nushell/tree-sitter-nu",
|
||||||
@@ -58,6 +100,7 @@ local plugins = {
|
|||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
dependencies = { "https://gitlab.com/HiPhish/rainbow-delimiters.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("ibl").setup(require("plugins.indent-blankline"))
|
require("ibl").setup(require("plugins.indent-blankline"))
|
||||||
end,
|
end,
|
||||||
@@ -69,7 +112,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = { "hrsh7th/cmp-nvim-lsp" },
|
dependencies = { "saghen/blink.cmp" },
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.lsp.lspconfig")
|
require("plugins.lsp.lspconfig")
|
||||||
@@ -117,7 +160,10 @@ local plugins = {
|
|||||||
{
|
{
|
||||||
"MysticalDevil/inlay-hints.nvim",
|
"MysticalDevil/inlay-hints.nvim",
|
||||||
event = "LspAttach",
|
event = "LspAttach",
|
||||||
dependencies = { "neovim/nvim-lspconfig" },
|
dependencies = {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"onsails/lspkind.nvim",
|
||||||
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -127,6 +173,10 @@ local plugins = {
|
|||||||
require("outline").setup(require("plugins.lsp.outline"))
|
require("outline").setup(require("plugins.lsp.outline"))
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"saghen/blink.cmp",
|
||||||
|
event = "VeryLazy",
|
||||||
|
dependencies = {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
@@ -137,18 +187,17 @@ local plugins = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"folke/lazydev.nvim",
|
||||||
dependencies = {
|
ft = "lua",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
opts = {
|
||||||
"L3MON4D3/LuaSnip",
|
library = {
|
||||||
"saadparwaiz1/cmp_luasnip",
|
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||||
"rafamadriz/friendly-snippets",
|
},
|
||||||
"hrsh7th/cmp-path",
|
},
|
||||||
"onsails/lspkind.nvim",
|
},
|
||||||
},
|
},
|
||||||
event = "InsertEnter",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("cmp").setup(require("plugins.cmp.cmp"))
|
require("blink.cmp").setup(require("plugins.cmp.cmp"))
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -159,10 +208,7 @@ local plugins = {
|
|||||||
{
|
{
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
dependencies = { "hrsh7th/nvim-cmp" },
|
opts = {},
|
||||||
config = function()
|
|
||||||
require("nvim-autopairs").setup(require("plugins.autopairs"))
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
@@ -207,7 +253,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ggandor/leap.nvim",
|
"https://codeberg.org/andyg/leap.nvim",
|
||||||
dependencies = { "tpope/vim-repeat" },
|
dependencies = { "tpope/vim-repeat" },
|
||||||
config = function()
|
config = function()
|
||||||
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
|
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
local rainbow_delimiters = require("rainbow-delimiters")
|
local rainbow_delimiters = require("rainbow-delimiters")
|
||||||
|
--- @type rainbow_delimiters.config
|
||||||
vim.g.rainbow_delimiters = {
|
vim.g.rainbow_delimiters = {
|
||||||
strategy = {
|
strategy = {
|
||||||
[""] = rainbow_delimiters.strategy["global"],
|
[""] = rainbow_delimiters.strategy["global"],
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
--- @type TSConfig
|
||||||
M = {
|
M = {
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
parser_install_dir = "$HOME/.local/share/nvim/lazy/nvim-treesitter",
|
parser_install_dir = "$HOME/.local/share/nvim/lazy/nvim-treesitter",
|
||||||
sync_install = true,
|
sync_install = true,
|
||||||
modules = {},
|
modules = {},
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
|
ensure_installed = {},
|
||||||
|
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm.programs.vscode.enable = true;
|
|
||||||
my.hm = {
|
my.hm = {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
package = pkgs.vscodium;
|
enable = true;
|
||||||
|
package = pkgs.vscodium-wayland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
|
|||||||
@@ -21,13 +21,18 @@ in
|
|||||||
|
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
vue-language-server
|
vue-language-server
|
||||||
|
|
||||||
|
biome
|
||||||
];
|
];
|
||||||
home.file.".npmrc".text = ''
|
home.file.".npmrc".text = ''
|
||||||
prefix = ''${HOME}/.npm-global
|
prefix = ''${HOME}/.npm-global
|
||||||
registry = https://registry.npmmirror.com
|
registry = https://registry.npmmirror.com
|
||||||
'';
|
'';
|
||||||
programs.zsh.initContent = lib.mkAfter ''
|
programs.zsh.initContent = lib.mkAfter ''
|
||||||
export PATH=$PATH:$HOME/.npm-global/bin
|
export PATH=$HOME/.npm-global/bin:$PATH
|
||||||
|
'';
|
||||||
|
programs.fish.interactiveShellInit = ''
|
||||||
|
set -gp PATH $HOME/.npm-global/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
|
|||||||
@@ -38,7 +38,10 @@ in
|
|||||||
git-fetch-with-cli = true
|
git-fetch-with-cli = true
|
||||||
'';
|
'';
|
||||||
programs.zsh.initContent = lib.mkAfter ''
|
programs.zsh.initContent = lib.mkAfter ''
|
||||||
export PATH=$PATH:$HOME/.cargo/bin
|
export PATH=$HOME/.cargo/bin:$PATH
|
||||||
|
'';
|
||||||
|
programs.fish.interactiveShellInit = ''
|
||||||
|
set -gp PATH $HOME/.cargo/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm = {
|
my.hm = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
just
|
||||||
gnumake
|
gnumake
|
||||||
github-cli # gh
|
github-cli # gh
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ in
|
|||||||
}) config.nix.registry;
|
}) config.nix.registry;
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
# Enable flakes and new 'nix' command
|
experimental-features = "nix-command flakes pipe-operators";
|
||||||
experimental-features = "nix-command flakes";
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store"
|
"https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store"
|
||||||
"https://mirror.sjtu.edu.cn/nix-channels/store"
|
"https://mirror.sjtu.edu.cn/nix-channels/store"
|
||||||
@@ -52,6 +51,7 @@ in
|
|||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
];
|
];
|
||||||
download-buffer-size = 536870912; # 512 MiB
|
download-buffer-size = 536870912; # 512 MiB
|
||||||
|
warn-dirty = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets.nix-github-token = {
|
sops.secrets.nix-github-token = {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
sops.secrets.imxyy-nix-hashed-password = {
|
sops.secrets.imxyy-nix-hashed-password = {
|
||||||
sopsFile = secrets.imxyy-nix-hashed-password;
|
sopsFile = secrets.imxyy-nix-hashed-password;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
options.my.desktop.browser.default = {
|
options.my.desktop.browser.default = {
|
||||||
command = lib.mkOption {
|
command = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "chromium";
|
default = "zen-beta";
|
||||||
};
|
};
|
||||||
desktop = lib.mkOption {
|
desktop = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "chromium-browser.desktop";
|
default = "zen-beta.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
hostname,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -16,6 +17,7 @@ in
|
|||||||
my.hm.programs.zen-browser = {
|
my.hm.programs.zen-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
||||||
|
suppressXdgMigrationWarning = hostname == "imxyy-nix";
|
||||||
policies = {
|
policies = {
|
||||||
# find more options here: https://mozilla.github.io/policy-templates/
|
# find more options here: https://mozilla.github.io/policy-templates/
|
||||||
DisableAppUpdate = true;
|
DisableAppUpdate = true;
|
||||||
@@ -23,7 +25,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
".zen"
|
".config/zen"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,16 +14,13 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm.home.packages = [
|
my.hm.home.packages = [
|
||||||
(pkgs.hmcl.overrideAttrs {
|
pkgs.hmcl
|
||||||
postFixup = ''
|
|
||||||
substituteInPlace $out/share/applications/HMCL.desktop --replace-fail 'Exec=hmcl' 'Exec=sh -c "cd ~/.local/share/hmcl; hmcl"'
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
".minecraft"
|
".minecraft"
|
||||||
".local/share/hmcl"
|
".local/share/hmcl"
|
||||||
|
".hmcl"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.desktop.media = {
|
my.desktop.media = {
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
shotwell.enable = true;
|
loupe.enable = true;
|
||||||
thunderbird.enable = true;
|
thunderbird.enable = true;
|
||||||
vlc.enable = true;
|
vlc.enable = true;
|
||||||
|
splayer.enable = true;
|
||||||
spotify.enable = true;
|
spotify.enable = true;
|
||||||
spotube.enable = true;
|
spotube.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
18
modules/desktop/media/loupe.nix
Normal file
18
modules/desktop/media/loupe.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.desktop.media.loupe;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.desktop.media.loupe = {
|
||||||
|
enable = lib.mkEnableOption "loupe";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.hm.home.packages = [ pkgs.loupe ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
cfg = config.my.desktop.media.shotwell;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my.desktop.media.shotwell = {
|
|
||||||
enable = lib.mkEnableOption "shotwell";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
my.hm.home.packages = [ pkgs.shotwell ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
21
modules/desktop/media/splayer.nix
Normal file
21
modules/desktop/media/splayer.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.desktop.media.splayer;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.desktop.media.splayer = {
|
||||||
|
enable = lib.mkEnableOption "splayer";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.hm.home.packages = [ pkgs.splayer ];
|
||||||
|
my.persist.homeDirs = [
|
||||||
|
".config/SPlayer"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -37,7 +37,7 @@ in
|
|||||||
name = "Bibata-Modern-Classic";
|
name = "Bibata-Modern-Classic";
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
iconTheme = {
|
icons = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
dark = "Papirus-Dark";
|
dark = "Papirus-Dark";
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
assets,
|
assets,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
settings = config.my.hm.programs.niri.settings;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.my.desktop.wm.niri.enable {
|
config = lib.mkIf config.my.desktop.wm.niri.enable {
|
||||||
my.hm.programs.niri.settings = {
|
my.hm.programs.niri.settings = {
|
||||||
@@ -18,7 +21,7 @@
|
|||||||
|
|
||||||
layout = {
|
layout = {
|
||||||
gaps = 23;
|
gaps = 23;
|
||||||
center-focused-column = "always";
|
center-focused-column = "on-overflow";
|
||||||
always-center-single-column = true;
|
always-center-single-column = true;
|
||||||
focus-ring.enable = false;
|
focus-ring.enable = false;
|
||||||
border = {
|
border = {
|
||||||
@@ -47,6 +50,10 @@
|
|||||||
];
|
];
|
||||||
default-column-width.proportion = 0.8;
|
default-column-width.proportion = 0.8;
|
||||||
background-color = "transparent";
|
background-color = "transparent";
|
||||||
|
tab-indicator = {
|
||||||
|
width = 10;
|
||||||
|
place-within-column = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
@@ -97,17 +104,18 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment.NIXOS_OZONE_WL = "1";
|
||||||
QT_QPA_PLATFORM = "wayland;xcb";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
XDG_CURRENT_DESKTOP = "niri";
|
|
||||||
XDG_SESSION_DESKTOP = "niri";
|
|
||||||
|
|
||||||
NIXOS_OZONE_WL = "1";
|
spawn-at-startup = lib.mkBefore (
|
||||||
NOCTALIA_SETTINGS_FALLBACK = "${config.my.hm.xdg.configHome}/noctalia/gui-settings.json";
|
map (c: { command = c; }) [
|
||||||
};
|
(
|
||||||
|
[
|
||||||
|
"dbus-update-activation-environment"
|
||||||
|
"--systemd"
|
||||||
|
]
|
||||||
|
++ builtins.attrNames settings.environment
|
||||||
|
)
|
||||||
|
|
||||||
spawn-at-startup = map (c: { command = c; }) [
|
|
||||||
[
|
[
|
||||||
"${lib.getExe pkgs.swaybg}"
|
"${lib.getExe pkgs.swaybg}"
|
||||||
"-m"
|
"-m"
|
||||||
@@ -131,8 +139,15 @@
|
|||||||
"cliphist"
|
"cliphist"
|
||||||
"store"
|
"store"
|
||||||
]
|
]
|
||||||
[ "noctalia-shell" ]
|
# TODO: Is there a better way?
|
||||||
];
|
[
|
||||||
|
"systemctl"
|
||||||
|
"restart"
|
||||||
|
"--user"
|
||||||
|
"noctalia-shell.service"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
binds =
|
binds =
|
||||||
let
|
let
|
||||||
@@ -143,23 +158,19 @@
|
|||||||
"ipc"
|
"ipc"
|
||||||
"call"
|
"call"
|
||||||
]
|
]
|
||||||
++ (pkgs.lib.splitString " " cmd);
|
++ (lib.splitString " " cmd);
|
||||||
in
|
in
|
||||||
with config.my.hm.lib.niri.actions;
|
with config.my.hm.lib.niri.actions;
|
||||||
{
|
{
|
||||||
"Ctrl+Alt+T".action.spawn = [
|
|
||||||
"kitty"
|
|
||||||
];
|
|
||||||
"Mod+T".action.spawn = [
|
|
||||||
"kitty"
|
|
||||||
];
|
|
||||||
"Mod+Return".action.spawn = [
|
"Mod+Return".action.spawn = [
|
||||||
"kitty"
|
"kitty"
|
||||||
|
"-1"
|
||||||
];
|
];
|
||||||
"Mod+G".action.spawn = [ config.my.desktop.browser.default.command ];
|
"Mod+G".action.spawn = [ config.my.desktop.browser.default.command ];
|
||||||
"Mod+E".action.spawn = [ "nautilus" ];
|
"Mod+E".action.spawn = [ "nautilus" ];
|
||||||
"Mod+R".action.spawn = noctalia "launcher toggle";
|
"Mod+R".action.spawn = noctalia "launcher toggle";
|
||||||
"Mod+V".action.spawn = noctalia "launcher clipboard";
|
"Mod+V".action.spawn = noctalia "launcher clipboard";
|
||||||
|
"Mod+W".action.spawn = noctalia "launcher windows";
|
||||||
|
|
||||||
"XF86AudioRaiseVolume" = {
|
"XF86AudioRaiseVolume" = {
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
@@ -181,30 +192,15 @@
|
|||||||
};
|
};
|
||||||
"XF86AudioMute" = {
|
"XF86AudioMute" = {
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action.spawn = [
|
action.spawn = noctalia "media playPause";
|
||||||
"playerctl"
|
|
||||||
"-i"
|
|
||||||
"firefox,chromium,zen"
|
|
||||||
"play-pause"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
"Super+XF86AudioRaiseVolume" = {
|
"Super+XF86AudioRaiseVolume" = {
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action.spawn = [
|
action.spawn = noctalia "media next";
|
||||||
"playerctl"
|
|
||||||
"-i"
|
|
||||||
"firefox,chromium,zen"
|
|
||||||
"next"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
"Super+XF86AudioLowerVolume" = {
|
"Super+XF86AudioLowerVolume" = {
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action.spawn = [
|
action.spawn = noctalia "media previous";
|
||||||
"playerctl"
|
|
||||||
"-i"
|
|
||||||
"firefox,chromium,zen"
|
|
||||||
"previous"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
"XF86MonBrightnessUp" = {
|
"XF86MonBrightnessUp" = {
|
||||||
@@ -281,6 +277,7 @@
|
|||||||
"Mod+C".action = center-column;
|
"Mod+C".action = center-column;
|
||||||
"Mod+F".action = toggle-window-floating;
|
"Mod+F".action = toggle-window-floating;
|
||||||
"Mod+H".action = expand-column-to-available-width;
|
"Mod+H".action = expand-column-to-available-width;
|
||||||
|
"Mod+T".action = toggle-column-tabbed-display;
|
||||||
|
|
||||||
"Mod+Minus".action.set-column-width = "-10%";
|
"Mod+Minus".action.set-column-width = "-10%";
|
||||||
"Mod+Equal".action.set-column-width = "+10%";
|
"Mod+Equal".action.set-column-width = "+10%";
|
||||||
|
|||||||
@@ -15,13 +15,26 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.niri = {
|
||||||
|
enable = true;
|
||||||
|
package = pkg;
|
||||||
|
};
|
||||||
|
services.displayManager = {
|
||||||
|
sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
security.pam.services.login.enableGnomeKeyring = true;
|
security.pam.services.login.enableGnomeKeyring = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
{
|
{
|
||||||
directory = ".local/share/keyrings";
|
directory = ".local/share/keyrings";
|
||||||
mode = "0700";
|
mode = "0700";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
@@ -41,17 +54,9 @@ in
|
|||||||
};
|
};
|
||||||
systemd.user.services.niri-flake-polkit.serviceConfig.ExecStart =
|
systemd.user.services.niri-flake-polkit.serviceConfig.ExecStart =
|
||||||
lib.mkForce "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
lib.mkForce "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
programs.niri = {
|
services.system76-scheduler.enable = true;
|
||||||
enable = true;
|
|
||||||
package = pkg;
|
|
||||||
};
|
|
||||||
services.displayManager = {
|
|
||||||
sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
my.hm = {
|
my.hm = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
xwayland-satellite-unstable
|
xwayland-satellite-unstable
|
||||||
@@ -59,7 +64,6 @@ in
|
|||||||
wlr-randr
|
wlr-randr
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
cliphist
|
cliphist
|
||||||
playerctl
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
||||||
nautilus
|
nautilus
|
||||||
@@ -68,8 +72,11 @@ in
|
|||||||
xdg-terminal-exec
|
xdg-terminal-exec
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.system76-scheduler-niri.enable = true;
|
||||||
|
|
||||||
programs.noctalia-shell = {
|
programs.noctalia-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
# modified from official Tokyo-Night theme
|
# modified from official Tokyo-Night theme
|
||||||
colors = {
|
colors = {
|
||||||
mError = "#f7768e";
|
mError = "#f7768e";
|
||||||
@@ -162,6 +169,10 @@ in
|
|||||||
id = "Microphone";
|
id = "Microphone";
|
||||||
displayMode = "onhover";
|
displayMode = "onhover";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
id = "Battery";
|
||||||
|
hideIfNotDetected = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -190,7 +201,10 @@ in
|
|||||||
];
|
];
|
||||||
position = "top_left";
|
position = "top_left";
|
||||||
shortcuts = {
|
shortcuts = {
|
||||||
left = [ { id = "Bluetooth"; } ];
|
left = [
|
||||||
|
{ id = "Bluetooth"; }
|
||||||
|
{ id = "Network"; }
|
||||||
|
];
|
||||||
right = [ { id = "Notifications"; } ];
|
right = [ { id = "Notifications"; } ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -200,6 +214,7 @@ in
|
|||||||
scaleRatio = 1.05;
|
scaleRatio = 1.05;
|
||||||
radiusRatio = 0.8;
|
radiusRatio = 0.8;
|
||||||
enableShadows = false;
|
enableShadows = false;
|
||||||
|
telemetryEnabled = false;
|
||||||
};
|
};
|
||||||
location.weatherEnabled = false;
|
location.weatherEnabled = false;
|
||||||
network.wifiEnabled = false;
|
network.wifiEnabled = false;
|
||||||
|
|||||||
@@ -25,11 +25,9 @@ let
|
|||||||
|
|
||||||
forAllAutologinTTYs =
|
forAllAutologinTTYs =
|
||||||
config:
|
config:
|
||||||
attrsets.mergeAttrsList (
|
attrsets.mergeAttrsList (map (ttynum: { "getty@tty${toString ttynum}" = config; }) cfg.ttys);
|
||||||
builtins.map (ttynum: { "getty@tty${toString ttynum}" = config; }) cfg.ttys
|
|
||||||
);
|
|
||||||
|
|
||||||
autologinModule = types.submodule ({
|
autologinModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
enable = mkEnableOption "autologin";
|
enable = mkEnableOption "autologin";
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
@@ -48,7 +46,7 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ in
|
|||||||
desktop,
|
desktop,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
${pkg} = final.symlinkJoin {
|
"${pkg}-wayland" = final.symlinkJoin {
|
||||||
pname = prev.${pkg}.pname;
|
pname = prev.${pkg}.pname;
|
||||||
version = prev.${pkg}.version;
|
version = prev.${pkg}.version;
|
||||||
paths = [ prev.${pkg} ];
|
paths = [ prev.${pkg} ];
|
||||||
@@ -159,14 +159,11 @@ in
|
|||||||
name = prev.${pkg}.name;
|
name = prev.${pkg}.name;
|
||||||
paths = [ prev.${pkg} ];
|
paths = [ prev.${pkg} ];
|
||||||
postBuild = lib.concatLines (
|
postBuild = lib.concatLines (
|
||||||
map (
|
map (desktop: ''
|
||||||
desktop:
|
|
||||||
''
|
|
||||||
rm $out/share/applications/${desktop}.desktop
|
rm $out/share/applications/${desktop}.desktop
|
||||||
substitute ${prev.${pkg}}/share/applications/${desktop}.desktop $out/share/applications/${desktop}.desktop \
|
substitute ${prev.${pkg}}/share/applications/${desktop}.desktop $out/share/applications/${desktop}.desktop \
|
||||||
--replace-fail 'Exec=' 'Exec=env QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx '
|
--replace-fail 'Exec=' 'Exec=env QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx '
|
||||||
''
|
'') desktops
|
||||||
) desktops
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
26
modules/impure.nix
Normal file
26
modules/impure.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
relativePath =
|
||||||
|
path:
|
||||||
|
assert lib.types.path.check path;
|
||||||
|
lib.strings.removePrefix (toString self) (toString path);
|
||||||
|
mkImpureLink =
|
||||||
|
path:
|
||||||
|
let
|
||||||
|
relative = relativePath path;
|
||||||
|
in
|
||||||
|
pkgs.runCommandLocal relative { } "ln -s ${lib.escapeShellArg (impureRoot + relative)} $out";
|
||||||
|
impureRoot =
|
||||||
|
let
|
||||||
|
impureRoot = builtins.getEnv "IMPURE_ROOT";
|
||||||
|
in
|
||||||
|
if impureRoot == "" then throw "IMPURE_ROOT is not set" else impureRoot;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
_module.args.impure = { inherit mkImpureLink; };
|
||||||
|
}
|
||||||
@@ -18,6 +18,8 @@ in
|
|||||||
lib.infuse prev {
|
lib.infuse prev {
|
||||||
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
||||||
bottles.__input.removeWarningPopup.__assign = true;
|
bottles.__input.removeWarningPopup.__assign = true;
|
||||||
|
|
||||||
|
easytier.__assign = final.stable.easytier;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"data": "ENC[AES256_GCM,data:oA8Ig5psbIudrjtN65p5IpK6/3UdTogB3yMZ6o5FsD+D79FIieGfHTrthHay2IcMhMftPcoYJTrtO9wEBo08oRSicKRCzjp6P/6toxZrPXXOiyG7SomxxXv98UNNuSMDoSUSQq0C8kkYCiPH+DOWaXvmwg7RPhmsX24dnQbay1Nn5psO10K2BYYdhzeev7FXTxFAtyfegEx9rBoJxBs4IThoNtqZJSUEa6v9G4KgrKVQIL+RP9+5T+hCPfL7NKmNxzNls26fkVglWymMbNvbNuizmTeEuX7Bd9+RBCcrAmqGK1kJw6tujf1gOecGAjtT+W/MEg0XvJuRv66vm28AV62+M4Ej9w9Vjj6Tf5vXbimZOVZzJ8ObWPchiKMU4vz7fkGkf2bSJ6q/y7BncQHDIt3fIWZH+zIIlejxul+7GAHSm6y8BGjEyRKSYipQwrdtQtPuCFxpu/QDnp7qfHYyJIYZdtpGUFSymFcjiN3cDnugIYf/AiNmc4MJOs3Z+we0GmvD1if9ERZDUFSGZlfWw+8TDKaCP1Yp3nd70kL3yV9SIYQbNGsmcQ30lYWhf8lpBtTuirfpTHBzJ3RM8xbJR3etY93Y1zQrFiju1GWJH5okvpZWk3WggMXIIr1Rcp1iB9F60XZmP9J3d+stjcl5qQG+gIsPCls4y07N7mn6g/OSowC2Ov45CweJQOGdhxXt8HbNm3BaWpAwiYr9VD3hxb3mldfDljquZCLiKxacynYVl7uvTDaQLUI=,iv:iPQQ/bZe+iNtv+vy1n3YW4mywYxwvyBVohr8ELycU8g=,tag:0lF1KADdhunLM1CEmzqwXA==,type:str]",
|
"data": "ENC[AES256_GCM,data:woTNsrZnU3IclRXuh41H82YHeFa6U8aT+ILtjUQ9P80Rz7sUwGinh7z+5bNJkhdTub4BZ+ySl8Ov0XfDKWClT4AmbcRCuwwN8BfOJ59v+fyzsBSu8Y7wXSPciY+T/4rn60HlnVCyjX23dMNWwuN08bS/4iDw+/Ur80/3li2Azl5+37y/S2ZbFU0FP3OCy/G5+rGI0IFTCzRMfB/wpDhesxGzi1epKWvFx0q1Qnv0SiaZlo8mpG+G997mltBMlVkmAiNq57VAVs1ZBDAOf56q1UUHMtExAQt0zad5YWZeBgXQYWG8AFgOhSBiqjpFkUkfysv1mYqWnA7Ej/fD/H8e1uckC6KT9m4w1l71JmIkuUMW8PN/66cGYwZ/gMrZTAwlaVqiYPE1ppmnvrQxukQMgj40y27sWauMK+biPRNTrkU7egjH0IHCHHE49vq3VDFa48SAYXiBCHV+e/Gy9Em1ImRn2lCzAoKUtI5ilccg6MyUbug+1aDWx5NBkhpVw751HyLiSjNyphzVZewo9hGun2F+Fl9NdhM5xpq4tM9bbnsm0y44Vt8FJU0dmY6lfq1qqI3MjLg14iET/WLTorxH0i1iJUYy8Z6FJ7ArGUv6qw7ECNH0ZeUiNk0vICniyRlr+9JGFiHesX5oajXVxOp6vA6FnA4j1jeUvOLViiRc8DxLZziyA7ZdKDXwPJ4JKA==,iv:Df76Q6DoA6lI6xv7nnN6bjsaMPK7dnM/WvVd/O4h6qs=,tag:Yi/inQbd1wCY+PPbq0By9w==,type:str]",
|
||||||
"sops": {
|
"sops": {
|
||||||
"age": [
|
"age": [
|
||||||
{
|
{
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFhGYmtrZyBSSEdH\nOGZDWDFhMzB2aVErTDU0Vk1WbnBSa0hmTGNMaXI3aTBuQWMvQkRJCnFpYkRFblZV\nRzF1eGdmTzFQcGhTWFZKdmhyNzRHdEFFSjh2Tnl1NXlpSkUKLS0tIHFLSVJiRkpw\nV2taUVdlS1h1V1Y4aE5JUWVmK1d5UjRleVY1Y0VvcmQrMnMKpD5nffC057mv+1wz\nXL8bOS3vBFoupi7IbKw56e0nGkRuMq+Hf2eCKZDRRlLbIi353xXFki7PKDk7ltu9\n2olKQQ==\n-----END AGE ENCRYPTED FILE-----\n"
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFhGYmtrZyBSSEdH\nOGZDWDFhMzB2aVErTDU0Vk1WbnBSa0hmTGNMaXI3aTBuQWMvQkRJCnFpYkRFblZV\nRzF1eGdmTzFQcGhTWFZKdmhyNzRHdEFFSjh2Tnl1NXlpSkUKLS0tIHFLSVJiRkpw\nV2taUVdlS1h1V1Y4aE5JUWVmK1d5UjRleVY1Y0VvcmQrMnMKpD5nffC057mv+1wz\nXL8bOS3vBFoupi7IbKw56e0nGkRuMq+Hf2eCKZDRRlLbIi353xXFki7PKDk7ltu9\n2olKQQ==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"lastmodified": "2025-12-06T08:17:32Z",
|
"lastmodified": "2026-01-30T13:42:20Z",
|
||||||
"mac": "ENC[AES256_GCM,data:MhxnoWuoChPShQZ1lbPGRf/IHLMYLUIGAbE2Rd8OoNOvDy+HA2RsQexKqQUbEZ5Nwz0epLxbiONdDdvpeREOFTMYuKKqR7HlbgX7/lMzqcUnKczdsHdrZL869EodWE0jjULtOtWlSOtVmEJXDLj0t67/nt0IDSvhm8hx1i+wFUw=,iv:3QjJPGUMWZNLvwwqq7qiTe56/Fy0jFAPEKBEgBPFCOE=,tag:0LkLaPHktgGZQvANH+4qlA==,type:str]",
|
"mac": "ENC[AES256_GCM,data:xZmGhEqVh5SIcIfaqOSs1YV23QHXachtBx40C+oyasFvUBhqcniuDHcuFQSmzteywC6jH3r91ilppPjWERz6ml5cfHzBdkbirpbWJg5Hqj+yLz3f98tGkAMmZyc/zc6XkM9BbWQI+R3R9bEaFZ95bnzNeno0EwneEM4aGW1ZsKI=,iv:oz197xm93q7aG3utudgMr3nVdS1IcmTxfnhy7Jc1N9o=,tag:Ar4s0Yjb/xApc0YgpikKtg==,type:str]",
|
||||||
"unencrypted_suffix": "_unencrypted",
|
"unencrypted_suffix": "_unencrypted",
|
||||||
"version": "3.11.0"
|
"version": "3.11.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"data": "ENC[AES256_GCM,data:h/Pbvnv4Yl4FbXGZVzbIgFe5U25PxsMnVvFxjKMadzPmGEkuUcTuJIiAgmCvEOQaDDSczvKnElh7LI9ZA2VnjP+Y4m0Owh/01MWCHuU+FSlUZGGlEPFZAYrjyxaPW5O3hroizX30FanCNn+n4WJBuAqGuvqAXknXB2Bp8qNUoL5na/J0a1U03upyRIF+FgWWzKsKS5qRLPJposkbMSIFd3n+S3emISDsYIIOEYUhaTkc0L/l4av/VLvKHszd0fUfEn0fFpR7qYCFvomDQ5svLOlxZRQrqv1WV6nCl/WyLK05DPozig6WaC+xa5XUZ0e1JtT5t3QK17XC7PnEwnORbzU8wcWWjOXhs6zsm2stwWzXvsYgzh0cMXfELwlp9QvFp19GqQF3VytWXhDrL5IpcYBb7/3vf6SzElx3kE7LHqBeNZMhRcpedi4ZLBMo1dUoA01Wso5BKs23WVXlLttoNpVXGWTxb/hJZpL3qX8LvXl1m47wiX5d0/6KJDKlupgC9rMHijsuXEVuDONOY6SZGWGlvX6/fudEIt6gHF5ipGJRKstTy580RVJ2MuCObvZSNV/csAnmQLmjmrVzeIv7L4YiSa6hi+Pjvh+yh93LbGy9YDu7MP2m4s4cioUZZTU7tNbC+I+GGSQclwQrGkhjsfCkmA4yJAu4ZOzC5MexZpL89OpsoZ7gQSIBGr1dWvC3+gQIllUvtgDGIqdyWdi7J88DIKNmPMo6c/+dIhZG96v/y7x0Fhi9EwMc/iTH16VV/5Nvpw==,iv:q6mrVJBEaVmVrESZZgIiyBMkVR117CQ9aCZgXFrhLW8=,tag:79/1yxfSrPjixcAellYfZw==,type:str]",
|
"data": "ENC[AES256_GCM,data:TroErAaIJCpWgVkxmoCgxCekphwh5x9oiFXnENXoiXiAaWnUWSB9y2sNbuGTxq8ngWt9pnZ4ZWWCiLaMvk1b/rjJCZzF3mJh/SuzqUkrayspTPcSTbQVHOHlrH7TKVSBJDQCZmAw0k4E0unSxoujEOorymzTY8ZxJTuSu3ugOez7Z48bDTgv4xMG9CvJku/HKakg/DgrAGaTXgfwal4hSB/9inNd9e1uq4clrkDhsN+zg6uJ+EHre/MUkf2MaIG5EI3y904+jm5Zvm5gTynPCjbVvVyjjXenGOwzS3fkxSVJjDvZItn3QZpKC/OqyrrX+c0zEiQMK880E1Ru4f13QphgWoMkthtdNSRoJqKHuK8UJ5onlfOmLkfQjKQ5cIYWgyI7dq5Rfx2yGbNMNEwAQodN3AC5NaLHdcFbs9Yi2VSAKbv5aEifizHYy3HgjxYcSW0EM53/Sn/CL8G2HK7ei7qeYbTT9bFbpgbPYiUeBuaN2Jfx13Mh5yWs98NhhIltjWtrtvvtBrBf7tPo2nAGVW781MaGF5uS44WVjxMMrFPq6WHRB9pwop5AS475h6ihmUIx4Pg/3JFV1uLXtvEeNuiBOULrwdkt1MXRxz6uiYux3WdWpljq1AIvRCLN3Ehi8VYEWyvEbP3gMp9EeOeJYXZ07hFV5dJCJTF7V1sP8GOCWmj0Ro61CEH13OA8V97M8Vi6ZdQg/o+Q,iv:1/HTU2AHTRSPun59Xa28yjlg312bTdDkiicQzO8515E=,tag:T/wEKWpWbhri1ZttG1JRwg==,type:str]",
|
||||||
"sops": {
|
"sops": {
|
||||||
"age": [
|
"age": [
|
||||||
{
|
{
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFhGYmtrZyBFZ1J2\nNk9yWUNaemVBOFRiVmdmWGdRWVN0UG5Hc1lZRTBiaHdnS0E2UlN3CitPUmdjdVdu\nS1FXbjVCRkxZUk5KdW0xRzNheWJ1TWVYcUJMK3k0TlRFSWsKLS0tIFJSTlN4a29x\nWG8zUlcvYmlZQkQwT3hlWFlOVUIwSkt3SE5RTzhQWVIxUkUKVSMJtNCEZ1KpcUgQ\nkuTFjaBHvizq980kkbNbD4FgeCAPZ3CwXA8/nKhN03iPeFqwX5AsO0n3+ge/qMnO\nkoRc/Q==\n-----END AGE ENCRYPTED FILE-----\n"
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFhGYmtrZyBFZ1J2\nNk9yWUNaemVBOFRiVmdmWGdRWVN0UG5Hc1lZRTBiaHdnS0E2UlN3CitPUmdjdVdu\nS1FXbjVCRkxZUk5KdW0xRzNheWJ1TWVYcUJMK3k0TlRFSWsKLS0tIFJSTlN4a29x\nWG8zUlcvYmlZQkQwT3hlWFlOVUIwSkt3SE5RTzhQWVIxUkUKVSMJtNCEZ1KpcUgQ\nkuTFjaBHvizq980kkbNbD4FgeCAPZ3CwXA8/nKhN03iPeFqwX5AsO0n3+ge/qMnO\nkoRc/Q==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"lastmodified": "2025-12-06T08:17:10Z",
|
"lastmodified": "2026-01-30T13:42:30Z",
|
||||||
"mac": "ENC[AES256_GCM,data:TcggNSUao5C6zGSy34feYSUPvzi0ovDug8ZrvW7yMash/1cGZDGemwPy7fSfPdMWFcWfeGPWUH3nd4p3qzFLzyVGvVGPHTi8oiDcEQtqnye60otBwHdT2vcMoXawSFNe5r8c2llNUgYf7iIBBU1n2l7qCl1kjfl55KvlInZFCuo=,iv:9bpo1DKlBCpciVEdotkHkTMsmH/bueYixzyTw+i4SzE=,tag:Cp6C38XuMhM+pT/TDqJoMA==,type:str]",
|
"mac": "ENC[AES256_GCM,data:KuB/Zdzy5gKDayUY0YhSNrKMnG1tdzRnxZvsTjj79lYoZzQ/9Tw1mAmn3vBjJx/aZtpXusxN12uxP1vzqFoAOpvbXGTDRv7fhCaq1CSayWSrhddwRlAIaQ6tUAOOu/fcoofTB6KWJNFhhDwn+o5lF48cgp1m7SL+op1NDkXBoK0=,iv:J0jUA9LfBoT1hBgoItqYdM6MmRhamTZCo9/TJKF18ck=,tag:SynvQk7+D83JAikLH4HNSg==,type:str]",
|
||||||
"unencrypted_suffix": "_unencrypted",
|
"unencrypted_suffix": "_unencrypted",
|
||||||
"version": "3.11.0"
|
"version": "3.11.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user