split shell config, add yazi config and switch from mpdscribble to yams
This commit is contained in:
Generated
+4
-4
@@ -840,17 +840,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791984735,
|
"lastModified": 1792959440,
|
||||||
"narHash": "sha256-qTgWYsCg/pi6wI1PM4lolldIUNhokvsalfYbyjfIoKk=",
|
"narHash": "sha256-tCqeshGKYtT6rxKloO+W6X0BG1/V/6Wdm/53EW9DDas=",
|
||||||
"owner": "AceSLS",
|
"owner": "AceSLS",
|
||||||
"repo": "SLSsteam",
|
"repo": "SLSsteam",
|
||||||
"rev": "136f614f979d6038f7cee1bc6db5261539a5ac9e",
|
"rev": "7f59509e51bfdb9f385300bdc85269f84618bf99",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "AceSLS",
|
"owner": "AceSLS",
|
||||||
"repo": "SLSsteam",
|
"repo": "SLSsteam",
|
||||||
"rev": "136f614f979d6038f7cee1bc6db5261539a5ac9e",
|
"rev": "7f59509e51bfdb9f385300bdc85269f84618bf99",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
sls-steam = {
|
sls-steam = {
|
||||||
url = "github:AceSLS/SLSsteam/136f614f979d6038f7cee1bc6db5261539a5ac9e";
|
url = "github:AceSLS/SLSsteam/7f59509e51bfdb9f385300bdc85269f84618bf99";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./programs.nix
|
./programs.nix
|
||||||
../../../modules/shell.nix
|
../../../modules/shell
|
||||||
../../../modules/home/mpd.nix
|
../../../modules/home/mpd.nix
|
||||||
../../../modules/home/hyprland
|
../../../modules/home/hyprland
|
||||||
../../../modules/home/kitty.nix
|
../../../modules/home/kitty.nix
|
||||||
|
|||||||
@@ -78,9 +78,9 @@
|
|||||||
wineWow64Packages.yabridge
|
wineWow64Packages.yabridge
|
||||||
rsgain
|
rsgain
|
||||||
flac
|
flac
|
||||||
eddie
|
|
||||||
ddcutil
|
ddcutil
|
||||||
iotop
|
iotop
|
||||||
|
yams
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../modules/shell.nix
|
../../../modules/shell
|
||||||
../../../modules/home/beets.nix
|
../../../modules/home/beets.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
+25
-7
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.file."Music".source = config.lib.file.mkOutOfStoreSymlink "/media/music";
|
home.file."Music".source = config.lib.file.mkOutOfStoreSymlink "/media/music";
|
||||||
|
|
||||||
@@ -28,13 +28,31 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mpdscribble = {
|
# services.mpdscribble = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
endpoints = {
|
# endpoints = {
|
||||||
"last.fm" = {
|
# "last.fm" = {
|
||||||
passwordFile = "/run/secrets/lastfm_password";
|
# passwordFile = "/run/secrets/lastfm_password";
|
||||||
username = "KeksNino";
|
# username = "KeksNino";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
systemd.user.services.yams = {
|
||||||
|
Unit = {
|
||||||
|
Description = "yams";
|
||||||
|
After = [
|
||||||
|
"sops-nix.service"
|
||||||
|
"mpd.service"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
Environment = "NON_INTERACTIVE=1";
|
||||||
|
ExecStart = "${pkgs.yams}/bin/.yams-wrapped -N";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./fish.nix
|
||||||
|
./utils.nix
|
||||||
|
./tmux.nix
|
||||||
|
./yazi.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
programs.fish = {
|
||||||
|
enable = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
|
nitch
|
||||||
|
set -g fish_key_bindings fish_hybrid_key_bindings
|
||||||
|
set fish_greeting
|
||||||
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
ls = "eza -al --no-time --no-user --no-permissions --no-filesize";
|
||||||
|
ll = "eza -la";
|
||||||
|
cat = "bat";
|
||||||
|
cp = "cp -v";
|
||||||
|
ff = "fastfetch";
|
||||||
|
grep = "grep -i";
|
||||||
|
rg = "rg -i";
|
||||||
|
hyprland = "start-hyprland";
|
||||||
|
mv = "mv -v";
|
||||||
|
n = "nvim";
|
||||||
|
py = "uv run";
|
||||||
|
r = "rsync -avh --info=progress2";
|
||||||
|
rm = "gomi";
|
||||||
|
ssh = "kitten ssh";
|
||||||
|
nd = "nix develop";
|
||||||
|
df = "df -h -x tmpfs -x devtmpfs -x squashfs -x overlay -x efivarfs";
|
||||||
|
ms = "music-sort";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
prefix = "C-b";
|
||||||
|
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
|
||||||
|
baseIndex = 0;
|
||||||
|
|
||||||
|
mouse = false;
|
||||||
|
|
||||||
|
keyMode = "vi";
|
||||||
|
|
||||||
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
|
sensible
|
||||||
|
vim-tmux-navigator
|
||||||
|
resurrect
|
||||||
|
continuum
|
||||||
|
{
|
||||||
|
plugin = tmux-sessionx;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @sessionx-bind 'o'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
|
|
||||||
|
unbind r
|
||||||
|
bind r source-file ~/.tmux.conf
|
||||||
|
|
||||||
|
set-option -g status-style bg=default
|
||||||
|
set -g status-position bottom
|
||||||
|
set -g status-justify "absolute-centre"
|
||||||
|
|
||||||
|
set-option -g window-status-current-style fg=yellow
|
||||||
|
set-option -g window-status-style fg=brightwhite
|
||||||
|
|
||||||
|
set -wg automatic-rename on
|
||||||
|
set -g automatic-rename-format "#{pane_current_command}"
|
||||||
|
|
||||||
|
set -g @resurrect-capture-pane-contents "on"
|
||||||
|
set -g @continuum-restore "on"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,32 +1,4 @@
|
|||||||
{
|
{
|
||||||
programs.fish = {
|
|
||||||
enable = true;
|
|
||||||
interactiveShellInit = ''
|
|
||||||
nitch
|
|
||||||
set -g fish_key_bindings fish_hybrid_key_bindings
|
|
||||||
set fish_greeting
|
|
||||||
'';
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza -al --no-time --no-user --no-permissions --no-filesize";
|
|
||||||
ll = "eza -la";
|
|
||||||
cat = "bat";
|
|
||||||
cp = "cp -v";
|
|
||||||
ff = "fastfetch";
|
|
||||||
grep = "grep -i";
|
|
||||||
rg = "rg -i";
|
|
||||||
hyprland = "start-hyprland";
|
|
||||||
mv = "mv -v";
|
|
||||||
n = "nvim";
|
|
||||||
py = "uv run";
|
|
||||||
r = "rsync -avh --info=progress2";
|
|
||||||
rm = "gomi";
|
|
||||||
ssh = "kitten ssh";
|
|
||||||
nd = "nix develop";
|
|
||||||
df = "df -h -x tmpfs -x devtmpfs -x squashfs -x overlay -x efivarfs";
|
|
||||||
ms = "music-sort";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
@@ -53,14 +25,9 @@
|
|||||||
programs.btop.enable = true;
|
programs.btop.enable = true;
|
||||||
programs.fastfetch.enable = true;
|
programs.fastfetch.enable = true;
|
||||||
|
|
||||||
programs.yazi.enable = true;
|
|
||||||
programs.yazi.enableFishIntegration = true;
|
|
||||||
|
|
||||||
programs.lazygit.enable = true;
|
programs.lazygit.enable = true;
|
||||||
programs.lazygit.enableFishIntegration = true;
|
programs.lazygit.enableFishIntegration = true;
|
||||||
|
|
||||||
programs.tmux.enable = true;
|
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
@@ -0,0 +1,643 @@
|
|||||||
|
{
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
keymap = {
|
||||||
|
mgr.prepend_keymap = [
|
||||||
|
{
|
||||||
|
run = "close";
|
||||||
|
on = "q";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "plugin zoxide";
|
||||||
|
on = "z";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "plugin fzf";
|
||||||
|
on = "Z";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "open --interactive";
|
||||||
|
on = "<C-Enter>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "copy path";
|
||||||
|
on = [
|
||||||
|
"y"
|
||||||
|
"p"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = [
|
||||||
|
"yank"
|
||||||
|
"escape --visual --select"
|
||||||
|
];
|
||||||
|
on = [
|
||||||
|
"y"
|
||||||
|
"y"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "tab_create --current";
|
||||||
|
on = "t";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "cd ~/.local/share/Trash/files";
|
||||||
|
on = [
|
||||||
|
"g"
|
||||||
|
"t"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
mgr = {
|
||||||
|
ratio = [
|
||||||
|
1
|
||||||
|
3
|
||||||
|
4
|
||||||
|
];
|
||||||
|
sort_by = "natural";
|
||||||
|
sort_sensitive = false;
|
||||||
|
sort_reverse = false;
|
||||||
|
sort_dir_first = true;
|
||||||
|
linemode = "mtime";
|
||||||
|
show_hidden = true;
|
||||||
|
show_symlink = true;
|
||||||
|
scrolloff = 5;
|
||||||
|
};
|
||||||
|
|
||||||
|
preview = {
|
||||||
|
tab_size = 4;
|
||||||
|
max_width = 1200;
|
||||||
|
max_height = 1200;
|
||||||
|
cache_dir = "";
|
||||||
|
image_filter = "lanczos3";
|
||||||
|
image_quality = 90;
|
||||||
|
sixel_fraction = 10;
|
||||||
|
ueberzug_scale = 1;
|
||||||
|
ueberzug_offset = [
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
opener = {
|
||||||
|
edit = [
|
||||||
|
{
|
||||||
|
run = "nvim %s";
|
||||||
|
desc = "neovim";
|
||||||
|
block = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "neovide %s";
|
||||||
|
desc = "neovide";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
open = [
|
||||||
|
{
|
||||||
|
run = "xdg-open %s1";
|
||||||
|
desc = "Open";
|
||||||
|
for = "linux";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
reveal = [
|
||||||
|
{
|
||||||
|
run = "clear; exiftool %s1; echo 'Press enter to exit'; read _";
|
||||||
|
desc = "Show EXIF";
|
||||||
|
for = "unix";
|
||||||
|
block = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
extract = [
|
||||||
|
{
|
||||||
|
run = "unzip %s1";
|
||||||
|
desc = "Extract here";
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
play = [
|
||||||
|
{
|
||||||
|
run = "mpv %s1";
|
||||||
|
orphan = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "vlc %s1";
|
||||||
|
orphan = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "losslesscut %s1";
|
||||||
|
orphan = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "kdenlive %s1";
|
||||||
|
orphan = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
audio = [
|
||||||
|
{
|
||||||
|
run = "org.gnome.Decibels %s1";
|
||||||
|
desc = "Decibels";
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
run = "spek %s1";
|
||||||
|
desc = "Spek";
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
open = {
|
||||||
|
rules = [
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
use = [
|
||||||
|
"edit"
|
||||||
|
"open"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "text/*";
|
||||||
|
use = [
|
||||||
|
"edit"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/*";
|
||||||
|
use = [
|
||||||
|
"open"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*.m4a";
|
||||||
|
use = [
|
||||||
|
"audio"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "video/*";
|
||||||
|
use = [
|
||||||
|
"play"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "audio/*";
|
||||||
|
use = [
|
||||||
|
"audio"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "inode/x-empty";
|
||||||
|
use = [
|
||||||
|
"edit"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/json";
|
||||||
|
use = [
|
||||||
|
"edit"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "*/javascript";
|
||||||
|
use = [
|
||||||
|
"edit"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/zip";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/gzip";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/x-tar";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/x-bzip";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/x-bzip2";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/x-7z-compressed";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/x-rar";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/xz";
|
||||||
|
use = [
|
||||||
|
"extract"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "*";
|
||||||
|
use = [
|
||||||
|
"open"
|
||||||
|
"reveal"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
tasks = {
|
||||||
|
micro_workers = 10;
|
||||||
|
macro_workers = 25;
|
||||||
|
bizarre_retry = 5;
|
||||||
|
image_alloc = 536870912;
|
||||||
|
image_bound = [
|
||||||
|
0
|
||||||
|
0
|
||||||
|
];
|
||||||
|
suppress_preload = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin = {
|
||||||
|
fetchers = [
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "mime.dir";
|
||||||
|
prio = "high";
|
||||||
|
group = "mime";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "local://*";
|
||||||
|
run = "mime.local";
|
||||||
|
prio = "high";
|
||||||
|
group = "mime";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "remote://*";
|
||||||
|
run = "mime.remote";
|
||||||
|
prio = "high";
|
||||||
|
group = "mime";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
spotters = [
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "folder";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "text/*";
|
||||||
|
run = "code";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{mbox,javascript,wine-extension-ini}";
|
||||||
|
run = "code";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/{avif,hei?,jxl}";
|
||||||
|
run = "magick";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/svg+xml";
|
||||||
|
run = "svg";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/*";
|
||||||
|
run = "image";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "video/*";
|
||||||
|
run = "video";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "vfs/*";
|
||||||
|
run = "vfs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "null/*";
|
||||||
|
run = "null";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*";
|
||||||
|
run = "file";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
preloaders = [
|
||||||
|
{
|
||||||
|
mime = "image/{avif,hei?,jxl}";
|
||||||
|
run = "magick";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/svg+xml";
|
||||||
|
run = "svg";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/*";
|
||||||
|
run = "image";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "video/*";
|
||||||
|
run = "video";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/pdf";
|
||||||
|
run = "pdf";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "font/*";
|
||||||
|
run = "font";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/ms-opentype";
|
||||||
|
run = "font";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
previewers = [
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "folder";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "text/*";
|
||||||
|
run = "code";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{mbox,javascript,wine-extension-ini}";
|
||||||
|
run = "code";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{json,ndjson}";
|
||||||
|
run = "json";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/{avif,hei?,jxl}";
|
||||||
|
run = "magick";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/svg+xml";
|
||||||
|
run = "svg";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "image/*";
|
||||||
|
run = "image";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "video/*";
|
||||||
|
run = "video";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/pdf";
|
||||||
|
run = "pdf";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{debian*-package,redhat-package-manager,rpm,android.package-archive}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*.{AppImage,appimage}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/{iso9660-image,qemu-disk,ms-wim,apple-diskimage}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/virtualbox-{vhd,vhdx}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*.{img,fat,ext,ext2,ext3,ext4,squashfs,ntfs,hfs,hfsx}";
|
||||||
|
run = "archive";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "font/*";
|
||||||
|
run = "font";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "application/ms-opentype";
|
||||||
|
run = "font";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "inode/empty";
|
||||||
|
run = "empty";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "vfs/*";
|
||||||
|
run = "vfs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mime = "null/*";
|
||||||
|
run = "null";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*";
|
||||||
|
run = "file";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
prepend_previewers = [
|
||||||
|
{
|
||||||
|
mime = "audio/*";
|
||||||
|
run = "exifaudio";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
prepend_fetchers = [
|
||||||
|
{
|
||||||
|
url = "*";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
input = {
|
||||||
|
cd_title = "Change directory:";
|
||||||
|
cd_origin = "top-center";
|
||||||
|
cd_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
create_title = [
|
||||||
|
"Create:"
|
||||||
|
"Create (dir):"
|
||||||
|
];
|
||||||
|
create_origin = "top-center";
|
||||||
|
create_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
rename_title = "Rename:";
|
||||||
|
rename_origin = "hovered";
|
||||||
|
rename_offset = [
|
||||||
|
0
|
||||||
|
1
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
trash_title = "Move {n} selected file{s} to trash? (y/N)";
|
||||||
|
trash_origin = "top-center";
|
||||||
|
trash_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
delete_title = "Delete {n} selected file{s} permanently? (y/N)";
|
||||||
|
delete_origin = "top-center";
|
||||||
|
delete_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
filter_title = "Filter:";
|
||||||
|
filter_origin = "top-center";
|
||||||
|
filter_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
find_title = [
|
||||||
|
"Find next:"
|
||||||
|
"Find previous:"
|
||||||
|
];
|
||||||
|
find_origin = "top-center";
|
||||||
|
find_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
search_title = "Search via {n}:";
|
||||||
|
search_origin = "top-center";
|
||||||
|
search_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
shell_title = [
|
||||||
|
"Shell:"
|
||||||
|
"Shell (block):"
|
||||||
|
];
|
||||||
|
shell_origin = "top-center";
|
||||||
|
shell_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
shell = "/bin/fish";
|
||||||
|
|
||||||
|
overwrite_title = "Overwrite an existing file? (y/N)";
|
||||||
|
overwrite_origin = "top-center";
|
||||||
|
overwrite_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
|
||||||
|
quit_title = "{n} task{s} running, sure to quit? (y/N)";
|
||||||
|
quit_origin = "top-center";
|
||||||
|
quit_offset = [
|
||||||
|
0
|
||||||
|
2
|
||||||
|
50
|
||||||
|
3
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
select = {
|
||||||
|
open_title = "Open with:";
|
||||||
|
open_origin = "hovered";
|
||||||
|
open_offset = [
|
||||||
|
0
|
||||||
|
1
|
||||||
|
50
|
||||||
|
7
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
which = {
|
||||||
|
sort_by = "none";
|
||||||
|
sort_sensitive = false;
|
||||||
|
sort_reverse = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
log.enabled = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
+29
-4
@@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ../secrets/secrets.yaml;
|
defaultSopsFile = ../secrets/secrets.yaml;
|
||||||
@@ -6,13 +6,38 @@
|
|||||||
|
|
||||||
age.keyFile = "/home/user/.config/sops/age/keys.txt";
|
age.keyFile = "/home/user/.config/sops/age/keys.txt";
|
||||||
|
|
||||||
secrets."lastfm_password" = {
|
secrets = {
|
||||||
|
"lastfm_password" = {
|
||||||
owner = "user";
|
owner = "user";
|
||||||
};
|
};
|
||||||
|
"slskd_secrets" = {
|
||||||
secrets."slskd_secrets" = {
|
|
||||||
owner = "user";
|
owner = "user";
|
||||||
};
|
};
|
||||||
|
lastfm_api_key = { };
|
||||||
|
lastfm_api_secret = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
templates."yams.yaml" = {
|
||||||
|
path = "/home/user/.config/yams/yams.yml";
|
||||||
|
owner = "user";
|
||||||
|
|
||||||
|
content = ''
|
||||||
|
allow_same_track_scrobble_in_a_row: false
|
||||||
|
api_key: "${config.sops.placeholder.lastfm_api_key}"
|
||||||
|
api_secret: "${config.sops.placeholder.lastfm_api_secret}"
|
||||||
|
base_url: http://ws.audioscrobbler.com/2.0/
|
||||||
|
disable_log: false
|
||||||
|
mpd_host: /tmp/mpd_socket
|
||||||
|
mpd_port: '6600'
|
||||||
|
no_daemon: false
|
||||||
|
real_time: true
|
||||||
|
scrobble_min_time: 10
|
||||||
|
scrobble_threshold: 30
|
||||||
|
session_file: /home/user/.config/yams/.lastfm_session
|
||||||
|
update_interval: 1
|
||||||
|
watch_threshold: 5
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
useSystemdActivation = true;
|
useSystemdActivation = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
hostName = "nixos-desktop";
|
hostName = "nixos-desktop";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
|
wg-quick.interfaces.wg0.configFile = "/etc/wireguard/wg0.conf";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
lastfm_password: ENC[AES256_GCM,data:k8wfXqaUOMAuoZ05uM8=,iv:bgvMefgKZM02Wio41HgFmOBQ/n7jnTFtjmZDPt7X5Vk=,tag:6NFalog2QjsHwhSBpWyt1w==,type:str]
|
lastfm_password: ENC[AES256_GCM,data:k8wfXqaUOMAuoZ05uM8=,iv:bgvMefgKZM02Wio41HgFmOBQ/n7jnTFtjmZDPt7X5Vk=,tag:6NFalog2QjsHwhSBpWyt1w==,type:str]
|
||||||
|
lastfm_api_key: ENC[AES256_GCM,data:BuO4A/+WWr+Ifv3U7O6kCRd5sJV7wZpb5YqPvoQCRp8=,iv:mC73XVdtC+3CioNobj8BLjcZZohZdHBarT+Lu4SoYKs=,tag:6k7xZyLyximhqg8mifcOIg==,type:str]
|
||||||
|
lastfm_api_secret: ENC[AES256_GCM,data:zXpXVf5G/muS10IvIUnpHlPvLx0c+S2+3vBGnLQemBg=,iv:SRNcsuGhnm640urOskH9tr0ykJExKYY4DCAuM+Y2Yjk=,tag:vrNxQr5JIeFIrCPr6EEOlw==,type:str]
|
||||||
slskd_secrets: ENC[AES256_GCM,data:TucvWuybP5KNNeUGPs80MPscRfGKMsQPD/4oPgRV1XIA/8r7lULDZvVGHAjujxxg013nY61HFbRoWGtLjFBDeu+WyNxcZtucKQhdAQE1o0Vmm/NAa93WyLlGeoBeOj4qb31e4exYHokxQXp5b2BsaJ5MatkkJVSbrliELg2zLgbcRa1uxSfTHXrVyWVSRBB8,iv:rR5nsBmHg9xRaytMdx/ko9XU5pchb1D5VsQsPy21who=,tag:EQ6USTwGiELllZrJhAPqJA==,type:str]
|
slskd_secrets: ENC[AES256_GCM,data:TucvWuybP5KNNeUGPs80MPscRfGKMsQPD/4oPgRV1XIA/8r7lULDZvVGHAjujxxg013nY61HFbRoWGtLjFBDeu+WyNxcZtucKQhdAQE1o0Vmm/NAa93WyLlGeoBeOj4qb31e4exYHokxQXp5b2BsaJ5MatkkJVSbrliELg2zLgbcRa1uxSfTHXrVyWVSRBB8,iv:rR5nsBmHg9xRaytMdx/ko9XU5pchb1D5VsQsPy21who=,tag:EQ6USTwGiELllZrJhAPqJA==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
@@ -11,7 +13,7 @@ sops:
|
|||||||
kF8qcidjuq6S8ll7re4TEPvidwwVDmqiIAx4M28B70xB57rtr+2q2Q==
|
kF8qcidjuq6S8ll7re4TEPvidwwVDmqiIAx4M28B70xB57rtr+2q2Q==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
recipient: age1pwwatyrc0vftxx72muq43kwvhm8apl4g5de0d4dr8q490mp38gmst3g24q
|
recipient: age1pwwatyrc0vftxx72muq43kwvhm8apl4g5de0d4dr8q490mp38gmst3g24q
|
||||||
lastmodified: "2026-09-11T20:06:51Z"
|
lastmodified: "2026-11-05T14:17:57Z"
|
||||||
mac: ENC[AES256_GCM,data:C80wh5s2Ef+Q9OpG6+WP0VDCPlwhzUOXZTLUJhn1HWCjWURExTXNW3NsvriQ5E4pezOkjaWjYSNEka1movtuUwkTSvFop1Wis/kHPibh9Erge//ia9VA/4npY3iGRH8Bl/6d/7lbHNl66zC+9/yKesiRRBbjqy5winyprvBOP2I=,iv:WFhvmY10yQ8H9+9GkAcWQFe3LtT/lR1mNGGrSeTJovU=,tag:+oO45a1AFCDnXfJiurxESA==,type:str]
|
mac: ENC[AES256_GCM,data:xB0OLixmv86ZiSUKxYNCNEPj/F6E/nIhN1EjFgpmhZtzV9Fm4CmlvW5AfFQb5xM1HUS5+uruqCGErw/2Cg/+YjOkFCWT4Bsmz8Q1C38md5I7vdritXS6rdWJh5837HV7iZP0QPWlBra7jAuuwFS2ADvClTvobowF5ipnBXS/xFM=,iv:AVL64qQ4f1QtL/kPKHeHt+sQfaQbC/kbf8ogujCXzZM=,tag:5Qw2hUAuOm08ET5bwr07Cw==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.13.3
|
version: 3.13.3
|
||||||
|
|||||||
Reference in New Issue
Block a user