This commit is contained in:
Sebastian Moser
2026-02-17 22:30:17 +01:00
parent d3f6e79b85
commit e6a35ee756
34 changed files with 2839 additions and 796 deletions

View File

@@ -1,4 +1,4 @@
{ secretsDir, confDir, hostname, self, pkgs, config, system, workDir, ... }:
{ lib, secretsDir, confDir, hostname, self, pkgs, config, system, workDir, ... }:
{
programs.bash = {
@@ -21,7 +21,6 @@
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
"checkwinsize"
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
"globstar"
@@ -34,19 +33,21 @@
# is needed to that ssh works
# TERM = "xterm";
# my prompt
PS1 = ''\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] '';
TEST = "hiiiiiiiiiiiiiiiiiiiiiiiiiii";
};
shellAliases = {
archive-video = "${lib.getExe pkgs.yt-dlp} -f \"bv*+ba/b\" --merge-output-format mp4 --embed-thumbnail --write-thumbnail --convert-thumbnails png --add-metadata -o \"%(title)s.%(ext)s\"";
zed="WAYLAND_DISPLAY= zeditor";
npm="pnpm";
md="~/work/modules/modules/dev/run";
mize="~/work/mize/mize";
m="~/work/mize/mize";
c2="~/work/c2-system/target/debug/system-c2-cli";
c2="~/work/c2-system/cli/target/debug/system-c2-cli";
ports = "${pkgs.lsof}/bin/lsof -i -P -n";
losetup = "${pkgs.util-linux}/bin/losetup";
@@ -65,7 +66,7 @@
shutdown = "echo try harder.... xD";
npw = "nmcli c up pw";
flex = "neofetch | lolcat";
kwoche = "curl https://kalenderwoche.celll.net/?api=1; echo";
kwoche = "curl -k https://kalenderwoche.celll.net/?api=1; echo";
psg = "ps -e | grep";
vilias = "nvim -c 'set syntax=bash' ${confDir}/common/programs/bash.nix";
stl = "sudo systemctl";
@@ -117,9 +118,16 @@
# my prompt
if [[ "${hostname}" == "main" ]]
then
export PS1="\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] "
#export PS1="\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] "
#export PS1="\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] > "
# \n\[\033[1;34m\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\]
#export PS1="\W > ";
export PS1="\[\033[01;34m\]\W\033[00m "
else
export PS1="\033[1;32m${hostname} \[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] "
#export PS1="\033[1;32m${hostname} \[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] "
export PS1="\033[1;32m${hostname}\[\033[01;34m\] \W\033[00m "
fi
@@ -188,6 +196,7 @@
fi
}
tph(){
if [[ "$1" == "" ]]
then

View File

@@ -13,10 +13,19 @@
cmakeFlags = prev.cmakeFlags or [] ++ [ "-DENABLE_SWAY=ON" ];
});
mylf = pkgs.lf.overrideAttrs (final: prev: {
oldpkgs = (builtins.getFlake "nixpkgs/release-25.05").legacyPackages.${system};
mylf = oldpkgs.lf.overrideAttrs (final: prev: {
patches = (prev.patches or [ ]) ++ [
./lf-filter.patch
];
/*
src = pkgs.fetchFromGitHub { # use the old v35 version of lf... so that my patch applies
owner = "gokcehan";
repo = "lf";
rev = "r35";
hash = "sha256-0ZyIbEKiQ9l30gqHlpW7l/6/TzqVRvnKk9c2FiQ6E6Y=";
};
*/
checkPhase = "";
});
@@ -52,7 +61,7 @@
exiftool # (metadata/audio, and file detection for .webm files)
jq # (json and metadata)
lynx # (html/web pages)
poppler_utils # pdftoppm # (pdf)
poppler-utils # pdftoppm # (pdf)
odt2txt # (odt)
imagemagick # convert from imagemagick (fonts)
atool # (archives)
@@ -105,7 +114,7 @@
enable = true;
commands = {
dragon-out = ''%${pkgs.xdragon}/bin/xdragon -a -x "$fx"'';
dragon-out = ''%${pkgs.dragon-drop}/bin/xdragon -a -x "$fx"'';
editor-open = ''$$EDITOR $f'';
mkdir = ''
''${{

View File

@@ -1,5 +1,9 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
ccls
];
programs.neovim = {
enable = true;
withPython3 = true;
@@ -25,6 +29,16 @@
"rust-analyzer.diagnostics.enable" = true;
"rust-analyzer.checkOnSave.enable" = false;
"languageserver" = {
"ccls" = {
"command" = "ccls";
"filetypes" = ["c" "cpp" "objc" "objcpp"];
"rootPatterns" = [".ccls" "compile_commands.json" ".vim/" ".git/" ".hg/"];
"initializationOptions" = {
"cache" = {
"directory" = "/tmp/ccls";
};
};
};
"slint" = {
"filetypes" = [ "slint" ];
"command" = "slint-lsp";

View File

@@ -40,6 +40,29 @@
port = 49388;
user = "server";
};
fwin = {
user = "me";
hostname = "fwin";
};
feh = {
user = "root";
hostname = "100.107.101.77";
port = 49001;
};
ppc-hosting = {
user = "root";
hostname = "100.107.101.77";
port = 49002;
};
pcmc = {
user = "root";
hostname = "100.107.101.77";
port = 49003;
};
phone = {
user = "u0_a345";
port = 8022;

View File

@@ -1,5 +1,6 @@
{ pkgs, config, persistentDir, ... }: {
## thunderbird settings
programs.thunderbird = {
enable = true;
@@ -8,8 +9,23 @@
};
};
## mail archiveing...
/*
## email accounts
/*
accounts.email.accounts.sewi-gmail = {
flavor = "gmail.com";
};
accounts.email.accounts.c2vi-gmail = {
flavor = "gmail.com";
};
*/
/*
# not working....
home.file.".thunderbird" = {
force = true;
source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/thunderbird";