a bunch of random changes again
This commit is contained in:
0
programs/alacritty.nix
Normal file → Executable file
0
programs/alacritty.nix
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
{ persistentDir, confDir, hostname, self, pkgs, config, ... }:
|
||||
{ persistentDir, confDir, hostname, self, pkgs, config, system, inputs, workDir, ... }:
|
||||
{
|
||||
programs.bash = {
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
inherit system;
|
||||
# this does not work aparently....
|
||||
|
||||
# is needed to that ssh works
|
||||
@@ -39,9 +40,20 @@
|
||||
PS1 = ''\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] ❯❯❯ '';
|
||||
|
||||
TEST = "hiiiiiiiiiiiiiiiiiiiiiiiiiii";
|
||||
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
losetup = "${pkgs.util-linux}/bin/losetup";
|
||||
log = let
|
||||
log = pkgs.writeShellApplication {
|
||||
name = "log";
|
||||
#runtimeInputs = [ inputs.my-log.packages.${system}.pythonForLog ];
|
||||
#text = "cd /home/me/work/log/new; nix develop -c 'python ${workDir}/log/new/client.py'";
|
||||
text = if system == "x86_64-linux" then ''${inputs.my-log.packages.${system}.pythonForLog}/bin/python ${workDir}/log/new/client.py "$@"'' else "echo system not x86_84-linux";
|
||||
};
|
||||
in "${log}/bin/log";
|
||||
mi = "${workDir}/mize/run";
|
||||
cdd = "/sdcard";
|
||||
n = "${pkgs.python3} ${self}/scripts/nav/main.py";
|
||||
shutdown = "echo try harder.... xD";
|
||||
@@ -75,6 +87,18 @@
|
||||
bashrcExtra = ''
|
||||
export PATH=${self}/mybin:$PATH
|
||||
export TERM="xterm-color"
|
||||
export system=${system}
|
||||
|
||||
# the commit hash of nixpkgs 23.11
|
||||
export nip="nixpkgs/71db8c7a02f3be7cb49b495786050ce1913246d3"
|
||||
|
||||
# needed to make ssh -X work
|
||||
# see: https://unix.stackexchange.com/questions/412065/ssh-connection-x11-connection-rejected-because-of-wrong-authentication
|
||||
export XAUTHORITY=$HOME/.Xauthority
|
||||
|
||||
export nl="--log-format bar-with-logs"
|
||||
export acern="ssh://acern x86_64-linux,aarch64-linux - 20 10 big-parallel - -"
|
||||
export hpm="ssh://hpm x86_64-linux,aarch64-linux - 8 5 big-parallel - -"
|
||||
|
||||
# my prompt
|
||||
if [[ "${hostname}" == "main" ]]
|
||||
@@ -115,10 +139,10 @@
|
||||
tta(){
|
||||
if [[ "$1" == "" ]]
|
||||
then
|
||||
rsync ~/work/priv-share/fast tab:/sdcard/fast
|
||||
rsync -rv --delete ~/work/priv-share/fast/* tab:/sdcard/fast
|
||||
elif [[ "$1" == "p" ]]
|
||||
then
|
||||
rsync tab:/sdcard/fast ~/work/priv-share/fast
|
||||
rsync -rv tab:/sdcard/fast/* ~/work/priv-share/fast
|
||||
elif [[ "$1" == "k" ]]
|
||||
then
|
||||
scp -O "$1" tab:/sdcard/keep
|
||||
@@ -130,10 +154,10 @@
|
||||
tph(){
|
||||
if [[ "$1" == "" ]]
|
||||
then
|
||||
rsync ~/work/priv-share/fast phone:/sdcard/fast
|
||||
rsync -rv --delete ~/work/priv-share/fast/* phone:/sdcard/fast
|
||||
elif [[ "$1" == "p" ]]
|
||||
then
|
||||
rsync phone:/sdcard/fast ~/work/priv-share/fast
|
||||
rsync -rv phone:/sdcard/fast/* ~/work/priv-share/fast
|
||||
elif [[ "$1" == "k" ]]
|
||||
then
|
||||
scp -O "$1" tab:/sdcard/keep
|
||||
@@ -281,7 +305,7 @@
|
||||
complete -W "start stop restart status daemon-reload" stl
|
||||
|
||||
# run
|
||||
complete -W "mnt-wechner sync-school wstunnel hibernate p speed-test-nixos-iso bat bstat mnt-files-local mnt-lan-local mnt-files-remote mnt-lan-remote suspend" ru
|
||||
complete -W "mnt-wechner sync-school wstunnel hibernate p speed-test-nixos-iso bat bstat mnt-files-local mnt-lan-local mnt-files-remote mnt-lan-remote suspend rm-tab-cur rm-last-char" ru
|
||||
|
||||
|
||||
'';
|
||||
|
||||
0
programs/emacs/config.el
Normal file → Executable file
0
programs/emacs/config.el
Normal file → Executable file
0
programs/emacs/default.nix
Normal file → Executable file
0
programs/emacs/default.nix
Normal file → Executable file
0
programs/emacs/init.el
Normal file → Executable file
0
programs/emacs/init.el
Normal file → Executable file
0
programs/emacs/packages.el
Normal file → Executable file
0
programs/emacs/packages.el
Normal file → Executable file
76
programs/firefox/default.nix
Normal file
76
programs/firefox/default.nix
Normal file
@@ -0,0 +1,76 @@
|
||||
{ pkgs, inputs, system, lib, persistentDir, config, secretsDir, ... }:
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin.overrideAttrs (old: {
|
||||
NIX_CFLAGS_COMPILE = [ (old.NIX_CFLAGS_COMPILE or "") ] ++ [ "-O3" "-march=native" "-fPIC" ];
|
||||
});
|
||||
profiles.me = {
|
||||
isDefault = true;
|
||||
id = 0;
|
||||
extensions =
|
||||
with inputs.firefox-addons.packages.${system};
|
||||
with (import ./my-extensions.nix {
|
||||
inherit fetchurl lib stdenv;
|
||||
buildFirefoxXpiAddon = inputs.firefox-addons.lib.${system}.buildFirefoxXpiAddon;
|
||||
});
|
||||
[
|
||||
# from extra-firefox-extensions.nix
|
||||
adguard-adblocker
|
||||
grepper
|
||||
visionary-bold-fixed
|
||||
|
||||
|
||||
# to search: https://gitlab.com/rycee/nur-expressions/-/blob/master/pkgs/firefox-addons/generated-firefox-addons.nix?ref_type=heads
|
||||
# ref: https://github.com/Misterio77/nix-config/blob/main/home/misterio/features/desktop/common/firefox.nix#L5
|
||||
# ref: https://github.com/Misterio77/nix-config/blob/main/flake.nix#L66
|
||||
onetab
|
||||
bitwarden
|
||||
|
||||
];
|
||||
settings = import ./user-settings.nix {};
|
||||
extraConfig = ''
|
||||
lockPref("browser.theme.content-theme", 0)
|
||||
'';
|
||||
};
|
||||
/*
|
||||
profiles.old = {
|
||||
isDefault = false;
|
||||
id = 1;
|
||||
path = "../../old/app-data/firefox/me";
|
||||
};
|
||||
# */
|
||||
profiles.testing = {
|
||||
id = 2;
|
||||
isDefault = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
############ persistent folders of my profile ##################
|
||||
home.file = {
|
||||
".mozilla/firefox/me/places.sqlite" = {
|
||||
force = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/firefox-data/places.sqlite";
|
||||
# ref: https://github.com/nix-community/home-manager/issues/676
|
||||
# - link goes into the store, and then out again.... xD
|
||||
};
|
||||
".mozilla/firefox/me/places.sqlite-wal" = {
|
||||
force = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/firefox-data/places.sqlite-wal";
|
||||
};
|
||||
|
||||
# one tab storage path
|
||||
".mozilla/firefox/me/storage/default/moz-extension+++e2297551-90b4-4da0-92c8-1d00cda2d080^userContextId=4294967295" = {
|
||||
force = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/firefox-data/onetab-folder";
|
||||
};
|
||||
|
||||
# bitwareden storage path
|
||||
".mozilla/firefox/me/storage/default/moz-extension+++e563a533-4e66-4b75-bbec-176bb803d96c^userContextId=4294967295" = {
|
||||
force = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${secretsDir}/firefox-bitwarden-folder";
|
||||
};
|
||||
};
|
||||
}
|
||||
184
programs/firefox/my-extensions.nix
Executable file
184
programs/firefox/my-extensions.nix
Executable file
@@ -0,0 +1,184 @@
|
||||
{ buildFirefoxXpiAddon, fetchurl, lib, stdenv }@args:
|
||||
let
|
||||
buildFirefoxXpiAddonFromFile = lib.makeOverridable ({ stdenv ? args.stdenv
|
||||
, fetchurl ? args.fetchurl, pname, version, addonId, path, meta, ...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
inherit meta;
|
||||
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = true;
|
||||
|
||||
buildCommand = ''
|
||||
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||
mkdir -p "$dst"
|
||||
install -v -m644 "$path" "$dst/${addonId}.xpi"
|
||||
'';
|
||||
});
|
||||
|
||||
packages = import ./generated-firefox-addons.nix {
|
||||
inherit buildFirefoxXpiAddon fetchurl lib stdenv;
|
||||
};
|
||||
in
|
||||
{
|
||||
/*
|
||||
"onetab" = buildFirefoxXpiAddonFromFile {
|
||||
pname = "onetab";
|
||||
version = "4.2.240";
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
|
||||
"visionary-bold-fixed" = buildFirefoxXpiAddon {
|
||||
pname = "visionary-bold-fixed";
|
||||
version = "1.0";
|
||||
addonId = "{8d38d24a-dd1b-4142-8873-bbaa32e4e44f}";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/4122855/visionary_bold_fixed-1.0.xpi";
|
||||
sha256 = "c4aed779329b980c7e59cf2353e54108713d60b515b918bf7a535f9944c01ae8";
|
||||
meta = with lib;
|
||||
{
|
||||
description = "As you could notice almost all new mozilla's dark themes (colorways bold) are little broken (dark tabs on dark background). I decided to fix this moment in Visionary Bold theme.";
|
||||
license = licenses.cc-by-30;
|
||||
mozPermissions = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
"visionary-bold" = buildFirefoxXpiAddon {
|
||||
pname = "visionary-bold";
|
||||
version = "2.1";
|
||||
addonId = "visionary-bold-colorway@mozilla.org";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/4066246/visionary_bold-2.1.xpi";
|
||||
sha256 = "73b6a25f41877f2c199c0b07ef28d25f69b067ab56bc08cf238e9fb89dfa92d9";
|
||||
meta = with lib;
|
||||
{
|
||||
description = "You question the status quo and move others to imagine a better future.";
|
||||
license = licenses.cc-by-30;
|
||||
mozPermissions = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
"atom-one-dark-theme2" = buildFirefoxXpiAddon {
|
||||
pname = "atom-one-dark-theme2";
|
||||
version = "2.0";
|
||||
addonId = "{53de5a1e-f54c-45f7-b86e-09f0161b85f3}";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/3369239/atom_one_dark_theme2-2.0.xpi";
|
||||
sha256 = "3168163ab8bf2da4a64d10f266c50fd0a03226c6260b60cbcbb4e8779db53b02";
|
||||
meta = with lib;
|
||||
{
|
||||
description = "the atom dark theme extrack for the oponime software";
|
||||
mozPermissions = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
"simple-style-fox" = buildFirefoxXpiAddon {
|
||||
pname = "simple-style-fox";
|
||||
version = "4.0";
|
||||
addonId = "{05914925-648e-42bc-9024-3b4ea9ec379e}";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/3890846/simple_style_fox-4.0.xpi";
|
||||
sha256 = "2d8369ca5215030db03dcce61c3bf4c358fe0c97b6a3e89a64a146063195c038";
|
||||
meta = with lib;
|
||||
{
|
||||
description = "Simple style fox";
|
||||
license = licenses.cc-by-30;
|
||||
mozPermissions = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
"adguard-adblocker" = buildFirefoxXpiAddon {
|
||||
pname = "adguard-adblocker";
|
||||
version = "4.2.240";
|
||||
addonId = "adguardadblocker@adguard.com";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/4209021/adguard_adblocker-4.2.240.xpi";
|
||||
sha256 = "30790a6d58a2ccc31dc703544f25ef193a8a60074bf2f5775097739db4bcc2e0";
|
||||
meta = with lib;
|
||||
{
|
||||
homepage = "https://adguard.com/";
|
||||
description = "Unmatched adblock extension against advertising and pop-ups. Blocks ads on Facebook, Youtube and all other websites.";
|
||||
license = licenses.lgpl3;
|
||||
mozPermissions = [
|
||||
"tabs"
|
||||
"<all_urls>"
|
||||
"webRequest"
|
||||
"webRequestBlocking"
|
||||
"webNavigation"
|
||||
"storage"
|
||||
"contextMenus"
|
||||
"cookies"
|
||||
"privacy"
|
||||
"http://*/*"
|
||||
"https://*/*"
|
||||
"*://*.adguard.com/*/thankyou.html*"
|
||||
"*://*.adguard.info/*/thankyou.html*"
|
||||
"*://*.adguard.app/*/thankyou.html*"
|
||||
];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
"grepper" = buildFirefoxXpiAddon {
|
||||
pname = "grepper";
|
||||
version = "0.0.8.9";
|
||||
addonId = "grepper@codegrepper.com";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/4069054/grepper-0.0.8.9.xpi";
|
||||
sha256 = "17db8b2f138f442882f7db5ba40e6d2af591c45e322cf3262628705c76af1b04";
|
||||
meta = with lib;
|
||||
{
|
||||
description = "The Query & Answer System for the Coder Community";
|
||||
mozPermissions = [
|
||||
"storage"
|
||||
"webRequest"
|
||||
"activeTab"
|
||||
"<all_urls>"
|
||||
"alarms"
|
||||
"https://www.google.com/*"
|
||||
"https://www.google.co.uk/*"
|
||||
"https://www.google.co.za/*"
|
||||
"https://www.google.co.th/*"
|
||||
"https://www.google.co.jp/*"
|
||||
"https://www.google.co.il/*"
|
||||
"https://www.google.es/*"
|
||||
"https://www.google.ca/*"
|
||||
"https://www.google.de/*"
|
||||
"https://www.google.it/*"
|
||||
"https://www.google.fr/*"
|
||||
"https://www.google.com.au/*"
|
||||
"https://www.google.com.ph/*"
|
||||
"https://www.google.com.tw/*"
|
||||
"https://www.google.com.br/*"
|
||||
"https://www.google.com.ua/*"
|
||||
"https://www.google.com.my/*"
|
||||
"https://www.google.com.hk/*"
|
||||
"https://www.google.ru/*"
|
||||
"https://www.google.com.tr/*"
|
||||
"https://www.google.be/*"
|
||||
"https://www.google.com.gr/*"
|
||||
"https://www.google.co.in/*"
|
||||
"https://www.google.com.mx/*"
|
||||
"https://www.google.dk/*"
|
||||
"https://www.google.com.ar/*"
|
||||
"https://www.google.ch/*"
|
||||
"https://www.google.cl/*"
|
||||
"https://www.google.co.kr/*"
|
||||
"https://www.google.com.co/*"
|
||||
"https://www.google.pl/*"
|
||||
"https://www.google.pt/*"
|
||||
"https://www.google.com.pk/*"
|
||||
"https://www.google.co.id/*"
|
||||
"https://www.google.com.vn/*"
|
||||
"https://www.google.nl/*"
|
||||
"https://www.google.se/*"
|
||||
"https://www.google.com.sg/*"
|
||||
"http://*/*"
|
||||
"https://*/*"
|
||||
"http://localhost:8888/grepper_app/*"
|
||||
"https://www.codegrepper.com/*"
|
||||
"https://www.grepper.com/*"
|
||||
"https://staging.codegrepper.com/*"
|
||||
"https://www.grepper.com/app/notifications.php"
|
||||
];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
}
|
||||
156
programs/firefox/user-settings.nix
Normal file
156
programs/firefox/user-settings.nix
Normal file
@@ -0,0 +1,156 @@
|
||||
{ ... }: {
|
||||
|
||||
# general
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
"extensions.enabledScopes" = 15;
|
||||
"browser.search.region" = "AT";
|
||||
"browser.aboutConfig.showWarning" = false;
|
||||
"javascript.options.mem.gc_parallel_marking" = true;
|
||||
"browser.download.dir" = "/home/me/work/downloads";
|
||||
"browser.startup.couldRestoreSession.count" = 5;
|
||||
"browser.toolbars.bookmarks.visibility" = "never";
|
||||
"devtools.everOpened" = true;
|
||||
"middlemouse.paste" = false;
|
||||
"browser.download.folderList" = 1;
|
||||
"extensions.langpacks.signatures.required" = false;
|
||||
"browser.shell.checkDefaultBrowser" = false;
|
||||
|
||||
# better widnow settings for tiling vm
|
||||
"browser.tabs.inTitlebar" = 0;
|
||||
|
||||
# so that firefox reacts fast to changes in /etc/hosts
|
||||
"network.dnsCacheExpiration" = 0;
|
||||
|
||||
# dont sync theme
|
||||
# so that "browser.theme.content-theme" is not always set to 2
|
||||
"services.sync.prefs.sync.extensions.activeThemeID" = false;
|
||||
|
||||
# allow to install my own addons
|
||||
"xpinstall.signatures.required" = false;
|
||||
"xpinstall.whitelist.required" = true;
|
||||
|
||||
# set theme
|
||||
#"extensions.activeThemeID" = "visionary-bold-colorway@mozilla.org";
|
||||
# - this one does not work
|
||||
"extensions.activeThemeID" = "{8d38d24a-dd1b-4142-8873-bbaa32e4e44f}";
|
||||
"browser.theme.content-theme" = 0; # content dark theme
|
||||
"browser.theme.toolbar-theme" = 0; # toolbar dark theme
|
||||
|
||||
|
||||
# have acces to browser console
|
||||
"devtools.chrome.enabled" = true;
|
||||
|
||||
#always show downloads button
|
||||
"browser.download.autohideButton" = false;
|
||||
|
||||
# better cache
|
||||
"browser.cache.disk.capacity" = 4560000;
|
||||
"browser.cache.disk.smart_size.enabled" = false;
|
||||
"browser.cache.check_doc_frequency" = 2;
|
||||
# http://kb.mozillazine.org/Browser.cache.check_doc_frequency
|
||||
|
||||
|
||||
# the header customisation
|
||||
"browser.uiCustomization.state" = ''{"placements":{"widget-overflow-fixed-list":["sync-button"],"unified-extensions-area":["jid1-93cwpmrbvpjrqa_jetpack-browser-action","_react-devtools-browser-action","grepper_codegrepper_com-browser-action","simple-translate_sienori-browser-action","_d04b0b40-3dab-4f0b-97a6-04ec3eddbfb0_-browser-action","_b0721213-dc0b-4ae0-8436-8c14f0022a37_-browser-action"],"nav-bar":["back-button","forward-button","stop-reload-button","home-button","customizableui-special-spring1","urlbar-container","zoom-controls","customizableui-special-spring7","screenshot-button","fullscreen-button","developer-button","bookmarks-menu-button","downloads-button","_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action","adguardadblocker_adguard_com-browser-action","extension_one-tab_com-browser-action","side-view_mozilla_org-browser-action","unified-extensions-button","reset-pbm-toolbar-button"],"toolbar-menubar":["menubar-items"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"PersonalToolbar":["preferences-button","personal-bookmarks"]},"seen":["developer-button","_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action","extension_one-tab_com-browser-action","_d04b0b40-3dab-4f0b-97a6-04ec3eddbfb0_-browser-action","grepper_codegrepper_com-browser-action","save-to-pocket-button","_react-devtools-browser-action","jid1-93cwpmrbvpjrqa_jetpack-browser-action","adguardadblocker_adguard_com-browser-action","side-view_mozilla_org-browser-action","simple-translate_sienori-browser-action","profiler-button","reset-pbm-toolbar-button","_b0721213-dc0b-4ae0-8436-8c14f0022a37_-browser-action"],"dirtyAreaCache":["nav-bar","PersonalToolbar","toolbar-menubar","TabsToolbar","widget-overflow-fixed-list","unified-extensions-area"],"currentVersion":20,"newElementCount":26}'';
|
||||
|
||||
|
||||
# keep extension uuids the same ... so that the bitwaredne pass-store and onetab stores stay the same
|
||||
|
||||
"extensions.webextensions.uuids" = builtins.toJSON {
|
||||
"extension@one-tab.com" = "e2297551-90b4-4da0-92c8-1d00cda2d080";
|
||||
"adguardadblocker@adguard.com" = "b73239bf-cb93-4985-8f3b-71b32a3b3527";
|
||||
"grepper@codegrepper.com" = "7cfa9e68-fba7-4eb9-8f3b-d4562a31b476";
|
||||
|
||||
# bitwarden
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = "e563a533-4e66-4b75-bbec-176bb803d96c";
|
||||
};
|
||||
|
||||
"extensions.webextensions.ExtensionStorageIDB.migrated.adguardadblocker@adguard.com" = true;
|
||||
"extensions.webextensions.ExtensionStorageIDB.migrated.extension@one-tab.com" = true;
|
||||
"extensions.webextensions.ExtensionStorageIDB.migrated.grepper@codegrepper.com" = true;
|
||||
"extensions.webextensions.ExtensionStorageIDB.migrated.screenshots@mozilla.org" = true;
|
||||
"extensions.webextensions.ExtensionStorageIDB.migrated.{446900e4-71c2-419f-a6a7-df9c091e268b}" = true;
|
||||
|
||||
|
||||
# to not show startup dialogs
|
||||
"browser.eme.ui.firstContentShown" = true;
|
||||
"browser.engagement.ctrlTab.has-used" = true;
|
||||
"browser.engagement.downloads-button.has-used" = true;
|
||||
"browser.engagement.fxa-toolbar-menu-button.has-used" = true;
|
||||
"browser.engagement.home-button.has-used" = true;
|
||||
"browser.engagement.library-button.has-used" = true;
|
||||
"browser.engagement.sidebar-button.has-used" = true;
|
||||
"distribution.archlinux.bookmarksProcessed" = true;
|
||||
"distribution.canonical.bookmarksProcessed" = true;
|
||||
"distribution.iniFile.exists.appversion" = "122.0a1";
|
||||
"distribution.iniFile.exists.value" = false;
|
||||
"distribution.nixos.bookmarksProcessed" = true;
|
||||
"browser.firefox-view.feature-tour" = ''{"message":"FIREFOX_VIEW_FEATURE_TOUR","screen":"","complete":true}'';
|
||||
"trailhead.firstrun.didSeeAboutWelcome" = true;
|
||||
|
||||
|
||||
# disable autofill
|
||||
"signon.autofillForms" = false;
|
||||
"signon.firefoxRelay.feature" = "offered";
|
||||
"signon.generation.enabled" = false;
|
||||
"signon.management.page.breach-alerts.enabled" = false;
|
||||
"signon.rememberSignons" = false;
|
||||
|
||||
|
||||
# interesting
|
||||
# browser.bookmarks.defaultLocation toolbar_____
|
||||
# browser.migration.version 142
|
||||
# browser.fixup.dns_first_for_single_words true
|
||||
# browser.fixup.domainwhitelist.router true
|
||||
# browser.startup.homepage about:blank
|
||||
# extensions.activeThemeID visionary-bold-colorway@mozilla.org
|
||||
# network.dns.offline-localhost false
|
||||
# network.dnsCacheExpiration 0
|
||||
# pref.privacy.disable_button.cookie_exceptions false
|
||||
# pref.privacy.disable_button.tracking_protection_exceptions false
|
||||
# pref.privacy.disable_button.view_passwords false
|
||||
|
||||
|
||||
################### devtools not used ##########################
|
||||
#devtools.aboutdebugging.collapsibilities.processes false
|
||||
|
||||
#devtools.debugger.end-panel-size 57
|
||||
#devtools.debugger.event-listeners-visible true
|
||||
#devtools.debugger.pause-on-caught-exceptions false
|
||||
|
||||
#devtools.debugger.prefs-schema-version 11
|
||||
#devtools.debugger.remote-enabled true
|
||||
#devtools.debugger.start-panel-size 155
|
||||
|
||||
|
||||
#devtools.netmonitor.msg.visibleColumns ["data","time"]
|
||||
#devtools.netmonitor.panes-network-details-height 403
|
||||
#devtools.netmonitor.panes-network-details-width 549
|
||||
#devtools.netmonitor.panes-search-height 237
|
||||
#devtools.netmonitor.panes-search-width 250
|
||||
#devtools.performance.new-panel-onboarding false
|
||||
#devtools.performance.recording.entries 134217728
|
||||
#devtools.performance.recording.features ["screenshots","js","stackwalk","cpu","processcpu"]
|
||||
#devtools.performance.recording.threads ["GeckoMain","Compositor","Renderer","SwComposite","DOM Worker"]
|
||||
#devtools.responsive.reloadNotification.enabled false
|
||||
#devtools.responsive.viewport.height 732
|
||||
#devtools.responsive.viewport.width 680
|
||||
#devtools.theme auto
|
||||
#devtools.theme.show-auto-theme-info false
|
||||
#devtools.toolbox.footer.height 633
|
||||
#devtools.toolbox.host right
|
||||
#devtools.toolbox.previousHost bottom
|
||||
#devtools.toolbox.sidebar.width 431
|
||||
#devtools.toolbox.splitconsoleHeight 98
|
||||
#devtools.toolbox.tabsOrder inspector,webconsole,netmonitor,jsdebugger,styleeditor,performance,memory,storage,accessibility,application
|
||||
#devtools.toolbox.zoomValue 1.2
|
||||
#devtools.toolsidebar-height.inspector 345
|
||||
#devtools.toolsidebar-width.inspector 383
|
||||
#devtools.toolsidebar-width.inspector.splitsidebar 225
|
||||
#devtools.webconsole.filter.debug false
|
||||
#devtools.webconsole.filter.info false
|
||||
#devtools.webconsole.input.editorOnboarding false
|
||||
#devtools.webconsole.input.editorWidth 393
|
||||
#devtools.webextensions.@react-devtools.enabled true
|
||||
|
||||
}
|
||||
2
programs/git.nix
Normal file → Executable file
2
programs/git.nix
Normal file → Executable file
@@ -3,7 +3,7 @@
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Sebastian Moser";
|
||||
userEmail = "me@c2vi.dev";
|
||||
userEmail = "sebastian@c2vi.dev";
|
||||
|
||||
extraConfig = {
|
||||
core.editor = "nvim";
|
||||
|
||||
0
programs/lf/colors
Normal file → Executable file
0
programs/lf/colors
Normal file → Executable file
4
programs/lf/default.nix
Normal file → Executable file
4
programs/lf/default.nix
Normal file → Executable file
@@ -113,6 +113,10 @@
|
||||
|
||||
|
||||
keybindings = {
|
||||
# sort by time
|
||||
mt = ":set sortby time; set info time; set reverse";
|
||||
# sort normally
|
||||
ms = ":set sortby natural; set info; set reverse!";
|
||||
F = "setfilter";
|
||||
P = "%pwd";
|
||||
W = "nav-work";
|
||||
|
||||
0
programs/lf/icons
Normal file → Executable file
0
programs/lf/icons
Normal file → Executable file
Submodule programs/lf/lf-config deleted from 1c295ce7bc
0
programs/lf/lf-filter.patch
Normal file → Executable file
0
programs/lf/lf-filter.patch
Normal file → Executable file
0
programs/lf/opener
Normal file → Executable file
0
programs/lf/opener
Normal file → Executable file
@@ -10,11 +10,12 @@
|
||||
# typst ... TODO
|
||||
rust-vim
|
||||
dracula-vim
|
||||
lf-vim
|
||||
lf-vim
|
||||
];
|
||||
|
||||
coc.enable = true;
|
||||
coc.settings = {
|
||||
"rust-analyzer.cargo.sysroot" = "discover";
|
||||
"rust-analyzer.server.path" = "/etc/profiles/per-user/me/bin/rust-analyzer";
|
||||
"coc.preferences.extensionUpdateCheck" = "never";
|
||||
"cSpellExt.enableDictionaries" = [ "german" ];
|
||||
@@ -442,15 +443,26 @@
|
||||
function Cargo_jump()
|
||||
local line,c = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)
|
||||
print("hiiiiiiiiiii")
|
||||
print("hiiiiiiiiiii")
|
||||
print("hiiiiiiiiiii")
|
||||
print("hiiiiiiiiiii")
|
||||
print("hiiiiiiiiiii")
|
||||
print("lines", lines)
|
||||
print("line", line)
|
||||
|
||||
local line_iter = line
|
||||
local line_to_jump = nil
|
||||
local file_to_jump = nil
|
||||
if line == 1 then
|
||||
line_iter = 2
|
||||
end
|
||||
while true do
|
||||
if (lines[line_iter]:sub(1,6) == "error[") then
|
||||
if (lines[line_iter]:sub(1,5) == "error") then
|
||||
local split_line = mysplit(lines[line_iter +1], ":")
|
||||
line_to_jump = split_line[2]
|
||||
file_to_jump = split_line[1]:sub(6, -1)
|
||||
file_to_jump = split_line[1]:sub(7, -1)
|
||||
file_to_jump = file_to_jump:gsub("%s+", "")
|
||||
break
|
||||
end
|
||||
line_iter = line_iter - 1
|
||||
@@ -460,26 +472,50 @@
|
||||
local abs_file_to_jump = vim.fn.getcwd() .. "/" .. file_to_jump
|
||||
|
||||
for i,buf in pairs(buffers) do
|
||||
local name = vim.api.nvim_buf_get_name(buf)
|
||||
if name == abs_file_to_jump then
|
||||
-- local status, name = pcall(function () vim.api.nvim_buf_get_name(buf) end)
|
||||
-- if status then print("error getting buf name"); goto continue else print("got name: " .. name) end
|
||||
|
||||
local name = vim.fn["bufname"](buf)
|
||||
if name == "" then
|
||||
-- print("buf name empty")
|
||||
goto continue
|
||||
end
|
||||
|
||||
-- print("name: " .. name .. " file_to_jump: " .. file_to_jump)
|
||||
if name == file_to_jump then
|
||||
local tab_num = get_tab(name)
|
||||
--vim.cmd("tabn 2")
|
||||
print("jumping to" .. tostring(tab_num))
|
||||
-- vim.cmd(tab_num .. "gt")
|
||||
-- local keys = vim.api.nvim_replace_termcodes("<ENTER>"..tab_num.."gt", false, false, false)
|
||||
-- vim.api.nvim_feedkeys("<ENTER>", "m", true)
|
||||
vim.cmd("q")
|
||||
vim.api.nvim_feedkeys(tab_num .. "gt", "m", false)
|
||||
vim.api.nvim_feedkeys(line_to_jump .. "G", "m", false)
|
||||
return
|
||||
else
|
||||
end
|
||||
|
||||
::continue::
|
||||
end
|
||||
vim.cmd(":tabnew" .. abs_file_to_jump)
|
||||
-- vim.cmd(":tabnew" .. abs_file_to_jump)
|
||||
end
|
||||
|
||||
function get_tab(name)
|
||||
print("there")
|
||||
print("the messssssssssssssssss")
|
||||
local listing = vim.api.nvim_command_output("tabs")
|
||||
local tab
|
||||
local file
|
||||
for i,line in pairs(mysplit(listing, "\n")) do
|
||||
print("line: " .. line)
|
||||
if line:sub(1,8) == "Tab page" then
|
||||
local tab = line:sub(-1)
|
||||
tab = line:sub(-1)
|
||||
print("tab:", tab)
|
||||
else
|
||||
local file = line:sub(5,-1)
|
||||
file = line:sub(5,-1)
|
||||
print("file: " .. file .. " on tab: " .. tostring(tab))
|
||||
if file == name then
|
||||
return tab
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -521,6 +557,7 @@
|
||||
return buffers
|
||||
end
|
||||
|
||||
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
0
programs/rofi/default.nix
Normal file → Executable file
0
programs/rofi/default.nix
Normal file → Executable file
137
programs/ssh.nix
137
programs/ssh.nix
@@ -8,12 +8,20 @@
|
||||
};
|
||||
"github.com" = {
|
||||
hostname = "github.com";
|
||||
identityFile = "${secretsDir}/private-key-main";
|
||||
};
|
||||
rpi = {
|
||||
port = 49388;
|
||||
user = "me";
|
||||
};
|
||||
files = {
|
||||
port = 49388;
|
||||
user = "files";
|
||||
};
|
||||
rpis = {
|
||||
hostname = "rpi";
|
||||
port = 49388;
|
||||
user = "server";
|
||||
};
|
||||
phone = {
|
||||
user = "u0_a345";
|
||||
port = 8022;
|
||||
@@ -33,26 +41,26 @@
|
||||
user = "me";
|
||||
};
|
||||
|
||||
servers = {
|
||||
hostname = "server";
|
||||
fusus = {
|
||||
hostname = "fusu";
|
||||
user = "server";
|
||||
};
|
||||
|
||||
server = {
|
||||
hostname = "server";
|
||||
user = "admin";
|
||||
fusu = {
|
||||
hostname = "fusu";
|
||||
user = "me";
|
||||
};
|
||||
|
||||
ocia = {
|
||||
hostname = "140.238.212.229";
|
||||
user = "root";
|
||||
identityFile = "${secretsDir}/private-key-ocia";
|
||||
#identityFile = "${secretsDir}/private-key-ocia";
|
||||
};
|
||||
|
||||
ocib = {
|
||||
hostname = "140.238.211.43";
|
||||
user = "root";
|
||||
identityFile = "${secretsDir}/private-key-ocib";
|
||||
#identityFile = "${secretsDir}/private-key-ocib";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -63,112 +71,15 @@
|
||||
lush ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFevbQp0XTZOVFZTDMKzgsZn4NNEIN+SFMqUhSbF5WFo
|
||||
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
||||
rpi ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOX+6B6Axx7AqgCm1H1rrou/3yOLeOLcTd8s0In0mOIY
|
||||
files ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOX+6B6Axx7AqgCm1H1rrou/3yOLeOLcTd8s0In0mOIY
|
||||
phone ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHxg0HKtGAkwymll8r17d9cXdt40dJgRkSAzB699pWke+edne4Ildcnbde2yle01nEL7GOg92vh5t1sh6vkCzJQ=
|
||||
uwu ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE6H4kcLXH5hvXN8Ablcfo4q2MwdvVBiAdYWlc4qUiCj
|
||||
[phone]:8022 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN30DqIE7AMYBoKnmbDw+U01LAEC25JZjIXB+T76LBp9
|
||||
[phone]:8022 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDSWFzU8GrAJD/CKJby8IbUzLtbXxwYBF+QQzSRIlbx5kCS2MQjjNtLjAMdt2c8z0O2+qX9abEZXmtYfYlHCo2nCFOhhkjuzT7t6lb14wjAK2HBBWOsh2Y1WSK35FzKtWJvmYcu1uWdDZrvu44PoFITJhCAoZG6QaGlhXVGk1lpasP1qA1/guX/LJYVUGww7oSjQeeAxjKFxrLK01iD1aS60IxIHZIT4yKe//YhppC8LkJc0OnRIzmCMdNIHNXIsg0dL/8to5vA85hqJlTJAZ9qhw542Ul5C34F2z69h4hf3eslIqvVL/tci86jgX4eYiVsUZ81jFtGN3As2RpcOLz8mrC1qZgHTLqix6PaNRrQeRcfvMIH0VOiyzAFEzBI/v0wj1zthRHOg+xKfAq1hKhXarJRYw0c0wmgPUoAOUQGwoF2JGIss7D7ulKTUd7ALn8fdS8+CboFSQ709OA44pSEsAl6IfXT/gh4zHwubfT3mRbla8iQAXYD/nKF5xPQ+Jc=
|
||||
[phone]:8022 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEN+gaX1uwr5oY98hJYGWwBQEEDpmbJsKLY7vIfWRQo02IH36ZC0p14GOnfPLtXuHz8AoNUp7UYyNu8oXxuU/fE=
|
||||
[tab]:8022 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCWnKy5TnPukGMkxYGLjs4Tpu/v3x8JfxaU7dcaAcp3KhxtUDPjdSQLGEIS08L781nGpIJZRdy+jNqKiolQRRTuy7eQaZnCO+ddYQldW2OpqVGbOjS/7T7cHy+aHFJdPiltdgagfPIPColYCGCCoMi3wN7VkR49MAYOr1a0YIlfh1y0PgCbGqkYCPKO90woXPYxI+v5trYHaqNDz9O5ug7k93AHQuTQroqfyzM9vhcg8z42EpDzTs+ypdgXJYOuc4ZbH1mWkou+1SPEZxMSoNUipmwkjQ5GCEwPIpSgRoRHh2WnXU8TmLLDVteJ7zUJlLR8p93rgmp2Uo1gePCsQNiqd4XrmdgdNypUifUE5M7V5LOcuCtZJfX0XZHoo+cvVKgQqpz8MIJAFOJzCXt39/gxcytDwSbN+B4oh9CR4kGGCST/griKpR3rl+PKDap1rpGZYBlPv0ss6RNZTVnIKuv6MaFXLmmrkpaKiFX3Bmze6820BO/LXz5qoLbL8dIf0s=
|
||||
[tab]:8022 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKY8+fJoEuAh0KlB9/g40ImJVcFEuksckgCA5BNK1gdhGsRBkN9LE16Wu07bzVbtBhdYoGDdflI9Hr6l1Y6gu0I=
|
||||
[tab]:8022 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBPVAyWNCCzQSOzeYibuXNPExD7YKcNczvJfc44a3zeo
|
||||
[tab]:8022 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDdwFZf3IRa4YZyrNseofTRIDbkmdMiIXa3Gxs7wFzZN+ICwXeipfqV1Lh9C1sI4YnRIqfZlCSU+SE2dqVoQB6Uj64cdLrdslHYvgsR9PY3vVtrYypGfE1XTkLvD516x4mFofo22A9j8fK95fcMwpWLtNnv9SVBIT3V+4fUlbRCngdJ1V2cOd41JIwBrIxmRJ6X5v/SEqajmnVneqEmsqGgGA7JBJBCMSz5wwmZzWrTpzwj4SAD5b1z/R12DZfFHmgJCZYcMbjDgUiD5khsOwCCflH8DtO41PkOZRqDlpPPT9al7qhhESwxE6w5gIvaVh6HJljSCNw9OCQWONotv3gF9tVs6sZXsWxRZ2R0oIeA3rnM+mZxEtxElc2MKLVlsQ9SM2Xcr3J4Y43cWm7m03cDOz+iZecxs2qKAgn5Au72fudapDAtiCuYjKlMGEgbWX3CmxL0n/Uo32yfTRXnEHWMzXezmdGsuHUzk/sHTL8z5RVyzIBNl2HGlhldFbATuwRxXyBW9JIuEll+rW9Jm0MvpT3KoD/Q5aXDVH+21l6SSNBcjvZu00WNiYDD+gFR4BlewobtacGNOR4ErjxVZ10d8p6S5smadmo/RmbjhrVJK8EzigJPsVxEEjtuVq+jAQCvLTZCpEyDF/cBv60vIu4CyZkoAq1UaL64m7nIhR/8Yw==
|
||||
'';
|
||||
|
||||
home.file.".ssh/rpi/local".text = ''
|
||||
Host config
|
||||
HostName 192.168.1.2
|
||||
User config
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
#RemoteCommand cd /svn/config; bash
|
||||
|
||||
Host rpi
|
||||
HostName 192.168.1.2
|
||||
User admin
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host files
|
||||
HostName 192.168.1.2
|
||||
User files
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host rpis
|
||||
HostName 192.168.1.2
|
||||
User server
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
'';
|
||||
|
||||
home.file.".ssh/rpi/remote".text = ''
|
||||
Host config
|
||||
HostName sebastian.dns.army
|
||||
User config
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
#RemoteCommand cd /svn/config; bash
|
||||
|
||||
Host rpi
|
||||
HostName sebastian.dns.army
|
||||
User admin
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host files
|
||||
HostName sebastian.dns.army
|
||||
User files
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host rpis
|
||||
HostName sebastian.dns.army
|
||||
User server
|
||||
Port 49388
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
'';
|
||||
|
||||
home.file.".ssh/rpi/wstunnel".text = ''
|
||||
Host config
|
||||
HostName localhost
|
||||
User config
|
||||
Port 55555
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
#RemoteCommand cd /svn/config; bash
|
||||
|
||||
Host rpi
|
||||
HostName localhost
|
||||
User admin
|
||||
Port 55555
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host files
|
||||
HostName localhost
|
||||
User files
|
||||
Port 55555
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
|
||||
Host rpis
|
||||
HostName localhost
|
||||
User server
|
||||
Port 55555
|
||||
AddKeysToAgent yes
|
||||
#UseKeychain yes
|
||||
IdentityFile ${secretsDir}/private-key-main
|
||||
'';
|
||||
}
|
||||
|
||||
0
programs/zathura.nix
Normal file → Executable file
0
programs/zathura.nix
Normal file → Executable file
Reference in New Issue
Block a user