mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
Compare commits
21 commits
02ed4b6123
...
58ffb4a7af
| Author | SHA1 | Date | |
|---|---|---|---|
| 58ffb4a7af | |||
| a1d4740d26 | |||
| b195ac935d | |||
| 2b1dc3a1eb | |||
| 94877b6b0b | |||
| d7e5df3f5d | |||
| 4b66620329 | |||
| 2f14b5dc95 | |||
| 720effe443 | |||
| 6a4748c9d0 | |||
| c1789f2191 | |||
| c5276b74bf | |||
| 71a098a190 | |||
| c267604f54 | |||
| d1849a6f14 | |||
| 578924512f | |||
| 52c1193c44 | |||
| 5d309c2d4e | |||
| 09e7d1adb8 | |||
| 297c03ad79 | |||
| 8c55a4df71 |
17 changed files with 138 additions and 53 deletions
3
Justfile
3
Justfile
|
|
@ -1,6 +1,5 @@
|
||||||
# Note:
|
# Note:
|
||||||
# add `--option substitute false` to the command so it builds properly offline
|
# add `--option substitute false` and or `--no-net` to the command so it builds properly offline
|
||||||
# rfkill block all helps too
|
|
||||||
os host action:
|
os host action:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ in
|
||||||
../homeModules/common/git.nix
|
../homeModules/common/git.nix
|
||||||
../homeModules/common/gpg.nix
|
../homeModules/common/gpg.nix
|
||||||
../homeModules/common/kitty.nix
|
../homeModules/common/kitty.nix
|
||||||
|
../homeModules/common/ghostty.nix
|
||||||
../homeModules/common/leana.nix
|
../homeModules/common/leana.nix
|
||||||
../homeModules/common/locale.nix
|
../homeModules/common/locale.nix
|
||||||
../homeModules/common/lazygit.nix
|
../homeModules/common/lazygit.nix
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
# We don't deal with worktree folders anyway
|
# We don't deal with worktree folders anyway
|
||||||
repositories = lib.map (path: "${config.home.homeDirectory}/r/${path}") [
|
repositories = lib.map (path: "${config.home.homeDirectory}/r/${path}") [
|
||||||
"nixos/nixpkgs"
|
"NixOS/nixpkgs"
|
||||||
"ghc/ghc"
|
"ghc/ghc"
|
||||||
"haskell/cabal"
|
"haskell/cabal"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -166,8 +166,16 @@
|
||||||
|
|
||||||
feh.enable = true;
|
feh.enable = true;
|
||||||
sioyek.enable = true;
|
sioyek.enable = true;
|
||||||
kitty = {
|
|
||||||
|
ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
font-size = 12; # sweet spot for framework 13
|
||||||
|
command = lib.getExe config.programs.fish.package;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
kitty = {
|
||||||
|
enable = false;
|
||||||
font.size = 12; # sweet spot for framework 13
|
font.size = 12; # sweet spot for framework 13
|
||||||
settings = {
|
settings = {
|
||||||
shell = lib.getExe config.programs.fish.package;
|
shell = lib.getExe config.programs.fish.package;
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ config =
|
||||||
, Run XMonadLog
|
, Run XMonadLog
|
||||||
, Run $
|
, Run $
|
||||||
Weather
|
Weather
|
||||||
"RCSS"
|
"LFRN"
|
||||||
[ "-t", "<station>: <tempC>°C"
|
[ "-t", "<station>: <tempC>°C"
|
||||||
, "-L", "10"
|
, "-L", "10"
|
||||||
, "-H", "25"
|
, "-H", "25"
|
||||||
|
|
@ -123,7 +123,7 @@ config =
|
||||||
" %XMonadLog% "
|
" %XMonadLog% "
|
||||||
<> alignSep config
|
<> alignSep config
|
||||||
<> intercalate "|"
|
<> intercalate "|"
|
||||||
[ " %RCSS% "
|
[ " %LFRN% "
|
||||||
, " %battery%, %powerprofilesctl%) "
|
, " %battery%, %powerprofilesctl%) "
|
||||||
, " %hereClock% (%tomorrow%, %hrt-time%) "
|
, " %hereClock% (%tomorrow%, %hrt-time%) "
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -381,7 +381,17 @@ keybinds =
|
||||||
)
|
)
|
||||||
|
|
||||||
myTerm :: String
|
myTerm :: String
|
||||||
myTerm = "kitty"
|
myTerm = "ghostty"
|
||||||
|
|
||||||
|
mkTermProgramCommand :: String -> String -> String
|
||||||
|
mkTermProgramCommand termTitle progName =
|
||||||
|
unwords
|
||||||
|
[ "ghostty"
|
||||||
|
, "--title=" <> quote termTitle
|
||||||
|
, "--command=" <> quote progName
|
||||||
|
]
|
||||||
|
where
|
||||||
|
quote x = "\"" <> x <> "\""
|
||||||
|
|
||||||
superMask, altMask :: KeyMask
|
superMask, altMask :: KeyMask
|
||||||
superMask = mod4Mask
|
superMask = mod4Mask
|
||||||
|
|
@ -422,22 +432,22 @@ myScratchpads :: [NamedScratchpad]
|
||||||
myScratchpads =
|
myScratchpads =
|
||||||
[ NS
|
[ NS
|
||||||
"cmus"
|
"cmus"
|
||||||
(myTerm ++ " -T 'cmus' cmus")
|
(mkTermProgramCommand "cmus" "cmus")
|
||||||
(title =? "cmus")
|
(title =? "cmus")
|
||||||
(customFloating centeredFloat)
|
(customFloating centeredFloat)
|
||||||
, NS
|
, NS
|
||||||
"btop"
|
"btop"
|
||||||
(myTerm ++ " -T 'btop' btop")
|
(mkTermProgramCommand "btop" "btop")
|
||||||
(title =? "btop")
|
(title =? "btop")
|
||||||
(customFloating fullFloat)
|
(customFloating fullFloat)
|
||||||
, NS
|
, NS
|
||||||
"pass"
|
"pass"
|
||||||
(myTerm ++ " -T 'pass' -- fish -i -c 'while :; fzf-pass; end'")
|
(mkTermProgramCommand "pass" "fish -i -c 'while :; fzf-pass; end'")
|
||||||
(title =? "pass")
|
(title =? "pass")
|
||||||
(customFloating smallFloat)
|
(customFloating smallFloat)
|
||||||
, NS
|
, NS
|
||||||
"emoji-picker"
|
"emoji-picker"
|
||||||
(myTerm ++ " -T 'emoji-picker' -- fish -i -c 'while :; emoji-picker; end'")
|
(mkTermProgramCommand "emoji-picker" "fish -i -c 'while :; emoji-picker; end'")
|
||||||
(title =? "emoji-picker")
|
(title =? "emoji-picker")
|
||||||
(customFloating smallFloat)
|
(customFloating smallFloat)
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,6 @@
|
||||||
0.0.0.0 instagram.com
|
0.0.0.0 instagram.com
|
||||||
0.0.0.0 www.instagram.com
|
0.0.0.0 www.instagram.com
|
||||||
|
|
||||||
0.0.0.0 youtube.com
|
|
||||||
0.0.0.0 www.youtube.com
|
|
||||||
|
|
||||||
# The "people who you viewed can see you" thing is weird af
|
# The "people who you viewed can see you" thing is weird af
|
||||||
0.0.0.0 linkedin.com
|
0.0.0.0 linkedin.com
|
||||||
0.0.0.0 www.linkedin.com
|
0.0.0.0 www.linkedin.com
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
# tmux-sessionizer directories
|
# tmux-sessionizer directories
|
||||||
"d /home/leana/r 0700 leana leana - -"
|
"d /home/leana/r 0700 leana leana - -"
|
||||||
"d /home/leana/pg 0700 leana leana 4w -"
|
"d /home/leana/wt 0700 leana leana - -"
|
||||||
"d /home/leana/wt 0700 leana leana - -"
|
"d /home/leana/pg 0700 leana leana - -" # not only used as "playground" because I put other stuff here too, it's a fourre-tout
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
|
|
||||||
7
nix/homeModules/common/fish/functions/nix-build.fish
Normal file
7
nix/homeModules/common/fish/functions/nix-build.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
function nix-build
|
||||||
|
if type -q nix-build
|
||||||
|
nom-build $argv
|
||||||
|
else
|
||||||
|
nix-build $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
7
nix/homeModules/common/fish/functions/nix-shell.fish
Normal file
7
nix/homeModules/common/fish/functions/nix-shell.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
function nix-shell
|
||||||
|
if type -q nix-shell
|
||||||
|
nom-shell $argv
|
||||||
|
else
|
||||||
|
nix-shell $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
54
nix/homeModules/common/ghostty.nix
Normal file
54
nix/homeModules/common/ghostty.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.programs.ghostty;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.nerd-fonts.iosevka
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.ghostty.settings = {
|
||||||
|
# Declutter
|
||||||
|
gtk-titlebar = false;
|
||||||
|
window-decoration = "none";
|
||||||
|
confirm-close-surface = false;
|
||||||
|
resize-overlay = "never";
|
||||||
|
|
||||||
|
# Fonts
|
||||||
|
font-family = "Iosevka NFM";
|
||||||
|
adjust-cursor-thickness = 2;
|
||||||
|
keybind = [
|
||||||
|
"ctrl+shift+==increase_font_size:1"
|
||||||
|
"ctrl+-=decrease_font_size:1"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
background = "#fdf6e3";
|
||||||
|
foreground = "#073642";
|
||||||
|
palette = [
|
||||||
|
"0=#073642"
|
||||||
|
"1=#af005f"
|
||||||
|
"2=#859900"
|
||||||
|
"3=#ba9b23"
|
||||||
|
"4=#268bd2"
|
||||||
|
"5=#5f5faf"
|
||||||
|
"6=#2aa198"
|
||||||
|
"7=#a0a1a7"
|
||||||
|
"8=#4d4d4d"
|
||||||
|
"9=#d33682"
|
||||||
|
"10=#29a350"
|
||||||
|
"11=#d6b429"
|
||||||
|
"12=#469edd"
|
||||||
|
"13=#6060d1"
|
||||||
|
"14=#4bccc1" # a platupus? perry the platupus?
|
||||||
|
"15=#eeeadd"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -13,7 +13,7 @@ in
|
||||||
pkgs.nerd-fonts.iosevka
|
pkgs.nerd-fonts.iosevka
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.kitty = lib.mkIf cfg.enable {
|
programs.kitty = {
|
||||||
font.name = "family=\"Iosevka NFM\"";
|
font.name = "family=\"Iosevka NFM\"";
|
||||||
|
|
||||||
settings = rec {
|
settings = rec {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
font,
|
font,
|
||||||
extraArgs ? [ ],
|
patcherArgs ? [ ],
|
||||||
useDefaultsArgs ? true,
|
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
/*
|
/*
|
||||||
|
|
@ -27,19 +26,15 @@ stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
buildPhase =
|
buildPhase =
|
||||||
let
|
let
|
||||||
args =
|
allPatcherArgs = [
|
||||||
lib.optionals useDefaultsArgs [
|
"--no-progressbars"
|
||||||
"--careful"
|
]
|
||||||
"--complete"
|
++ patcherArgs;
|
||||||
"--quiet"
|
|
||||||
"--no-progressbars"
|
|
||||||
]
|
|
||||||
++ extraArgs;
|
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
mkdir -p nerd-font
|
mkdir -p nerd-font
|
||||||
find \( -name \*.ttf -o -name \*.otf \) | parallel --jobs=$NIX_BUILD_CORES nerd-font-patcher {} \
|
find \( -name \*.ttf -o -name \*.otf \) | parallel --jobs=$NIX_BUILD_CORES nerd-font-patcher {} \
|
||||||
--outputdir nerd-font ${builtins.concatStringsSep " " args}
|
--outputdir nerd-font ${builtins.concatStringsSep " " allPatcherArgs}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,11 @@ final: prev: rec {
|
||||||
// {
|
// {
|
||||||
iosevka = mkNerdFont {
|
iosevka = mkNerdFont {
|
||||||
font = iosevka;
|
font = iosevka;
|
||||||
extraArgs = [
|
patcherArgs = [
|
||||||
|
"--complete"
|
||||||
|
"--careful"
|
||||||
"--name {/.}-NFM"
|
"--name {/.}-NFM"
|
||||||
"--use-single-width-glyphs"
|
"--mono"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -49,9 +51,9 @@ final: prev: rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
weights = {
|
weights = {
|
||||||
Regular.shape = 500;
|
Regular.shape = 580;
|
||||||
Regular.menu = 500;
|
Regular.menu = 580;
|
||||||
Regular.css = 500;
|
Regular.css = 580;
|
||||||
Bold.shape = 700;
|
Bold.shape = 700;
|
||||||
Bold.menu = 700;
|
Bold.menu = 700;
|
||||||
Bold.css = 700;
|
Bold.css = 700;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
let
|
let
|
||||||
sources = import ../../npins;
|
sources = import ../../npins;
|
||||||
in
|
in
|
||||||
(import sources.wired-notify).overlays.default
|
sources.wired-notify.asFlake.overlays.default
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,13 @@ tempdir="$(mktemp -d)"
|
||||||
filenames=()
|
filenames=()
|
||||||
counter=1
|
counter=1
|
||||||
|
|
||||||
|
function clean() {
|
||||||
|
# Make sure I don't remove things other than pdf
|
||||||
|
rm "$tempdir/"*.pdf
|
||||||
|
rm -d "$tempdir"
|
||||||
|
}
|
||||||
|
trap clean EXIT
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
ok="true"
|
ok="true"
|
||||||
echo "Scanning page $counter"
|
echo "Scanning page $counter"
|
||||||
|
|
@ -51,6 +58,4 @@ pdfunite "${filenames[@]}" "$merged_filename"
|
||||||
mkdir -p "$(dirname "$OUTPUT_FILE")"
|
mkdir -p "$(dirname "$OUTPUT_FILE")"
|
||||||
cp "$merged_filename" "$OUTPUT_FILE"
|
cp "$merged_filename" "$OUTPUT_FILE"
|
||||||
|
|
||||||
# Make sure I don't remove things other than pdf
|
clean
|
||||||
rm "$tempdir/"*.pdf
|
|
||||||
rm -d "$tempdir"
|
|
||||||
|
|
|
||||||
|
|
@ -114,9 +114,9 @@
|
||||||
},
|
},
|
||||||
"branch": "release-25.11",
|
"branch": "release-25.11",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "0999ed8f965bbbd991437ad9c5ed3434cecbc30e",
|
"revision": "d49d2543f02dbd789ed032188c84570d929223cb",
|
||||||
"url": "https://github.com/nix-community/home-manager/archive/0999ed8f965bbbd991437ad9c5ed3434cecbc30e.tar.gz",
|
"url": "https://github.com/nix-community/home-manager/archive/d49d2543f02dbd789ed032188c84570d929223cb.tar.gz",
|
||||||
"hash": "1rzgy9qmrvh9l3jrcjv14kva8sj3imzrpm2vmwcfzp40bk9wdfb5"
|
"hash": "04vcga33w8nvs3912vzza85xadhq9dalym24rly4mrlmvcqrhrk2"
|
||||||
},
|
},
|
||||||
"infuse": {
|
"infuse": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
|
|
@ -171,9 +171,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "c5db9569ac9cc70929c268ac461f4003e3e5ca80",
|
"revision": "40b1a28dce561bea34858287fbb23052c3ee63fe",
|
||||||
"url": "https://github.com/NixOS/nixos-hardware/archive/c5db9569ac9cc70929c268ac461f4003e3e5ca80.tar.gz",
|
"url": "https://github.com/NixOS/nixos-hardware/archive/40b1a28dce561bea34858287fbb23052c3ee63fe.tar.gz",
|
||||||
"hash": "16p1m6avlp4iyw7cfzwwjfm421mns9ab9a1kkg59rvn3pqvnsxai"
|
"hash": "197v6xxdq5j4w8kil6q21ij9x6ng8z6j72brkwwjim23798c2c4n"
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
@ -184,9 +184,9 @@
|
||||||
},
|
},
|
||||||
"branch": "nixos-25.11-small",
|
"branch": "nixos-25.11-small",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "bc805d6053df597d14851e919dd22137abf33e44",
|
"revision": "51754d3ce24751e6542e699da9ccab5676ae0bbd",
|
||||||
"url": "https://github.com/nixos/nixpkgs/archive/bc805d6053df597d14851e919dd22137abf33e44.tar.gz",
|
"url": "https://github.com/nixos/nixpkgs/archive/51754d3ce24751e6542e699da9ccab5676ae0bbd.tar.gz",
|
||||||
"hash": "0m78vibcry1lkj9zfglvp11ld3wvarsl92d99fcsc6322z1nd520"
|
"hash": "04iw8w28mzxqmynb809xpcakvzkz6jbzfbrj3nfcpndzrm71i3vm"
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
@ -197,9 +197,9 @@
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "6580345ce88dd3b98aaaefc253ea3c0c712e0dc2",
|
"revision": "7dbb9dc3bfc5c7d5a83b7f66022eb70c13cb8806",
|
||||||
"url": "https://github.com/nix-community/nur/archive/6580345ce88dd3b98aaaefc253ea3c0c712e0dc2.tar.gz",
|
"url": "https://github.com/nix-community/nur/archive/7dbb9dc3bfc5c7d5a83b7f66022eb70c13cb8806.tar.gz",
|
||||||
"hash": "1xbman6fy7r355wzmf0h95ryij2wir902zpc68nn3b9vw5xj1f7l"
|
"hash": "16qj1j3y26bwglza4947iqdk6944md1gl8sk3yvbj8plwnv7dqjl"
|
||||||
},
|
},
|
||||||
"pin-emacs28": {
|
"pin-emacs28": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
@ -362,9 +362,9 @@
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "fe8d1a61a904b336f453d7ab5ae7d691a21c5cbf",
|
"revision": "c1bd63771a866f29fdc33e0fa80e7fb8536ba5f0",
|
||||||
"url": "https://github.com/0xc000022070/zen-browser-flake/archive/fe8d1a61a904b336f453d7ab5ae7d691a21c5cbf.tar.gz",
|
"url": "https://github.com/0xc000022070/zen-browser-flake/archive/c1bd63771a866f29fdc33e0fa80e7fb8536ba5f0.tar.gz",
|
||||||
"hash": "1wh060savyr2v4kb9c1b01ylhz955qzflxsfq8a7c82y1l74cgcq"
|
"hash": "0j3z482xnmv1h3kbk5nw5fr1h5nwagvrq0ibq3racgw712fis1cl"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 5
|
"version": 5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue