Compare commits

..

2 Commits

Author SHA1 Message Date
6f0d716cba yazi
install yazi plugins
2026-03-30 00:34:49 +02:00
090fb01c0a openscad & kitty
enable nvim openscad and switch to kitty
2026-03-28 13:55:32 +01:00
27 changed files with 410 additions and 59 deletions

View File

@@ -1,7 +1,19 @@
{ pkgs, ... }:
{
services.printing.drivers = [ pkgs.epson-escpr ];
environment.systemPackages = with pkgs; [
gutenprint
];
services.printing = {
enable = true;
listenAddresses = [ "*:631" ];
allowFrom = [ "all" ];
browsing = true;
defaultShared = true;
openFirewall = true;
drivers = [ pkgs.epson-escpr ];
};
hardware.printers = {
ensurePrinters = [
{

View File

@@ -71,7 +71,6 @@ in
defaultSession = "river";
};
libinput.enable = true; # Enable touchpad.
printing.enable = true;
};
programs = {
@@ -184,5 +183,5 @@ in
allowUnfree = true;
permittedInsecurePackages = [ "electron-32.3.3" ];
};
system.stateVersion = "23.11";
system.stateVersion = "26.05";
}

93
flake.lock generated
View File

@@ -81,6 +81,24 @@
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -221,6 +239,22 @@
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1772419343,
"narHash": "sha256-QU3Cd5DJH7dHyMnGEFfPcZDaCAsJQ6tUD+JuUsYqnKU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "93178f6a00c22fcdee1c6f5f9ab92f2072072ea9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts_2",
@@ -271,7 +305,29 @@
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"nur": "nur",
"sops-nix": "sops-nix"
"sops-nix": "sops-nix",
"yazi": "yazi"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"yazi",
"nixpkgs"
]
},
"locked": {
"lastModified": 1772420823,
"narHash": "sha256-q3oVwz1Rx41D1D+F6vg41kpOkk3Zi3KwnkHEZp7DCGs=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "458eea8d905c609e9d889423e6b8a1c7bc2f792c",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"sops-nix": {
@@ -308,6 +364,41 @@
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"yazi": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_5",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1774567340,
"narHash": "sha256-skKD1hvAvilKkK406RgNl6X/YJgkSsoZmtHmdfeoyWI=",
"owner": "sxyazi",
"repo": "yazi",
"rev": "935eb6b2989f8a7ce219a2a71a539365c8dccfbb",
"type": "github"
},
"original": {
"owner": "sxyazi",
"repo": "yazi",
"type": "github"
}
}
},
"root": "root",

View File

@@ -33,6 +33,8 @@
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
yazi.url = "github:sxyazi/yazi";
};
outputs =
@@ -45,6 +47,7 @@
nixvim,
nur,
sops-nix,
yazi,
...
}@inputs:
{

View File

@@ -52,7 +52,7 @@
sops
];
stateVersion = "23.11";
stateVersion = "26.05";
};
programs.home-manager.enable = true;

View File

@@ -1,18 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
fira-code
];
programs.alacritty = {
enable = true;
settings.font = {
size = 8;
normal.family = "Fira Code";
bold.family = "Fira Code";
italic.family = "Fira Code";
};
};
}

View File

@@ -1,16 +1,16 @@
{
imports = [
./3dprint.nix
./alacritty.nix
./anki.nix
./calibre.nix
./digikam.nix
./eww
./filebrowser.nix
./filebrowser
./git.nix
./hyprlock.nix
./imv.nix
./inkscape.nix
./kitty.nix
./libreoffice.nix
./messenger.nix
./nixvim

0
home/programs/eww/src/scripts/audio.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/battery.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/cpu.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/memory.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/network.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/powermenu.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/ristate.sh Executable file → Normal file
View File

0
home/programs/eww/src/scripts/ristate_read.sh Executable file → Normal file
View File

View File

@@ -1,15 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
kdePackages.dolphin
kdePackages.dolphin-plugins
kdePackages.baloo-widgets
kdePackages.baloo
nautilus
udisks
yazi
];
xdg.configFile."menus/applications.menu".source =
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
}

View File

