Compare commits

..

No commits in common. "f930ad59f554ee9fe050bb8c0ddc39f39d236615" and "2a3c577dc0034bc55c5d35d42a9269ba6e6858dd" have entirely different histories.

17 changed files with 45 additions and 348 deletions

View file

@ -5,22 +5,5 @@
./starship.nix ./starship.nix
./firefox.nix ./firefox.nix
./cli.nix ./cli.nix
./mpv.nix
./ssh.nix
]; ];
services.syncthing = {
enable = true;
tray.enable = true;
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableFishIntegration = true;
pinentryPackage = pkgs.pinentry-tty;
maxCacheTtl = 60480000;
maxCacheTtlSsh = 60480000;
defaultCacheTtl = 60480000;
defaultCacheTtlSsh = 60480000;
};
} }

View file

@ -29,7 +29,5 @@
"extensions.pocket.enabled" = false; "extensions.pocket.enabled" = false;
"browser.newtabpage.activity-stream.default.sites" = ""; "browser.newtabpage.activity-stream.default.sites" = "";
"browser.compactmode.show" = true; "browser.compactmode.show" = true;
# "ui.textScaleFactor" = 90;
"layout.css.devPixelsPerPx" = 1.7;
}; };
} }

View file

@ -26,36 +26,18 @@
"df" = "df -x tmpfs -x devtmpfs -x efivarfs -h"; "df" = "df -x tmpfs -x devtmpfs -x efivarfs -h";
# Nix # Nix
"nrs" = "sudo nixos-rebuild switch --flake path:/home/gkaklas/nix/nixos/"; "nrs" = "sudo nixos-rebuild switch --flake ~gkaklas/nix/nixos/";
"upn" = "sudo nix flake update --flake path:/home/gkaklas/nix/nixos/"; "upn" = "sudo nix flake update ~gkaklas/nix/nixos/";
"cln" = "sudo nix profile wipe-history --older-than 7d --profile /nix/var/nix/profiles/system"; "hms" = "home-manager switch --flake ~/nix/home-manager/";
"hms" = "home-manager switch --flake path:/home/gkaklas/nix/home-manager/"; "uph" = "nix flake update ~/nix/home-manager/ ";
"hm" = "home-manager --flake path:/home/gkaklas/nix/home-manager/";
"uph" = "nix flake update --flake path:/home/gkaklas/nix/home-manager/ ";
"clh" = "nix profile wipe-history --older-than 7d && home-manager expire-generations '-7 days'";
"update" = "upn && nrs && cln && uph && hms && clh && nix store gc && nix store optimise && ntfy pub kelly 'Update done!'";
# git # git
"gc" = "git commit --verbose --gpg-sign --signoff"; "gc" = "git commit --verbose --gpg-sign --signoff";
"gc!" = "git commit --verbose --gpg-sign --signoff --amend"; "gc!" = "git commit --verbose --gpg-sign --signoff --amend";
"gst" = "git status"; "gst" = "git status";
"gd" = "git diff";
"grbi" = "git rebase -i";
"grba" = "git rebase --abort";
"grbc" = "git rebase --continue";
"gdca" = "git diff --cached"; "gdca" = "git diff --cached";
"gapa" = "git add --patched"; "gapa" = "git add --patched";
"glola" = "git log --graph --pretty=\"%G?-%C(magenta)%h %C(yellow)(%al)%C(cyan): %s\" --color=always"; "glola" = "git log --graph --pretty=\"%G?-%C(magenta)%h %C(yellow)(%al)%C(cyan): %s\" --color=always";
# zellij + kelly + jelly + it's fun and memorable
"zelly" = "zellij attach -c main";
# TODO: I tried calling $EDITOR but it wouldn't work
"e" = "nvim";
"cdt" = "cd (mktemp -d)";
};
functions = {
ns = "nix shell nixpkgs#$argv[1]";
nss = "nix shell nixpkgs#$argv[1] -c $argv";
}; };
shellAbbrs = { shellAbbrs = {

View file

@ -16,8 +16,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { outputs = {
@ -25,7 +23,6 @@
home-manager, home-manager,
plasma-manager, plasma-manager,
nix-flatpak, nix-flatpak,
nixvim,
... ...
}: let }: let
system = "x86_64-linux"; system = "x86_64-linux";
@ -38,12 +35,10 @@
./config.nix ./config.nix
./packages.nix ./packages.nix
./flatpak.nix ./flatpak.nix
nix-flatpak.homeManagerModules.nix-flatpak
./plasma/plasma.nix ./plasma/plasma.nix
plasma-manager.homeManagerModules.plasma-manager
nixvim.homeManagerModules.nixvim plasma-manager.homeManagerModules.plasma-manager
./nixvim/nixvim.nix nix-flatpak.homeManagerModules.nix-flatpak
]; ];
}; };
}; };

