some stuff

This commit is contained in:
Sebastian Moser
2024-04-05 22:25:14 +02:00
parent c2ddb0d47f
commit c7291705a4
6 changed files with 30 additions and 15 deletions

View File

@@ -44,6 +44,7 @@
};
shellAliases = {
ports = "${pkgs.lsof}/bin/lsof -i -P -n";
losetup = "${pkgs.util-linux}/bin/losetup";
log = let
log = pkgs.writeShellApplication {

View File

@@ -1,4 +1,4 @@
{ pkgs, self, confDir, ... }@params:
{ pkgs, self, confDir, system, inputs, ... }@params:
{
home.file.".config/lf/icons".source = "${self}/programs/lf/icons";
programs.lf = let
@@ -28,7 +28,10 @@
];
text = builtins.readFile "${self}/programs/lf/previewer";
};
mylfWrapper = pkgs.writeShellApplication {
# use newest version of ueberzug from nixpkgs unstable because: https://github.com/ueber-devel/ueberzug/issues/15
# mylfWrapper = let myUeberzug = inputs.nixpkgs-unstable.legacyPackages.${system}.ueberzug;
mylfWrapper = let myUeberzug = pkgs.ueberzug.overrideAttrs (final: prev: { version = "18.2.2"; });
in pkgs.writeShellApplication {
name = "lf";
#runtimeInputs = with pkgs; [ curl w3m ];
@@ -66,7 +69,7 @@
[ -d "''${XDG_CACHE_HOME}/lf" ] || mkdir -p "''${XDG_CACHE_HOME}/lf"
export FIFO_UEBERZUG="''${XDG_CACHE_HOME}/lf/ueberzug-$$"
mkfifo "$FIFO_UEBERZUG"
${pkgs.ueberzug}/bin/ueberzug layer -s < "$FIFO_UEBERZUG" -p json &
${myUeberzug}/bin/ueberzug layer -s < "$FIFO_UEBERZUG" -p json &
exec 3> "$FIFO_UEBERZUG"
trap cleanup HUP INT QUIT TERM PWR EXIT
${mylf}/bin/lf "$@" 3>&-

View File

@@ -64,14 +64,21 @@
hostname = "140.238.213.48";
user = "ubuntu";
};
hec-builder = {
hostname = "10.5.5.56";
user = "root";
};
storage = {
hostname = "10.5.5.50";
user = "root";
};
};
};
home.file.".ssh/known_hosts".force = true;
home.file.".ssh/known_hosts".text = ''
hpm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+FpaNOf+ao6RCa6e43vAHFcQZTGu45rIqAG3Vx0/M8
lush ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFevbQp0XTZOVFZTDMKzgsZn4NNEIN+SFMqUhSbF5WFo
lush ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILNQClF4DQhO1jSkVWhusp1wfxadSsDclg0TbFGbR+Gy
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
rpi ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOX+6B6Axx7AqgCm1H1rrou/3yOLeOLcTd8s0In0mOIY
files ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOX+6B6Axx7AqgCm1H1rrou/3yOLeOLcTd8s0In0mOIY