@@ -0,0 +1,252 @@
{ inputs, pkgs, ... }:
let
exifaudio = pkgs.fetchFromGitHub {
owner = "Sonico98";
repo = "exifaudio.yazi";
rev = "4506f9d";
sha256 = "sha256-RWCqWBpbmU3sh/A+LBJPXL/AY292blKb/zZXGvIA5/o=";
};
bunny = pkgs.fetchFromGitHub {
owner = "stelcodes";
repo = "bunny.yazi";
rev = "71b14a3";
sha256 = "sha256-uQO0C00yOFPWq8KEO/kEZM6tFZRc9SiXfgN7kzlwDeA=";
};
in
{
home.packages = with pkgs; [
# kdePackages.dolphin
# kdePackages.dolphin-plugins
# kdePackages.baloo-widgets
# kdePackages.baloo
exiftool
nautilus
ouch
udisks
];
xdg.configFile."menus/applications.menu".source =
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
# ── Yazi ──────────────────────────────────────────────────────────────
programs.yazi = {
enable = true;
package = inputs.yazi.packages.${pkgs.stdenv.hostPlatform.system}.default;
enableZshIntegration = true;
initLua = ./init.lua;
settings = {
yazi = {
ratio = [
1
4
3
];
sort_by = "natural";
sort_sensitive = true;
sort_reverse = false;
sort_dir_first = true;
linemode = "none";
show_hidden = true;
show_symlink = true;
};
preview = {
image_filter = "lanczos3";
image_quality = 90;
tab_size = 1;
max_width = 600;
max_height = 900;
cache_dir = "";
ueberzug_scale = 1;
ueberzug_offset = [
0
0
0
0
];
};
tasks = {
micro_workers = 5;
macro_workers = 10;
bizarre_retry = 5;
};
plugin = {
prepend_previewers = [
{
run = "exifaudio";
mime = "audio/*";
}
];
prepend_fetchers = [
{
id = "git";
url = "*";
run = "git";
}
{
id = "git";
url = "*/";
run = "git";
}
];
};
opener = {
extract = [
{
run = "ouch d -y %*";
desc = "Extract here with ouch";
for = "windows";
}
{
run = "ouch d -y $@";
desc = "Extract here with ouch";
for = "unix";
}
];
};
};
keymap = {
mgr.prepend_keymap = [
{
run = "plugin mount";
on = [ "M" ];
}
{
run = "plugin ouch";
on = [ "C" ];
}
{
run = "plugin bunny";
on = [
";"
];
desc = "Start bunny";
}
{
run = "plugin bunny fuzzy";
on = [
"'"
];
desc = "Start bunny fuzzy search";
}
{
run = "plugin chmod";
on = [
"c"
"m"
];
desc = "Chmod on selected files";
}
{
run = "plugin sudo -- paste";
on = [
"R"
"p"
"p"
];
desc = "sudo paste";
}
{
run = "plugin sudo -- paste --force";
on = [
"R"
"P"
];
desc = "sudo paste";
}
{
run = "plugin sudo -- rename";
on = [
"R"
"r"
];
desc = "sudo rename";
}
{
run = "plugin sudo -- link";
on = [
"R"
"p"
"l"
];
desc = "sudo link";
}
{
run = "plugin sudo -- link --relative";
on = [
"R"
"p"
"r"
];
desc = "sudo link relative path";
}
{
run = "plugin sudo -- hardlink";
on = [
"R"
"p"
"L"
];
desc = "sudo hardlink";
}
{
run = "plugin sudo -- create";
on = [
"R"
"a"
];
desc = "sudo create";
}
{
run = "plugin sudo -- remove";
on = [
"R"
"d"
];
desc = "sudo trash";
}
{
run = "plugin sudo -- remove --permanently";
on = [
"R"
"D"
];
desc = "sudo delete";
}
{
run = "plugin sudo -- chmod";
on = [
"R"
"m"
];
desc = "sudo chmod";
}
{
run = [ "plugin wl-clipboard" ];
on = [ "<C-y" ];
}
];
};
plugins = {
bunny = bunny;
chmod = pkgs.yaziPlugins.chmod;
exifaudio = exifaudio;
git = pkgs.yaziPlugins.git;
mount = pkgs.yaziPlugins.mount;
ouch = pkgs.yaziPlugins.ouch;
sudo = pkgs.yaziPlugins.sudo;
wl-clipboard = pkgs.yaziPlugins.wl-clipboard;
};
};
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
}

