This commit is contained in:
parent
ae9854f178
commit
ca66e8d7b2
13 changed files with 171 additions and 157 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -718,11 +718,11 @@
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774289893,
|
"lastModified": 1774683773,
|
||||||
"narHash": "sha256-si2LHcNiLuF01yOuaUs90p1U09hhaketA8tyanWwiP0=",
|
"narHash": "sha256-4GyL+ZtAZEKX9FwSvNrOGSUJ9eaHE0Pdy3N3C9Xjlu8=",
|
||||||
"owner": "jdonszelmann",
|
"owner": "jdonszelmann",
|
||||||
"repo": "homepage",
|
"repo": "homepage",
|
||||||
"rev": "635f900ce31b7f901da33c6fa830a2e7c116552f",
|
"rev": "9755ae38ec713888bc18b64227116031cd71e0af",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,46 @@
|
||||||
{ flakes, pkgs, ... }:
|
{ flakes, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cache = pkg: ''
|
||||||
|
location ~* \.(png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf)$ {
|
||||||
|
expires max;
|
||||||
|
add_header Cache-Control "public, no-transform";
|
||||||
|
root ${pkg};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
regular = "${flakes.homepage.packages.${pkgs.system}.website}";
|
||||||
|
gay = "${flakes.homepage.packages.${pkgs.system}.website-gay}";
|
||||||
|
ssl = {
|
||||||
|
forceSSL = true;
|
||||||
|
http2 = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
base =
|
||||||
|
pkg:
|
||||||
|
{
|
||||||
|
extraConfig = cache pkg;
|
||||||
|
}
|
||||||
|
// ssl;
|
||||||
|
site =
|
||||||
|
pkg:
|
||||||
|
{
|
||||||
|
locations."/".root = pkg;
|
||||||
|
}
|
||||||
|
// (base pkg);
|
||||||
|
redirect =
|
||||||
|
return:
|
||||||
|
{
|
||||||
|
locations."/".return = return;
|
||||||
|
}
|
||||||
|
// ssl;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
virtualHosts."donsz.nl" = {
|
virtualHosts = {
|
||||||
forceSSL = true;
|
"donsz.nl" = site regular;
|
||||||
http2 = true;
|
"jdonszelmann.nl" = site regular;
|
||||||
enableACME = true;
|
"blog.donsz.nl" = redirect "301 https://donsz.nl/blog";
|
||||||
|
"gay.donsz.nl" = site gay;
|
||||||
locations."/" = {
|
"jana.is.fckn.gay" = site gay;
|
||||||
root = "${flakes.homepage.packages.${pkgs.system}.website}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
virtualHosts."blog.donsz.nl" = {
|
|
||||||
forceSSL = true;
|
|
||||||
http2 = true;
|
|
||||||
enableACME = true;
|
|
||||||
|
|
||||||
locations."/".return = "301 https://donsz.nl/blog";
|
|
||||||
};
|
|
||||||
virtualHosts."gay.donsz.nl" = {
|
|
||||||
forceSSL = true;
|
|
||||||
http2 = true;
|
|
||||||
enableACME = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
root = "${flakes.homepage.packages.${pkgs.system}.website-gay}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
virtualHosts."jana.is.fckn.gay" = {
|
|
||||||
forceSSL = true;
|
|
||||||
http2 = true;
|
|
||||||
enableACME = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
root = "${flakes.homepage.packages.${pkgs.system}.website-gay}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
virtualHosts."jdonszelmann.nl" = {
|
|
||||||
forceSSL = true;
|
|
||||||
http2 = true;
|
|
||||||
enableACME = true;
|
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
root = "${flakes.homepage.packages.${pkgs.system}.website}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
imports = lib.concatLists [
|
imports = lib.concatLists [
|
||||||
[
|
[
|
||||||
./xdg.nix
|
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./less.nix
|
./less.nix
|
||||||
./nvim
|
./nvim
|
||||||
|
|
@ -16,6 +15,7 @@
|
||||||
./niri
|
./niri
|
||||||
./zed
|
./zed
|
||||||
./firefox
|
./firefox
|
||||||
|
./xdg
|
||||||
]
|
]
|
||||||
|
|
||||||
(machine.program {
|
(machine.program {
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ inputs@{ machine, ... }:
|
||||||
key = "~/.ssh/id_ed25519.pub";
|
key = "~/.ssh/id_ed25519.pub";
|
||||||
};
|
};
|
||||||
|
|
||||||
# remotes.origin.auto-track-bookmarks = true;
|
remotes.origin.auto-track-bookmarks = "*";
|
||||||
# remotes.upstream.auto-track-bookmarks = true;
|
# remotes.upstream.auto-track-bookmarks = true;
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ let
|
||||||
tab q w e r t y u i o p [ ] \
|
tab q w e r t y u i o p [ ] \
|
||||||
@cap a s d f g h j k l ; ' ret
|
@cap a s d f g h j k l ; ' ret
|
||||||
lsft z x c v b n m , . / rsft
|
lsft z x c v b n m , . / rsft
|
||||||
lctl @lmet lalt spc ralt @rctl
|
lctl @lmet lalt spc @ralt @rctl
|
||||||
)
|
)
|
||||||
|
|
||||||
(deflayer control
|
(deflayer control
|
||||||
|
|
@ -30,7 +30,7 @@ let
|
||||||
tab @mcleft @mup @mcright @replay t y u i o p @wup @wdown \
|
tab @mcleft @mup @mcright @replay t y u i o p @wup @wdown \
|
||||||
@cap @mleft @mdown @mright f g left down up right ; ' bspc
|
@cap @mleft @mdown @mright f g left down up right ; ' bspc
|
||||||
lsft z x C-c v bspc n @macro , . C-f rsft
|
lsft z x C-c v bspc n @macro , . C-f rsft
|
||||||
lctl lmet lalt spc ralt @rctl
|
lctl lmet lalt spc @ralt @rctl
|
||||||
)
|
)
|
||||||
|
|
||||||
(deflayermap (other)
|
(deflayermap (other)
|
||||||
|
|
@ -82,6 +82,13 @@ let
|
||||||
200 200
|
200 200
|
||||||
C-k (layer-while-held other)
|
C-k (layer-while-held other)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ralt (
|
||||||
|
tap-dance 200 (
|
||||||
|
ralt
|
||||||
|
rmet
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,12 @@ inputs@{ machine, ... }:
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
requirements = [ "graphical" ];
|
requirements = [ "graphical" ];
|
||||||
home-config =
|
home-config =
|
||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, flakes
|
pkgs,
|
||||||
, lib
|
flakes,
|
||||||
, ...
|
lib,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
noctalia =
|
noctalia =
|
||||||
|
|
@ -115,7 +116,7 @@ inputs@{ machine, ... }:
|
||||||
keyboard = {
|
keyboard = {
|
||||||
xkb = {
|
xkb = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
options = "grp:win_space_toggle,compose:ralt";
|
options = "grp:win_space_toggle,compose:rwin";
|
||||||
};
|
};
|
||||||
numlock = true;
|
numlock = true;
|
||||||
};
|
};
|
||||||
|
|
@ -242,7 +243,7 @@ inputs@{ machine, ... }:
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
matches = [{ app-id = "firefox"; }];
|
matches = [ { app-id = "firefox"; } ];
|
||||||
open-on-workspace = "browser";
|
open-on-workspace = "browser";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -600,7 +601,7 @@ inputs@{ machine, ... }:
|
||||||
id = "Volume";
|
id = "Volume";
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ [{ id = "Battery"; }]
|
++ [ { id = "Battery"; } ]
|
||||||
++ [
|
++ [
|
||||||
{
|
{
|
||||||
id = "KeyboardLayout";
|
id = "KeyboardLayout";
|
||||||
|
|
|
||||||
|
|
@ -13,24 +13,7 @@ inputs@{ machine, ... }:
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nvim_mime_types = [
|
nvim_mime_types = (import ../xdg/mimemap.nix).text;
|
||||||
"application/x-zerosize"
|
|
||||||
"text/english"
|
|
||||||
"text/plain"
|
|
||||||
"text/x-makefile"
|
|
||||||
"text/x-c++hdr"
|
|
||||||
"text/x-c++src"
|
|
||||||
"text/x-chdr"
|
|
||||||
"text/x-csrc"
|
|
||||||
"text/x-java"
|
|
||||||
"text/x-moc"
|
|
||||||
"text/x-pascal"
|
|
||||||
"text/x-tcl"
|
|
||||||
"text/x-tex"
|
|
||||||
"application/x-shellscript"
|
|
||||||
"text/x-c"
|
|
||||||
"text/x-c++"
|
|
||||||
];
|
|
||||||
desktop-entry-name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanvim";
|
desktop-entry-name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanvim";
|
||||||
desktop-entry = pkgs.makeDesktopItem {
|
desktop-entry = pkgs.makeDesktopItem {
|
||||||
name = desktop-entry-name;
|
name = desktop-entry-name;
|
||||||
|
|
@ -55,6 +38,14 @@ inputs@{ machine, ... }:
|
||||||
|
|
||||||
packages = with pkgs-unstable; [
|
packages = with pkgs-unstable; [
|
||||||
tree-sitter
|
tree-sitter
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "editor-hax";
|
||||||
|
src = ./.;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ./editor-hax.py $out/bin/editor-hax
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ in
|
||||||
# pickers
|
# pickers
|
||||||
(luamap "n" "<leader><leader>" "${telescope}.find_files()")
|
(luamap "n" "<leader><leader>" "${telescope}.find_files()")
|
||||||
(luamap "n" "<leader>f" "${telescope}.live_grep()")
|
(luamap "n" "<leader>f" "${telescope}.live_grep()")
|
||||||
|
(luamap "n" "<leader>F" "${telescope}.find_files()")
|
||||||
(luamap "n" "<leader>t" "${telescope}.lsp_document_symbols()")
|
(luamap "n" "<leader>t" "${telescope}.lsp_document_symbols()")
|
||||||
(luamap "n" "<leader>T" "${telescope}.lsp_dynamic_workspace_symbols()")
|
(luamap "n" "<leader>T" "${telescope}.lsp_dynamic_workspace_symbols()")
|
||||||
(luamap "n" "<leader>/" "${telescope}.current_buffer_fuzzy_find()")
|
(luamap "n" "<leader>/" "${telescope}.current_buffer_fuzzy_find()")
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
rainbow-delimiters.enable = true;
|
rainbow-delimiters.enable = true;
|
||||||
vim-surround.enable = true;
|
vim-surround.enable = true;
|
||||||
lsp-format.enable = true;
|
lsp-format.enable = true;
|
||||||
|
|
@ -179,6 +180,9 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
completion.completeopt = "noselect";
|
completion.completeopt = "noselect";
|
||||||
preselect = "None";
|
preselect = "None";
|
||||||
|
view.entries = {
|
||||||
|
selection_order = "near_cursor";
|
||||||
|
};
|
||||||
|
|
||||||
sources =
|
sources =
|
||||||
let
|
let
|
||||||
|
|
@ -727,6 +731,7 @@ in
|
||||||
ui-select.enable = true;
|
ui-select.enable = true;
|
||||||
fzf-native.enable = true;
|
fzf-native.enable = true;
|
||||||
frecency.enable = true;
|
frecency.enable = true;
|
||||||
|
# ast-grep.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -739,11 +744,17 @@ in
|
||||||
"^target/"
|
"^target/"
|
||||||
];
|
];
|
||||||
defaults = {
|
defaults = {
|
||||||
path_display = [ "smart" ];
|
path_display = {
|
||||||
|
"filename_first" = {
|
||||||
|
reverse_directories = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dynamic_preview_title = true;
|
||||||
layout_strategy = "flex";
|
layout_strategy = "flex";
|
||||||
layout_config = {
|
layout_config = {
|
||||||
width = 0.99;
|
width = 0.99;
|
||||||
height = 0.99;
|
height = 0.99;
|
||||||
|
prompt_position = "top";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ inputs@{ machine, ... }:
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
requirements = [ "cli" ];
|
requirements = [ "cli" ];
|
||||||
home-config = _: {
|
home-config = _: {
|
||||||
|
programs.mosh.enable = true;
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
|
|
|
||||||
|
|
@ -25,86 +25,7 @@ let
|
||||||
signal = [ "signal.desktop" ];
|
signal = [ "signal.desktop" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
mimeMap = {
|
mimeMap = import ./mimemap.nix;
|
||||||
text = [
|
|
||||||
"text/rust"
|
|
||||||
"text/plain"
|
|
||||||
"text/english"
|
|
||||||
"application/x-zerosize"
|
|
||||||
"text/x-makefile"
|
|
||||||
"text/x-c++hdr"
|
|
||||||
"text/x-c++src"
|
|
||||||
"text/x-chdr"
|
|
||||||
"text/x-csrc"
|
|
||||||
"text/x-java"
|
|
||||||
"text/x-moc"
|
|
||||||
"text/x-pascal"
|
|
||||||
"text/x-tcl"
|
|
||||||
"text/x-tex"
|
|
||||||
"application/x-shellscript"
|
|
||||||
"text/x-c"
|
|
||||||
"text/x-c++"
|
|
||||||
];
|
|
||||||
image = [
|
|
||||||
"image/bmp"
|
|
||||||
"image/gif"
|
|
||||||
"image/jpeg"
|
|
||||||
"image/jpg"
|
|
||||||
"image/png"
|
|
||||||
"image/svg+xml"
|
|
||||||
"image/tiff"
|
|
||||||
"image/vnd.microsoft.icon"
|
|
||||||
"image/webp"
|
|
||||||
];
|
|
||||||
audio = [
|
|
||||||
"audio/aac"
|
|
||||||
"audio/mpeg"
|
|
||||||
"audio/ogg"
|
|
||||||
"audio/opus"
|
|
||||||
"audio/wav"
|
|
||||||
"audio/webm"
|
|
||||||
"audio/x-matroska"
|
|
||||||
];
|
|
||||||
video = [
|
|
||||||
"video/mp2t"
|
|
||||||
"video/mp4"
|
|
||||||
"video/mpeg"
|
|
||||||
"video/ogg"
|
|
||||||
"video/webm"
|
|
||||||
"video/x-flv"
|
|
||||||
"video/x-matroska"
|
|
||||||
"video/x-msvideo"
|
|
||||||
];
|
|
||||||
directory = [ "inode/directory" ];
|
|
||||||
mail = [ "x-scheme-handler/mailto" ];
|
|
||||||
calendar = [
|
|
||||||
"text/calendar"
|
|
||||||
"x-scheme-handler/webcal"
|
|
||||||
];
|
|
||||||
browser = [
|
|
||||||
"text/html"
|
|
||||||
"x-scheme-handler/about"
|
|
||||||
"x-scheme-handler/http"
|
|
||||||
"x-scheme-handler/https"
|
|
||||||
"x-scheme-handler/unknown"
|
|
||||||
];
|
|
||||||
office = [
|
|
||||||
"application/vnd.oasis.opendocument.text"
|
|
||||||
"application/vnd.oasis.opendocument.spreadsheet"
|
|
||||||
"application/vnd.oasis.opendocument.presentation"
|
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
||||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
||||||
"application/msword"
|
|
||||||
"application/vnd.ms-excel"
|
|
||||||
"application/vnd.ms-powerpoint"
|
|
||||||
"application/rtf"
|
|
||||||
];
|
|
||||||
pdf = [ "application/pdf" ];
|
|
||||||
ebook = [ "application/epub+zip" ];
|
|
||||||
magnet = [ "x-scheme-handler/magnet" ];
|
|
||||||
signal = [ "signal.desktop" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
associations =
|
associations =
|
||||||
with inputs.lib;
|
with inputs.lib;
|
||||||
|
|
@ -123,8 +44,10 @@ in
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
requirements = [ ];
|
requirements = [ ];
|
||||||
home-config =
|
home-config =
|
||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [ xdg-utils ];
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mime.enable = true;
|
mime.enable = true;
|
||||||
80
programs/xdg/mimemap.nix
Normal file
80
programs/xdg/mimemap.nix
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
{
|
||||||
|
text = [
|
||||||
|
"text/rust"
|
||||||
|
"text/plain"
|
||||||
|
"text/english"
|
||||||
|
"application/x-zerosize"
|
||||||
|
"text/x-makefile"
|
||||||
|
"text/x-c++hdr"
|
||||||
|
"text/x-c++src"
|
||||||
|
"text/x-chdr"
|
||||||
|
"text/x-csrc"
|
||||||
|
"text/x-java"
|
||||||
|
"text/x-moc"
|
||||||
|
"text/x-pascal"
|
||||||
|
"text/x-tcl"
|
||||||
|
"text/x-tex"
|
||||||
|
"application/x-shellscript"
|
||||||
|
"text/x-c"
|
||||||
|
"text/x-c++"
|
||||||
|
];
|
||||||
|
image = [
|
||||||
|
"image/bmp"
|
||||||
|
"image/gif"
|
||||||
|
"image/jpeg"
|
||||||
|
"image/jpg"
|
||||||
|
"image/png"
|
||||||
|
"image/svg+xml"
|
||||||
|
"image/tiff"
|
||||||
|
"image/vnd.microsoft.icon"
|
||||||
|
"image/webp"
|
||||||
|
];
|
||||||
|
audio = [
|
||||||
|
"audio/aac"
|
||||||
|
"audio/mpeg"
|
||||||
|
"audio/ogg"
|
||||||
|
"audio/opus"
|
||||||
|
"audio/wav"
|
||||||
|
"audio/webm"
|
||||||
|
"audio/x-matroska"
|
||||||
|
];
|
||||||
|
video = [
|
||||||
|
"video/mp2t"
|
||||||
|
"video/mp4"
|
||||||
|
"video/mpeg"
|
||||||
|
"video/ogg"
|
||||||
|
"video/webm"
|
||||||
|
"video/x-flv"
|
||||||
|
"video/x-matroska"
|
||||||
|
"video/x-msvideo"
|
||||||
|
];
|
||||||
|
directory = [ "inode/directory" ];
|
||||||
|
mail = [ "x-scheme-handler/mailto" ];
|
||||||
|
calendar = [
|
||||||
|
"text/calendar"
|
||||||
|
"x-scheme-handler/webcal"
|
||||||
|
];
|
||||||
|
browser = [
|
||||||
|
"text/html"
|
||||||
|
"x-scheme-handler/about"
|
||||||
|
"x-scheme-handler/http"
|
||||||
|
"x-scheme-handler/https"
|
||||||
|
"x-scheme-handler/unknown"
|
||||||
|
];
|
||||||
|
office = [
|
||||||
|
"application/vnd.oasis.opendocument.text"
|
||||||
|
"application/vnd.oasis.opendocument.spreadsheet"
|
||||||
|
"application/vnd.oasis.opendocument.presentation"
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
||||||
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||||
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
||||||
|
"application/msword"
|
||||||
|
"application/vnd.ms-excel"
|
||||||
|
"application/vnd.ms-powerpoint"
|
||||||
|
"application/rtf"
|
||||||
|
];
|
||||||
|
pdf = [ "application/pdf" ];
|
||||||
|
ebook = [ "application/epub+zip" ];
|
||||||
|
magnet = [ "x-scheme-handler/magnet" ];
|
||||||
|
signal = [ "signal.desktop" ];
|
||||||
|
}
|
||||||
1
server exited unexpectedly
Normal file
1
server exited unexpectedly
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Ptmux;_Ga=d,q=2,d=a\\
|
||||||
Loading…
Add table
Add a link
Reference in a new issue