diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-03-22 17:17:59 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-03-22 17:17:59 +0530 |
| commit | edc4ef0106f7d4a37d367e81ae9e6470dbdc7087 (patch) | |
| tree | 2e49381dbfec01b74d3b91bffc3c75e040742cef | |
| parent | 384f3554cc53cf03fa9a4cf9e1bfa74aaa64a13f (diff) | |
| download | nixos-config-edc4ef0106f7d4a37d367e81ae9e6470dbdc7087.tar.gz nixos-config-edc4ef0106f7d4a37d367e81ae9e6470dbdc7087.zip | |
chore: config sync
| -rw-r--r-- | config/qutebrowser/config.py | 2 | ||||
| -rw-r--r-- | config/qutebrowser/ui.py | 9 | ||||
| -rwxr-xr-x | config/qutebrowser/userscripts/bookmark | 16 | ||||
| -rw-r--r-- | config/zsh/plugins/fzf-cd.zsh | 12 | ||||
| -rw-r--r-- | config/zsh/plugins/output-operations.zsh | 19 | ||||
| -rw-r--r-- | configuration.nix | 16 | ||||
| -rw-r--r-- | hardware-configuration.nix | 2 | ||||
| -rw-r--r-- | home.nix | 22 | ||||
| -rw-r--r-- | packages.nix | 14 | ||||
| -rw-r--r-- | packages/sidekick-dashboard/pkg.nix | 48 |
10 files changed, 105 insertions, 55 deletions
diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 5f80067..97c7147 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -93,6 +93,8 @@ c.hints.chars = 'azsxdclmknjb' c.hints.auto_follow = 'unique-match' c.content.pdfjs = True +nunmap('m') +nunmap('M') nunmap("<Ctrl-a>") nunmap('<Ctrl-v>') nunmap('<Ctrl-x>') diff --git a/config/qutebrowser/ui.py b/config/qutebrowser/ui.py index e976f98..aa16249 100644 --- a/config/qutebrowser/ui.py +++ b/config/qutebrowser/ui.py @@ -18,8 +18,13 @@ xresources = read_xresources('*') c.fonts.default_family = 'JetBrainsMono Nerd Font' c.fonts.default_size = '12px' c.colors.webpage.preferred_color_scheme = 'dark' -c.colors.webpage.bg = "white" -c.colors.webpage.darkmode.enabled = False + +c.colors.webpage.darkmode.enabled = True +c.colors.webpage.darkmode.algorithm = "lightness-cielab" +c.colors.webpage.darkmode.threshold.text = 150 +c.colors.webpage.darkmode.threshold.background = 100 +c.colors.webpage.darkmode.policy.images = 'always' +c.colors.webpage.darkmode.grayscale.images = 0.35 ## Hints c.colors.hints.bg = 'yellow' diff --git a/config/qutebrowser/userscripts/bookmark b/config/qutebrowser/userscripts/bookmark new file mode 100755 index 0000000..8695551 --- /dev/null +++ b/config/qutebrowser/userscripts/bookmark @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +BOOKMARKS_PATH="$HOME/nixos/extras/bookmarks" + +case "$1" in + show) + local link=$(dmenu -p 'Bookmark :: ' < "$BOOKMARKS_PATH") + if test "$link"; then + echo "open -t '$link'" >> "$QUTE_FIFO" + fi + ;; + new) + echo "$QUTE_URL" >> "$BOOKMARKS_PATH" + ;; +esac + diff --git a/config/zsh/plugins/fzf-cd.zsh b/config/zsh/plugins/fzf-cd.zsh new file mode 100644 index 0000000..e4b4337 --- /dev/null +++ b/config/zsh/plugins/fzf-cd.zsh @@ -0,0 +1,12 @@ +fzf-change-dir() { + local result=$(find -type d | fzf); + + if ! [[ -z "$result" ]]; then + cd "$result" + fi + + zle send-break +} + +zle -N fzf-change-dir; +bindkey '^P' fzf-change-dir; diff --git a/config/zsh/plugins/output-operations.zsh b/config/zsh/plugins/output-operations.zsh new file mode 100644 index 0000000..e9b3546 --- /dev/null +++ b/config/zsh/plugins/output-operations.zsh @@ -0,0 +1,19 @@ +# TODO + +# logoutputdir=$(mktemp -d /tmp/zsh-output-operations.XXXXXXXX/) + +output-file() { + local termid=$(tty | sed 's|/|-|g'); + echo "$logoutputdir/last-output-$termid"; +} + +xz() { + "$@" |& tee $(output-file); +} + +# Cleanup +function plugin-exit-handler { + rm -f $(output-file); +} + +# trap plugin-exit-handler EXIT diff --git a/configuration.nix b/configuration.nix index c001126..b41be4d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -60,6 +60,18 @@ in hardware.bluetooth.enable = false; # services.blueman.enable = true; + # services.vdirsyncer = { + # enable = true; + # jobs = { + # google_cal = { + # enable = true; + # config = { + # # + # }; + # }; + # }; + # }; + # Enable sound. sound.enable = false; security.rtkit.enable = true; @@ -67,8 +79,6 @@ in enable = true; alsa.enable = true; pulse.enable = true; - # jack.enable = true; - # alsa.support32Bit = true; }; # Network @@ -98,7 +108,7 @@ in }; lxd.enable = false; virtualbox.host.enable = false; - #anbox.enable = true; + # anbox.enable = true; }; # I18n and keyboard layout diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 3c2b635..6db9258 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -19,6 +19,7 @@ "snd-seq" "snd-rawmidi" "uinput" + "v4l2loopback" ]; boot.kernelParams = [ "i8042.nopnp=1" @@ -28,6 +29,7 @@ ]; boot.extraModprobeConfig = '' options snd slots=snd-hda-intel + options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" ''; boot.supportedFilesystems = [ "ntfs" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; @@ -14,17 +14,17 @@ in yarn ]; - #programs.emacs = { - #enable = true; - #}; - #services.emacs = { - #enable = true; - #client.enable = true; - #}; - #programs.direnv = { - #enable = true; - #enableNixDirenvIntegration = true; - #}; + # programs.emacs = { + # enable = true; + # }; + # services.emacs = { + # enable = true; + # client.enable = true; + # }; + # programs.direnv = { + # enable = true; + # enableNixDirenvIntegration = true; + # }; # xdg.configFile."mimeapps.list".text = '' # [Default Applications] diff --git a/packages.nix b/packages.nix index fc045bd..67f6155 100644 --- a/packages.nix +++ b/packages.nix @@ -32,7 +32,6 @@ let nodejs-16_x # godot - # blender bspwm sxhkd @@ -52,6 +51,7 @@ let # Browser qutebrowser brave + # firefox # ungoogled-chromium # Comm @@ -69,9 +69,11 @@ let feh obs-studio inkscape + krita + # blender # Gaming - chiaki + # chiaki # Scheduling remind @@ -87,6 +89,13 @@ let gotop tremc zathura + # (emojipick.override { + # dmenu = localPkgs.dmenu; + # python3 = python3; + # emojipick-print-emoji = false; + # emojipick-font-family = "JetBrainsMono Nerd Font"; + # emojipick-font-size = "12"; + # }) ]; utils = with pkgs; [ @@ -107,6 +116,7 @@ let mediainfo poppler_utils glow + wineWowPackages.stable # appimage-run # Audio diff --git a/packages/sidekick-dashboard/pkg.nix b/packages/sidekick-dashboard/pkg.nix index 0835db6..7721a00 100644 --- a/packages/sidekick-dashboard/pkg.nix +++ b/packages/sidekick-dashboard/pkg.nix @@ -2,45 +2,19 @@ with pkgs.lib; let - useFakeHash = false; - commitHash = "f160ec9742cacd14f8853ea6d17dc4011f85156d"; - realSha256 = "sha256-LCFcX23dY7tFoXPgEHaD+U6g2X/9M4aE4TPfvhu6bLI="; + commitHash = "main"; - src = fetchFromGitHub { - owner = "mozilla"; - repo = "nixpkgs-mozilla"; - rev = "15b7a05f20aab51c4ffbefddb1b448e862dccb7d"; # 10th April 2022 - sha256 = "sha256-YeN4bpPvHkVOpQzb8APTAfE7/R+MFMwJUMkqmfvytSk="; - }; - moz = import "${src.out}/rust-overlay.nix" pkgs pkgs; - rust = moz.latest.rustChannels.nightly.rust.override { - extensions = [ "rust-src" ]; - }; -in -rustPlatform.buildRustPackage rec { - pname = "sidekick-dashboard"; - version = "0.0.0"; - - src = pkgs.fetchFromGitHub { + sidekickSrc = pkgs.fetchFromGitHub { owner = "phenax"; repo = "sidekick-dashboard"; - rev = commitHash; - sha256 = - if useFakeHash - then lib.fakeSha256 - else realSha256; + rev = "main"; + # sha256 = lib.fakeSha256; + sha256 = "sha256-1EJv0N1Ebp5vHN2+xETx4qhPQTS4YI6r3ysCkn0GozY="; }; - cargoSha256 = "sha256-dgW2SlpKovw79wkdGcbVm6c8KqkbcZlvZCwCcdVBShw="; - - nativeBuildInputs = with pkgs; [ cmake wrapQtAppsHook clang ]; - buildInputs = with pkgs; [ - pkg-config - libclang - libGL - qt5.full - qtbase - libsForQt5.qmake - makeWrapper - ]; -} + sidekickPkg = import "${sidekickSrc.out}/default.nix" { + inherit pkgs; + sourceRoot = replaceStrings [ "/nix/store/" ] [ "" ] "${sidekickSrc.out}"; + }; +in +sidekickPkg |