View file

@ -6,8 +6,8 @@
services.flatpak.enable = true; services.flatpak.enable = true;
services.flatpak.update.auto.enable = false; services.flatpak.update.auto.enable = false;
services.flatpak.uninstallUnmanaged = true; services.flatpak.uninstallUnmanaged = true;
services.flatpak.update.onActivation = true;
services.flatpak.packages = [ services.flatpak.packages = [
"com.obsproject.Studio"
"com.github.tchx84.Flatseal" "com.github.tchx84.Flatseal"
"com.github.wwmm.easyeffects" "com.github.wwmm.easyeffects"
"com.prusa3d.PrusaSlicer" "com.prusa3d.PrusaSlicer"
@ -22,27 +22,10 @@
"org.kde.krita" "org.kde.krita"
"org.kde.kwrite" "org.kde.kwrite"
"org.kde.okular" "org.kde.okular"
"org.kde.filelight"
"org.keepassxc.KeePassXC" "org.keepassxc.KeePassXC"
"org.libreoffice.LibreOffice" "org.libreoffice.LibreOffice"
"org.mozilla.Thunderbird" "org.mozilla.Thunderbird"
"io.github.ungoogled_software.ungoogled_chromium" "com.github.Eloston.UngoogledChromium"
"org.sqlitebrowser.sqlitebrowser" "io.podman_desktop.PodmanDesktop"
"io.github.jacalz.rymdport" # Wormhole
"ca.hamaluik.Timecop"
"org.kde.kleopatra"
"com.valvesoftware.Steam"
"io.github.nokse22.Exhibit"
"io.github.f3d_app.f3d"
"org.dune3d.dune3d"
"org.freecadweb.FreeCAD"
]; ];
services.flatpak.overrides = {
global.Context.filesystems = ["xdg-config/gtk-3.0"];
"com.valvesoftware.Steam".Context = {
filesystems = [
"/mnt/games:rw"
];
};
};
} }

View file

@ -7,12 +7,4 @@
home.username = "gkaklas"; home.username = "gkaklas";
home.homeDirectory = "/home/gkaklas"; home.homeDirectory = "/home/gkaklas";
home.stateVersion = "23.11"; home.stateVersion = "23.11";
services.kdeconnect.enable = true;
home.sessionVariables = rec {
EDITOR = "nvim";
};
home.sessionPath = [
"$HOME/bin"
];
} }

View file

