Compare commits

..

No commits in common. "f7dead6bd4d332478ab4ee44f876f3bf6ce655da" and "d158ef134f7c4957756a9235feb206762ba248f1" have entirely different histories.

6 changed files with 58 additions and 123 deletions

View file

@ -54,11 +54,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712750567, "lastModified": 1712668887,
"narHash": "sha256-VHP7ESpUHb5STZfbZyMDGz9g+xsgGdJGa8iX4rkFYz8=", "narHash": "sha256-tcGPDWrfUuo3d5OpXyg9veJeYIatzFLRjcZSp+0SFxI=",
"owner": "atuinsh", "owner": "atuinsh",
"repo": "atuin", "repo": "atuin",
"rev": "0da8d34425ef83395759db79377025c062a69911", "rev": "0ab9f4d9ff545d83dc664b494ecf450750c0f184",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -192,11 +192,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712798444, "lastModified": 1712612224,
"narHash": "sha256-aAksVB7zMfBQTz0q2Lw3o78HM3Bg2FRziX2D6qnh+sk=", "narHash": "sha256-Tv4C8OSPVmm4LbpJGLFSODyvJy6DqrisEGPCQdNVOeY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "a297cb1cb0337ee10a7a0f9517954501d8f6f74d", "rev": "79eab0e82cb126bf4ac170f44af82479f0895ab5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -216,11 +216,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1712800011, "lastModified": 1712713563,
"narHash": "sha256-mEL4y1N/aQrI+OeYHm6Sol8lpDVsceCc2TJF8+uMv6Y=", "narHash": "sha256-y703Dcj6RS51iO5xFDorkyIGZD8/hQDkwaHJsB6uI80=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "9b79fd139ff55062e46191bd5dd42fcb79696328", "rev": "d08457d425b0a1f15f44f6d9faa17240f2bd29a6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -560,11 +560,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712759992, "lastModified": 1712688495,
"narHash": "sha256-2APpO3ZW4idlgtlb8hB04u/rmIcKA8O7pYqxF66xbNY=", "narHash": "sha256-NrVLXkpT9ZigiI8md6NIzHS+3lE4QTj30IgXG57O9iM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "31357486b0ef6f4e161e002b6893eeb4fafc3ca9", "rev": "b00d0e4fe9cba0047f54e77418ddda5f17e6ef2c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -667,11 +667,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1712760404, "lastModified": 1712695607,
"narHash": "sha256-4zhaEW1nB+nGbCNMjOggWeY5nXs/H0Y71q0+h+jdxoU=", "narHash": "sha256-rXb3onsPMiv00FrGSpIJyYa8x53W0dlbJ5Ka3xvje/c=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e1c4bac14beb8c409d0534382cf967171706b9d9", "rev": "05aa46a1f3b5ac92bfe84807868ba9670d48b031",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -911,11 +911,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712801594, "lastModified": 1712715149,
"narHash": "sha256-KZJnVw3TdfDyUhvClzgy3IEoC9tRhvG0yM+lHfqAm34=", "narHash": "sha256-uOx7GaLV+5hekAYtm/CBr627Pi7+d1Yh70hwKmVjYYo=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "35ebec41fcdeeae8e012e7d62ba153a13645227f", "rev": "9ef1eca23bee5fb8080863909af3802130b2ee57",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -7,13 +7,6 @@
with lib; with lib;
let let
cfg = config.eboskma.programs.fish; cfg = config.eboskma.programs.fish;
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "fish";
rev = "0ce27b518e8ead555dec34dd8be3df5bd75cff8e";
hash = "sha256-Dc/zdxfzAUM5NX8PxzfljRbYvO9f9syuLO8yBr+R3qg=";
};
in in
{ {
options.eboskma.programs.fish = { options.eboskma.programs.fish = {
@ -24,7 +17,7 @@ in
programs = { programs = {
fish = { fish = {
enable = true; enable = true;
functions = import ./functions.nix { inherit pkgs; }; functions = import ./functions.nix { inherit (pkgs) git coreutils; };
plugins = [ plugins = [
{ {
@ -39,7 +32,8 @@ in
]; ];
shellAliases = { shellAliases = {
ls = "${pkgs.eza}/bin/eza --long --git --git-repos --header --classify --binary"; # code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
ls = "${pkgs.eza}/bin/eza -Fb --git";
vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d"; vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d";
vim = mkIf config.eboskma.programs.neovim.enable "nvim"; vim = mkIf config.eboskma.programs.neovim.enable "nvim";
@ -74,7 +68,5 @@ in
enableFishIntegration = true; enableFishIntegration = true;
}; };
}; };
xdg.configFile."fish/themes/Catppuccin Mocha.theme".source = "${catppuccin}/themes/Catppuccin Mocha.theme";
}; };
} }

View file

@ -1,24 +1,9 @@
{ pkgs, ... }: { git, coreutils }:
{ {
# Mark each prompt so you can jump between prompts with C-S-z and C-S-x
mark_prompt_start = { mark_prompt_start = {
onEvent = "fish_prompt"; onEvent = "fish_prompt";
body = '' body = ''
${pkgs.coreutils}/bin/echo -en "\e]133;A\e\\" ${coreutils}/bin/echo -en "\e]133;A\e\\"
'';
};
# Mark the start and end of the output of a command
# This
foot_cmd_start = {
onEvent = "fish_preexec";
body = ''
${pkgs.coreutils}/bin/echo -en "\e]133;C\e\\"
'';
};
foot_cmd_end = {
onEvent = "fish_postexec";
body = ''
${pkgs.coreutils}/bin/echo -en "\e]133;D\e\\"
''; '';
}; };
reload = { reload = {
@ -41,45 +26,28 @@
clangfmt = { clangfmt = {
body = '' body = ''
set source_exts "h" "hpp" "c" "cpp" "cc" "cp" "c++" "cxx" "cu" "proto" set source_exts "h" "hpp" "c" "cpp" "cc" "cp" "c++" "cxx" "cu" "proto"
set files (${pkgs.git}/bin/git diff --diff-filter=ACMR --name-only $argv[1]) set files (${git}/bin/git diff --diff-filter=ACMR --name-only $argv[1])
set repo_path (${pkgs.coreutils}/bin/realpath --relative-to=$PWD (${pkgs.git}/bin/git rev-parse --show-toplevel)) set repo_path (realpath --relative-to=$PWD (${git}/bin/git rev-parse --show-toplevel))
set clangformat (${pkgs.git}/bin/git config --get clangFormat.binary) set clangformat (${git}/bin/git config --get clangFormat.binary)
${pkgs.coreutils}/bin/echo "Formatting files in $repo_path with $clangformat" ${coreutils}/bin/echo "Formatting files in $repo_path with $clangformat"
for f in $files for f in $files
set file (${pkgs.coreutils}/bin/realpath $repo_path/$f) set file (realpath $repo_path/$f)
${pkgs.coreutils}/bin/echo "Processing $file" ${coreutils}/bin/echo "Processing $file"
set ext (string match -r ".*\.([^\.]+)\$" $file)[2] set ext (string match -r ".*\.([^\.]+)\$" $file)[2]
if contains $ext $source_exts if contains $ext $source_exts
${pkgs.coreutils}/bin/echo "Formatting $file" ${coreutils}/bin/echo "Formatting $file"
$clangformat -i -style=file $file $clangformat -i -style=file $file
else else
${pkgs.coreutils}/bin/echo "Extension $ext not found in $source_exts" ${coreutils}/bin/echo "Extension $ext not found in $source_exts"
end end
end end
''; '';
description = "Use clang-format to format all changed and added files"; description = "Use clang-format to format all changed and added files";
}; };
kink = {
body = ''
set -f pls_url = "https://playerservices.streamtheworld.com/pls/KINKAAC.pls"
if [ "$channel" = "dna" ]
set pls_url "https://playerservices.streamtheworld.com/pls/KINK_DNAAAC.pls"
else if [ "$channel" = "distortion" ]
set pls_url "https://playerservices.streamtheworld.com/pls/KINK_DISTORTIONAAC.pls"
end
set -f stream_url (${pkgs.curl}/bin/curl -sSL $pls_url | grep File | shuf | head -n 1 | awk -F '=' 'BEGIN { RS="\r\n" } { print $2 }')
mpc clear
mpc add "$stream_url"
mpc play
'';
argumentNames = "channel";
description = "Play a KINK channel with mpc";
};
linklib = { linklib = {
body = '' body = ''
function linklib --argument lib function linklib --argument lib
@ -88,17 +56,17 @@
set libmajor $libname.$libcomponents[3] set libmajor $libname.$libcomponents[3]
if test -f $libname -o -L $libname if test -f $libname -o -L $libname
${pkgs.coreutils}/bin/echo "$libname already exists" ${coreutils}/bin/echo "$libname already exists"
return 1 return 1
end end
if test -f $libmajor -o -L $libmajor if test -f $libmajor -o -L $libmajor
${pkgs.coreutils}/bin/echo "$libmajor already exists" ${coreutils}/bin/echo "$libmajor already exists"
return 2 return 2
end end
${pkgs.coreutils}/bin/ln -s $lib $libmajor ${coreutils}/bin/ln -s $lib $libmajor
${pkgs.coreutils}/bin/ln -s $libmajor $libname ${coreutils}/bin/ln -s $libmajor $libname
end end
''; '';
}; };

View file

@ -39,46 +39,24 @@ in
colors = { colors = {
alpha = 0.9; alpha = 0.9;
foreground = "f8f8f2";
# Dracula background = "282a36";
# foreground = "f8f8f2"; regular0 = "000000"; # black
# background = "282a36"; regular1 = "ff5555"; # red
# regular0 = "000000"; # black regular2 = "50fa7b"; # green
# regular1 = "ff5555"; # red regular3 = "f1fa8c"; # yellow
# regular2 = "50fa7b"; # green regular4 = "bd93f9"; # blue
# regular3 = "f1fa8c"; # yellow regular5 = "ff79c6"; # magenta
# regular4 = "bd93f9"; # blue regular6 = "8be9fd"; # cyan
# regular5 = "ff79c6"; # magenta regular7 = "bfbfbf"; # white
# regular6 = "8be9fd"; # cyan bright0 = "4d4d4d"; # bright black
# regular7 = "bfbfbf"; # white bright1 = "ff6e67"; # bright red
# bright0 = "4d4d4d"; # bright black bright2 = "5af78e"; # bright green
# bright1 = "ff6e67"; # bright red bright3 = "f4f99d"; # bright yellow
# bright2 = "5af78e"; # bright green bright4 = "caa9fa"; # bright blue
# bright3 = "f4f99d"; # bright yellow bright5 = "ff92d0"; # bright magenta
# bright4 = "caa9fa"; # bright blue bright6 = "9aedfe"; # bright cyan
# bright5 = "ff92d0"; # bright magenta bright7 = "e6e6e6"; # bright white
# bright6 = "9aedfe"; # bright cyan
# bright7 = "e6e6e6"; # bright white
# Catppuccin Mocha
foreground = "cdd6f4"; # Text
background = "1e1e2e"; # Base
regular0 = "45475a"; # Surface 1
regular1 = "f38ba8"; # red
regular2 = "a6e3a1"; # green
regular3 = "f9e2af"; # yellow
regular4 = "89b4fa"; # blue
regular5 = "f5c2e7"; # pink
regular6 = "94e2d5"; # teal
regular7 = "bac2de"; # Subtext 1
bright0 = "585b70"; # Surface 2
bright1 = "f38ba8"; # red
bright2 = "a6e3a1"; # green
bright3 = "f9e2af"; # yellow
bright4 = "89b4fa"; # blue
bright5 = "f5c2e7"; # pink
bright6 = "94e2d5"; # teal
bright7 = "a6adc8"; # Subtext 0
}; };
}; };
}; };

View file

@ -41,7 +41,7 @@ in
"dialout" "dialout"
"input" "input"
] ++ (optional config.hardware.i2c.enable config.hardware.i2c.group); ] ++ (optional config.hardware.i2c.enable config.hardware.i2c.group);
shell = config.home-manager.users.erwin.programs.fish.package; shell = config.home-manager.users.erwin.programs.nushell.package;
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
(pkgs.fetchurl { (pkgs.fetchurl {
url = "https://github.com/eboskma.keys"; url = "https://github.com/eboskma.keys";
@ -50,8 +50,6 @@ in
]; ];
}; };
programs.fish.enable = true;
nix.settings.allowed-users = [ "erwin" ]; nix.settings.allowed-users = [ "erwin" ];
}; };
} }

View file

@ -147,15 +147,15 @@ in
enable = true; enable = true;
package = pkgs.swayfx; package = pkgs.swayfx;
wayvnc = true; wayvnc = true;
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png"; lock-wallpaper = ../../wallpapers/river-3840.png;
output = { output = {
"DP-1" = { "DP-1" = {
bg = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png fill"; bg = "${../../wallpapers/river-3840.png} fill";
mode = "3840x2160@60Hz"; mode = "3840x2160@60Hz";
position = "0 0"; position = "0 0";
}; };
"DP-3" = { "DP-3" = {
bg = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png fill"; bg = "${../../wallpapers/space_shuttle_endeavour_3840.jpg} fill";
mode = "3840x2160@60Hz"; mode = "3840x2160@60Hz";
position = "3840 0"; position = "3840 0";
}; };
@ -237,8 +237,7 @@ in
[ [
atool atool
attic-client attic-client
# bitwarden bitwarden
bitwarden-cli
blink1-tool blink1-tool
bottom bottom
chromium chromium