View File

@@ -0,0 +1,25 @@
require("bunny"):setup({
hops = {
{ key = "/", path = "/", desc = "Root" },
{ key = "n", path = "/nix/store", desc = "Nix store" },
{ key = "~", path = "~", desc = "Home" },
{ key = "r", path = "~/Repos", desc = "Repos" },
{ key = "d", path = "~/Downloads", desc = "Downloads" },
{ key = "D", path = "~/Documents", desc = "Documents" },
{ key = "c", path = "~/.config", desc = "Config files" },
{ key = { "N", "h" }, path = "~/Nextcloud", desc = "Nexctloud root" },
{ key = { "N", "d" }, path = "~/Nextcloud/Data/Documents", desc = "Nextcloud documents" },
{ key = { "N", "u" }, path = "~/Nextcloud/Uni", desc = "Nextcloud uni" },
-- key and path attributes are required, desc is optional
},
desc_strategy = "path", -- If desc isn't present, use "path" or "filename", default is "path"
ephemeral = true, -- Enable ephemeral hops, default is true
tabs = true, -- Enable tab hops, default is true
notify = false, -- Notify after hopping, default is false
fuzzy_cmd = "fzf", -- Fuzzy searching command, default is "fzf"
})
require("git"):setup({
-- Order of status signs showing in the linemode
order = 1500,
})

View File

@@ -11,6 +11,11 @@
programs.kitty = {
enable = true;
font = {
size = 8;
name = "Fira Code";
package = pkgs.fira-code;
};
settings = {
clear_all_shortcuts = true;
enabled_layouts = "splits:slit_axis=horizontal,stack";

View File

@@ -50,12 +50,6 @@
tex = [
"tex-fmt"
];
openscad = [
"squeeze_blanks"
"trim_whitespace"
"trim_newlines"
"scadstyle"
];
"_" = [
"squeeze_blanks"
"trim_whitespace"
@@ -103,15 +97,6 @@
tex-fmt = {
command = "tex-fmt";
};
scadstyle = {
"inherit" = true;
prepend_args = [
"--indent-type"
"Spaces"
"--indent-width"
"2"
];
};
};
};
};

View File

@@ -1,5 +1,17 @@
{ ... }:
{
programs.nixvim.plugins.openscad.enable = true;
programs.nixvim.plugins.openscad = {
enable = true;
luaConfig.post = ''
vim.g.openscad_fuzzy_finder = 'skim'
-- when the pdf_command is run, the last argument will be the pdf filename
vim.g.openscad_pdf_command = 'zathura'
vim.g.openscad_cheatsheet_window_blend = 15 --%
vim.g.openscad_load_snippets = false
-- should the openscad project automatically be opened on startup
vim.g.openscad_auto_open = false
vim.g.openscad_default_mappings = true
'';
};
}

View File

@@ -66,7 +66,7 @@
};
map = {
normal = {
"Super+Shift Return" = "spawn alacritty";
"Super+Shift Return" = "spawn kitty";
# System
"Super P" = "spawn 'rofi -show drun'";
"Super+Shift C" = "close";

0
home/programs/river/src/lock.sh Executable file → Normal file
View File

0
home/programs/river/src/logout.sh Executable file → Normal file
View File

0
home/programs/river/src/startEww.sh Executable file → Normal file
View File

0
home/programs/taskwarrior/hooks/on-add.sh Executable file → Normal file
View File

View File

@@ -14,7 +14,7 @@ in
./hyprlock.nix
./nvim.nix
./taskwarrior.nix
# ./qt.nix
./qt.nix
];
catppuccin = {
@@ -22,12 +22,12 @@ in
flavor = "mocha";
accent = "pink";
alacritty.enable = true;
anki.enable = true;
element-desktop.enable = true;
firefox.enable = true;
fzf.enable = true;
imv.enable = true;
kitty.enable = true;
lazygit.enable = true;
rofi.enable = true;
spotify-player.enable = true;