@ -6,11 +6,6 @@
}: { }: {
imports = [./zellij.nix]; imports = [./zellij.nix];
home.file.".cargo/config.toml".text = ''
[build]
target-dir = "/mnt/build"
'';
home.file.".config/ripgrep/ignore".text = '' home.file.".config/ripgrep/ignore".text = ''
-. -.
''; '';
@ -18,7 +13,6 @@
home.file.".config/containers/storage.conf".text = '' home.file.".config/containers/storage.conf".text = ''
[storage] [storage]
rootless_storage_path="/mnt/storage/.containers" rootless_storage_path="/mnt/storage/.containers"
driver="btrfs"
''; '';
home.file.".config/keepassxc/keepassxc.ini".text = '' home.file.".config/keepassxc/keepassxc.ini".text = ''

View file

@ -1,45 +0,0 @@
{pkgs, ...}: {
programs.mpv = {
enable = true;
config={
volume = 50;
slang = "en,eng";
alang = "en,eng";
sub-scale-with-window=true;
fullscreen = true;
pause = true;
};
bindings = {
t = "show-progress";
UP = "add volume 5";
DOWN = "add volume -5";
WHEEL_UP = "add volume 5";
WHEEL_DOWN = "add volume -5";
RIGHT = "seek 10 exact";
LEFT = "seek -10 exact";
"Shift+RIGHT" = "seek 3 exact";
"Shift+LEFT" = "seek -3 exact";
"Ctrl+RIGHT" = "seek 60 exact";
"Ctrl+LEFT" = "seek -60 exact";
g = "add sub-delay -0.1";
h = "add sub-delay 0.1";
j = "add audio-delay -0.05";
k = "add audio-delay 0.05";
v = "cycle sub";
V = "cycle sub-visibility";
"[" = "add speed -0.01";
"]" = "add speed 0.01";
n = "playlist-next force";
p = "playlist-prev force";
Enter = "ignore";
};
};
}

View file

@ -1,50 +0,0 @@
{
pkgs,
config,
...
}: let
# Telescope
# { key = "<leader>ff";
# action = config.lib.nixvim.mkRaw "require('telescope.builtin').find_files";
# } becomes:
# { key = ldr "ff";
# action = mfn "telescope.builtin" "find_files";
# } becomes:
# (tscope "ff" "find_files")
lua = config.lib.nixvim.mkRaw;
ldr = k: "<leader>${k}";
key = k: fn: {
key = "${k}";
action = lua "${fn}";
};
lkey = k: fn: {
key = ldr "${k}";
action = lua "${fn}";
};
luaf = fn: "function() ${fn} end";
luafr = m: fn: "function() require('${m}').${fn} end";
mkey = module: k: fn: (lkey "${k}" "require('${module}').${fn}");
tscope = k: fn: mkey "telescope.builtin" "${k}" "${fn}";
gs = k: fn: mkey "gitsigns" "${k}" "${fn}";
in {
programs.nixvim.keymaps = [
(tscope "ff" "find_files")
(tscope "fg" "live_grep")
(tscope "fb" "buffers")
(tscope "fh" "help_tags")
(gs "hs" "stage_hunk")
(gs "rs" "reset_hunk")
(gs "hS" "stage_buffer")
(gs "hu" "undo_stage_hunk")
(gs "hR" "reset_buffer")
(gs "hp" "preview_hunk")
(gs "tb" "toggle_current_line_blame")
(gs "hd" "diffthis")
(gs "td" "toggle_deleted")
(key "<F5>" (luafr "nvim-tree.api" "tree.toggle()"))
(lkey "d" "vim.cmd.bdelete")
];
}

View file

@ -1,109 +0,0 @@
{
pkgs,
config,
...
}: {
imports = [
./keymaps.nix
];
programs.nixvim = {
enable = true;
plugins = {
# UI
nvim-tree.enable = true;
notify.enable = true;
which-key.enable = true;
headlines.enable = true;
neoscroll.enable = true;
statuscol.enable = true;
web-devicons.enable =true;
telescope.enable = true;
telescope.extensions = {
undo.enable = true;
file-browser = {
enable = true;
settings = {
use_fd = true;
hidden = true;
};
};
};
lualine = {
enable = true;
settings.options.theme="molokai";
};
barbar = {
enable = true;
settings = {
preset = "slanted";
};
};
# Code visibility
rainbow-delimiters.enable = true;
indent-blankline.enable = true;
# Languages
nix.enable = true;
rustaceanvim.enable = true;
# Git
neogit.enable = true;
diffview.enable = true;
gitsigns = {
enable = true;
settings = {
current_line_blame = true;
};
};
# Uncategorized
luasnip.enable = true;
cmp.enable = true;
cmp_luasnip.enable = true;
cmp-path.enable = true;
cmp-git.enable = true;
friendly-snippets.enable = true;
nvim-ufo.enable = true;
lazy.enable = true;
comment.enable = true;
treesitter.enable = true;
colorizer.enable = true;
};
plugins.noice= {
enable = true;
settings.presets = {
command_palette = true;
};
};
};
programs.nixvim.extraPlugins = [
pkgs.vimPlugins.legendary-nvim
pkgs.vimPlugins.guess-indent-nvim
pkgs.vimPlugins.vim-monokai-tasty
(pkgs.vimUtils.buildVimPlugin {
name = "cmp-async-path";
src = pkgs.fetchgit {
url = "https://codeberg.org/FelipeLema/cmp-async-path";
rev = "7df7f3721c45aac26b6e0474087538f4681c9c7a";
hash = "sha256-LSWWsn8aKogjWevcbjITXu30a2k3wY3+f2+l7WDAZpY=";
};
})
];
programs.nixvim.colorscheme = "vim-monokai-tasty";
programs.nixvim.clipboard.providers.wl-copy.enable = true;
programs.nixvim.opts = {
mousemoveevent = true;
relativenumber = true;
number = true;
scroll = 2;
foldlevel = 99;
foldlevelstart = 99;
foldenable = true;
};
programs.nixvim.globals = {
mapleader = ";";
};
}

View file

@ -1,14 +1,17 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ home.packages = with pkgs; [
# GUI # GUI
filelight
spotify-qt
lxqt.pavucontrol-qt lxqt.pavucontrol-qt
alacritty alacritty
usbimager usbimager
kdePackages.kdeplasma-addons kdeplasma-addons
kdePackages.plasma-systemmonitor plasma-systemmonitor
# CLI # CLI
fzf fzf
neovim
htop htop
nnn nnn
wl-clipboard wl-clipboard
@ -19,6 +22,7 @@
ncdu ncdu
dua dua
gnupg gnupg
spotifyd
mosh mosh
unzip unzip
yt-dlp yt-dlp

View file

@ -6,7 +6,25 @@
"kdeglobals"."Shortcuts"."Quit".value = ""; "kdeglobals"."Shortcuts"."Quit".value = "";
kwinrc = { kwinrc = {
Desktops = {
# uuidgen -rC6
"Id_1".value = "1c3962f3-bd6e-42e4-bcaf-9f1dc0a55cab";
"Id_2".value = "a76e8497-148d-44d8-96a1-026278642d79";
"Id_3".value = "e2f3dcc2-8009-46b0-af71-745daf70b846";
"Id_4".value = "4e471453-b165-4c9f-bc56-a2eb9e7f969e";
"Id_5".value = "645f9867-ff82-48b3-ac5b-cc389bc9fd31";
"Id_6".value = "95e0579d-b58f-47c7-a47f-5caf30cdf399";
"Name_1".value = "Web";
"Name_2".value = "Main";
"Name_3".value = "Comm";
"Name_4".value = "Aux1";
"Name_5".value = "Aux2";
"Name_6".value = "Music";
"Number".value = 6;
"Rows".value = 1;
};
"Windows"."FocusPolicy".value = "FocusFollowsMouse"; "Windows"."FocusPolicy".value = "FocusFollowsMouse";
"Windows"."BorderlessMaximizedWindows".value = true;
}; };
kcminputrc = { kcminputrc = {

View file

@ -16,18 +16,6 @@
lookAndFeel = "org.kde.breezedark.desktop"; lookAndFeel = "org.kde.breezedark.desktop";
wallpaper = "${pkgs.libsForQt5.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/1080x1920.png"; wallpaper = "${pkgs.libsForQt5.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/1080x1920.png";
}; };
kwin.virtualDesktops = {
rows = 1;
number = 6;
names = ["Web" "Main" "Comm" "Aux1" "Aux2" "Music"];
};
kwin.borderlessMaximizedWindows = true;
kwin.nightLight = {
enable = true;
mode = "location";
location.latitude = "37.9755648";
location.longitude = "23.7348324";
};
shortcuts = { shortcuts = {
ksmserver = { ksmserver = {

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
programs.ssh.enable = true;
}

View file

@ -13,10 +13,6 @@
normal { normal {
bind "Ctrl w" { SwitchToMode "pane"; } bind "Ctrl w" { SwitchToMode "pane"; }
bind "Ctrl '" { SwitchToMode "session"; } bind "Ctrl '" { SwitchToMode "session"; }
}
ui {
pane_frames {
rounded_corners true
} }
} }
''; '';
@ -40,22 +36,16 @@
pane { pane {
pane command="htop" pane command="htop"
pane command="watch" { pane command="watch" {
args "df -x tmpfs -x devtmpfs -x efivarfs -h" args "df" "-h"
} }
pane command="watch" { pane
args "sensors k10temp-pci-00c3"
}
} }
} }
} }
tab name="HM" cwd="~/nix/home-manager" { tab name="HM" cwd="~/nix" {
pane split_direction="vertical" { pane split_direction="vertical" {
pane pane
pane command="watchexec" { pane
args "-c" "--" "home-manager" "switch" "--flake" "path:/home/gkaklas/nix/home-manager/"
}
}
}
} }
} }
} }

View file

@ -43,6 +43,7 @@
subvolumes = { subvolumes = {
"gkaklas/.local/share/flatpak" = { "gkaklas/.local/share/flatpak" = {
mountpoint = "/home/gkaklas/.local/share/flatpak"; mountpoint = "/home/gkaklas/.local/share/flatpak";
mountOptions = ["defaults" "user"];
}; };
}; };
mountpoint = "/home"; mountpoint = "/home";
@ -54,22 +55,7 @@
type = "filesystem"; type = "filesystem";
format = "btrfs"; format = "btrfs";
mountpoint = "/mnt/storage"; mountpoint = "/mnt/storage";
}; mountOptions = ["defaults" "user"];
};
disko.devices.lvm_vg.VolGroup0.lvs.build = {
size = "20G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/mnt/build";
};
};
disko.devices.lvm_vg.VolGroup0.lvs.games = {
size = "20G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/mnt/games";
}; };
}; };
} }

View file

@ -5,16 +5,8 @@
... ...
}: { }: {
services.kanata.enable = true; services.kanata.enable = true;
services.kanata.keyboards.mykbd.extraDefCfg = ''
linux-dev-names-include (
"AT Translated Set 2 keyboard"
)
'';
services.kanata.keyboards.mykbd.config = '' services.kanata.keyboards.mykbd.config = ''
(defvirtualkeys
tld S-grv
)
(defsrc (defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w f p b j l u y ' [ ] tab q w f p b j l u y ' [ ]
@ -62,13 +54,13 @@
XX XX XX XX 0 XX XX XX XX XX 0 XX
) )
(deflayer symbols (deflayer misc
;;grv 1 2 3 4 5 6 7 8 9 0 - = bspc ;;grv 1 2 3 4 5 6 7 8 9 0 - = bspc
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
;;tab q w f p b j l u y ' [ ] ;;tab q w f p b j l u y ' [ ]
XX S-1 S-2 S-6 S-5 grv S-7 S-3 S-8 S-4 XX XX XX XX S-1 S-2 S-3 S-4 S-5 S-6 S-7 S-8 S-9 S-0 XX XX
;;caps a r s t g m n e i o ;;caps a r s t g m n e i o
XX XX XX XX XX @tld XX [ S-[ S-9 XX XX XX XX XX XX XX XX [ S-[ S-9 XX
;;lsft z x c d v k h , . / ;;lsft z x c d v k h , . /
XX XX XX XX XX XX XX ] S-] S-0 XX XX XX XX XX XX XX XX ] S-] S-0 XX
;;lctl lmet lalt spc ; ret ;;lctl lmet lalt spc ; ret
@ -77,13 +69,12 @@
(defalias (defalias
num (layer-while-held num) num (layer-while-held num)
arrows (layer-while-held arrows) arrows (layer-while-held arrows)
symbols (layer-while-held symbols) misc (layer-while-held misc)
cht (chord example t) cht (chord example t)
chs (chord example s) chs (chord example s)
chd (chord example d) chd (chord example d)
chspc (chord example spc) chspc (chord example spc)
chret (chord example ret) chret (chord example ret)
tld (on-press tap-virtualkey tld)
) )
(defchords example 500 (defchords example 500
(t) t (t) t
@ -93,7 +84,7 @@
(ret) ret (ret) ret
(spc s) @num (spc s) @num
(spc t) @arrows (spc t) @arrows
(spc d) @symbols (spc d) @misc
) )
''; '';
} }