style: reformat with alejandra
This commit is contained in:
parent
4d30be6fe5
commit
ce3fed7148
44 changed files with 812 additions and 468 deletions
|
@ -1,11 +1,14 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.bat;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin.bat = {
|
||||
enable = mkEnableOption {
|
||||
type = types.bool;
|
||||
|
@ -35,14 +38,15 @@ in
|
|||
theme = "Catppuccin-${cfg.theme}";
|
||||
};
|
||||
themes = let
|
||||
getTheme = flavour: builtins.readFile (pkgs.fetchFromGitHub {
|
||||
getTheme = flavour:
|
||||
builtins.readFile (pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "bat";
|
||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||
} + "/Catppuccin-${flavour}.tmTheme");
|
||||
in
|
||||
{
|
||||
}
|
||||
+ "/Catppuccin-${flavour}.tmTheme");
|
||||
in {
|
||||
Catppuccin-mocha = getTheme "mocha";
|
||||
Catppuccin-macchiato = getTheme "macchiato";
|
||||
Catppuccin-frappe = getTheme "frappe";
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.btop;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin.btop = {
|
||||
enable = mkEnableOption {
|
||||
type = types.bool;
|
||||
|
@ -30,7 +33,8 @@ in
|
|||
repo = "btop";
|
||||
rev = "ecb8562bb6181bb9f2285c360bbafeb383249ec3";
|
||||
sha256 = "sha256-ovVtupO5jWUw6cwA3xEzRe1juUB8ykfarMRVTglx3mk=";
|
||||
} + "/catppuccin_${cfg.theme}.theme");
|
||||
}
|
||||
+ "/catppuccin_${cfg.theme}.theme");
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{lib, ...}:
|
||||
|
||||
with lib; let
|
||||
cfg = config.catppuccin;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./bat
|
||||
./btop
|
||||
|
|
|
@ -1,15 +1,25 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.dircolors;
|
||||
# generated via vivid@HEAD - ./generate.sh
|
||||
theme = flavour: trueColor: builtins.fromJSON (
|
||||
builtins.readFile ./catppuccin-${flavour + (if trueColor then "" else "-8bit")}.json
|
||||
theme = flavour: trueColor:
|
||||
builtins.fromJSON (
|
||||
builtins.readFile
|
||||
./catppuccin-${flavour
|
||||
+ (
|
||||
if trueColor
|
||||
then ""
|
||||
else "-8bit"
|
||||
)}.json
|
||||
);
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin = {
|
||||
dircolors = {
|
||||
enable = mkEnableOption {
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ fetchFromGitHub, lib, pkgs, rustPlatform }:
|
||||
|
||||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
rustPlatform,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "vivid";
|
||||
version = "9299aa4c843bb7ed757b47bb2449abbba3aed793";
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.btop;
|
||||
fromINI = f: let
|
||||
iniFile =
|
||||
pkgs.runCommand "in.ini" {
|
||||
iniFile = pkgs.runCommand "in.ini" {
|
||||
nativeBuildInputs = [pkgs.jc];
|
||||
} ''jc --ini < ${f} > "$out" '';
|
||||
in builtins.fromJSON(builtins.readFile iniFile);
|
||||
in
|
||||
|
||||
{
|
||||
builtins.fromJSON (builtins.readFile iniFile);
|
||||
in {
|
||||
options.catppuccin.dunst = {
|
||||
enable = mkEnableOption {
|
||||
type = types.bool;
|
||||
|
@ -33,7 +36,8 @@ in
|
|||
repo = "dunst";
|
||||
rev = "a72991e56338289a9fce941b5df9f0509d2cba09";
|
||||
sha256 = "sha256-1LeSKuZcuWr9z6mKnyt1ojFOnIiTupwspGrOw/ts8Yk=";
|
||||
} + "/src/mocha.conf");
|
||||
}
|
||||
+ "/src/mocha.conf");
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.k9s;
|
||||
fromYAML = f:
|
||||
let
|
||||
jsonFile = pkgs.runCommand "in.json"
|
||||
fromYAML = f: let
|
||||
jsonFile =
|
||||
pkgs.runCommand "in.json"
|
||||
{
|
||||
nativeBuildInputs = [pkgs.gojq];
|
||||
} ''
|
||||
|
@ -13,9 +18,7 @@ with lib; let
|
|||
'';
|
||||
in
|
||||
builtins.fromJSON (builtins.readFile jsonFile);
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin.k9s = {
|
||||
enable = mkEnableOption {
|
||||
type = types.bool;
|
||||
|
@ -37,7 +40,8 @@ in
|
|||
repo = "k9s";
|
||||
rev = "322598e19a4270298b08dc2765f74795e23a1615";
|
||||
sha256 = "sha256-GrRCOwCgM8BFhY8TzO3/WDTUnGtqkhvlDWE//ox2GxI=";
|
||||
} + /dist/${cfg.theme}.yml);
|
||||
}
|
||||
+ /dist/${cfg.theme}.yml);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.btop;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin.lsd = {
|
||||
enable = mkEnableOption {
|
||||
type = types.bool;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ lib, vscode-utils, ... }:
|
||||
|
||||
{
|
||||
lib,
|
||||
vscode-utils,
|
||||
...
|
||||
}:
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "catppuccin-vsc";
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
{ config, lib, options, pkgs, vscode-utils, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
vscode-utils,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
global = config.catppuccin;
|
||||
cfg = config.catppuccin.vscode;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.catppuccin = {
|
||||
vscode = {
|
||||
enable = mkEnableOption {
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
mainUser = "winston";
|
||||
|
||||
plymouthPkg = (pkgs.stdenv.mkDerivation {
|
||||
plymouthPkg = pkgs.stdenv.mkDerivation {
|
||||
name = "plymouth-theme-catppuccin";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
|
@ -21,10 +23,8 @@ let
|
|||
cat "themes/catppuccin-''${dir}/catppuccin-''${dir}.plymouth" | sed "s@\/usr\/@''${out}\/@" > "''${out}/share/plymouth/themes/catppuccin-''${dir}/catppuccin-''${dir}.plymouth"
|
||||
done
|
||||
'';
|
||||
});
|
||||
in
|
||||
|
||||
{
|
||||
};
|
||||
in {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs.nix-ld.enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
nix = {
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
nur,
|
||||
sops,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import nixpkgs-unstable {
|
||||
system = prev.system;
|
||||
|
|
55
home.nix
55
home.nix
|
@ -1,12 +1,17 @@
|
|||
{ config, lib, nur, pkgs, sops, machine, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
nur,
|
||||
pkgs,
|
||||
sops,
|
||||
machine,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
in {
|
||||
imports =
|
||||
[
|
||||
nur
|
||||
sops
|
||||
./catppuccin
|
||||
|
@ -23,7 +28,8 @@ in
|
|||
./modules/vscode.nix
|
||||
./modules/wezterm.nix
|
||||
./modules/zsh.nix
|
||||
] ++ lib.optionals (builtins.pathExists ./modules/secrets.nix) [
|
||||
]
|
||||
++ lib.optionals (builtins.pathExists ./modules/secrets.nix) [
|
||||
# hotfix: use fucking git-secret, this is atrocious beyond belief
|
||||
./modules/secrets.nix
|
||||
];
|
||||
|
@ -41,28 +47,40 @@ in
|
|||
home = {
|
||||
packages = with pkgs; ([
|
||||
zsh
|
||||
fd ffmpeg file imagemagick mdcat ranger ripgrep
|
||||
fd
|
||||
ffmpeg
|
||||
file
|
||||
imagemagick
|
||||
mdcat
|
||||
ranger
|
||||
ripgrep
|
||||
git-secret
|
||||
cargo unstable.deno rustc
|
||||
cargo
|
||||
unstable.deno
|
||||
rustc
|
||||
|
||||
(callPackage ./packages/org-stats {})
|
||||
(callPackage ./packages/python3.catppuccin-catwalk {})
|
||||
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
|
||||
unstable.wezterm
|
||||
(callPackage ./packages/helm-ls {})
|
||||
] ++ lib.optionals isDarwin [
|
||||
]
|
||||
++ lib.optionals isDarwin [
|
||||
iina
|
||||
] ++ lib.optionals isLinux [
|
||||
]
|
||||
++ lib.optionals isLinux [
|
||||
_1password-gui
|
||||
insomnia
|
||||
mattermost-desktop
|
||||
] ++ lib.optionals (isLinux && machine.personal) [
|
||||
]
|
||||
++ lib.optionals (isLinux && machine.personal) [
|
||||
(callPackage ./packages/python3.discover-overlay {})
|
||||
unstable.discord
|
||||
lutris
|
||||
]);
|
||||
|
||||
sessionVariables = {
|
||||
sessionVariables =
|
||||
{
|
||||
TERMINAL = "wezterm";
|
||||
LESSHISTFILE = "-";
|
||||
|
||||
|
@ -70,11 +88,16 @@ in
|
|||
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
||||
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
||||
PATH = "$PATH:${config.xdg.dataHome}/krew/bin:$GOPATH/bin";
|
||||
} // (if isDarwin then {
|
||||
}
|
||||
// (
|
||||
if isDarwin
|
||||
then {
|
||||
# https://github.com/NixOS/nix/issues/2033
|
||||
NIX_PATH = "$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\${NIX_PATH:+:$NIX_PATH}";
|
||||
SSH_AUTH_SOCK = "${config.xdg.configHome}/gnupg/S.gpg-agent.ssh";
|
||||
} else {});
|
||||
}
|
||||
else {}
|
||||
);
|
||||
|
||||
stateVersion = "22.11";
|
||||
};
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{pkgs, ...}:
|
||||
|
||||
with lib; let
|
||||
cfg = config.catppuccin;
|
||||
in
|
||||
{
|
||||
in {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,16 +1,21 @@
|
|||
{ config, lib, nur, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
nur,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# since I'm using firefox from brew on darwin, I need to build a dummy package
|
||||
# to still manage it via home-manager
|
||||
package = if isLinux then pkgs.firefox else (pkgs.writeScriptBin "__dummy-firefox" "");
|
||||
package =
|
||||
if isLinux
|
||||
then pkgs.firefox
|
||||
else (pkgs.writeScriptBin "__dummy-firefox" "");
|
||||
profiles.default = {
|
||||
search.default = "DuckDuckGo";
|
||||
search.force = true;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "winston";
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
key = "0x0B89BC45007EE9CC";
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
git-credential-gopass
|
||||
gnupg-pkcs11-scd
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ config, lib, flakePath, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
in
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
flakePath,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
in {
|
||||
home = lib.mkIf isLinux {
|
||||
packages = with pkgs; [
|
||||
blueberry
|
||||
|
@ -13,7 +15,8 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [(self: super: {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
picom = super.picom.overrideAttrs (old: {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "FT-Labs";
|
||||
|
@ -23,7 +26,8 @@ in
|
|||
};
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [pkgs.pcre2];
|
||||
});
|
||||
})];
|
||||
})
|
||||
];
|
||||
|
||||
gtk = lib.mkIf isLinux {
|
||||
enable = true;
|
||||
|
@ -114,7 +118,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
services = lib.mkIf isLinux {
|
||||
dunst.enable = true;
|
||||
flameshot = {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ...}:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
dyff
|
||||
gojq
|
||||
|
|
247
modules/mail.nix
247
modules/mail.nix
|
@ -1,10 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux isDarwin;
|
||||
in
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux isDarwin;
|
||||
in {
|
||||
accounts.email.maildirBasePath = "${config.xdg.dataHome}/mail";
|
||||
|
||||
accounts.email.accounts = {
|
||||
|
@ -64,46 +65,202 @@ in
|
|||
mailcap_path = "$HOME/.config/neomutt/mailcap:$mailcap_path";
|
||||
};
|
||||
binds = [
|
||||
{ map = [ "index" "pager" ]; key = "i"; action = "noop"; }
|
||||
{ map = [ "index" "pager" ]; key = "g"; action = "noop"; }
|
||||
{ map = [ "index" ]; key = "\\Cf"; action = "noop"; }
|
||||
{ map = [ "index" "pager" ]; key = "M"; action = "noop"; }
|
||||
{ map = [ "index" "pager" ]; key = "C"; action = "noop"; }
|
||||
{ map = [ "index" ]; key = "gg"; action = "first-entry"; }
|
||||
{ map = [ "index" ]; key = "j"; action = "next-entry"; }
|
||||
{ map = [ "index" ]; key = "k"; action = "previous-entry"; }
|
||||
{ map = [ "attach" ]; key = "<return>"; action = "view-mailcap"; }
|
||||
{ map = [ "attach" ]; key = "l"; action = "view-mailcap"; }
|
||||
{ map = [ "editor" ]; key = "<space>"; action = "noop"; }
|
||||
{ map = [ "index" ]; key = "G"; action = "last-entry"; }
|
||||
{ map = [ "index" ]; key = "gg"; action = "first-entry"; }
|
||||
{ map = [ "pager" "attach" ]; key = "h"; action = "exit"; }
|
||||
{ map = [ "pager" ]; key = "j"; action = "next-line"; }
|
||||
{ map = [ "pager" ]; key = "k"; action = "previous-line"; }
|
||||
{ map = [ "pager" ]; key = "l"; action = "view-attachments"; }
|
||||
{ map = [ "index" ]; key = "D"; action = "delete-message"; }
|
||||
{ map = [ "index" ]; key = "U"; action = "undelete-message"; }
|
||||
{ map = [ "index" ]; key = "L"; action = "limit"; }
|
||||
{ map = [ "index" ]; key = "h"; action = "noop"; }
|
||||
{ map = [ "index" ]; key = "l"; action = "display-message"; }
|
||||
{ map = [ "index" "query" ]; key = "<space>"; action = "tag-entry"; }
|
||||
{ map = [ "browser" ]; key = "h"; action = "goto-parent"; }
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "i";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "g";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "\\Cf";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "M";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "C";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "gg";
|
||||
action = "first-entry";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "j";
|
||||
action = "next-entry";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "k";
|
||||
action = "previous-entry";
|
||||
}
|
||||
{
|
||||
map = ["attach"];
|
||||
key = "<return>";
|
||||
action = "view-mailcap";
|
||||
}
|
||||
{
|
||||
map = ["attach"];
|
||||
key = "l";
|
||||
action = "view-mailcap";
|
||||
}
|
||||
{
|
||||
map = ["editor"];
|
||||
key = "<space>";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "G";
|
||||
action = "last-entry";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "gg";
|
||||
action = "first-entry";
|
||||
}
|
||||
{
|
||||
map = ["pager" "attach"];
|
||||
key = "h";
|
||||
action = "exit";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "j";
|
||||
action = "next-line";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "k";
|
||||
action = "previous-line";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "l";
|
||||
action = "view-attachments";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "D";
|
||||
action = "delete-message";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "U";
|
||||
action = "undelete-message";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "L";
|
||||
action = "limit";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "h";
|
||||
action = "noop";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "l";
|
||||
action = "display-message";
|
||||
}
|
||||
{
|
||||
map = ["index" "query"];
|
||||
key = "<space>";
|
||||
action = "tag-entry";
|
||||
}
|
||||
{
|
||||
map = ["browser"];
|
||||
key = "h";
|
||||
action = "goto-parent";
|
||||
}
|
||||
# { map = [ "browser" ]; key = "h"; action = "'<change-dir><kill-line>..<enter>' \"Go to parent folder\""; }
|
||||
{ map = [ "index" "pager" ]; key = "H"; action = "view-raw-message"; }
|
||||
{ map = [ "browser" ]; key = "l"; action = "select-entry"; }
|
||||
{ map = [ "browser" ]; key = "gg"; action = "top-page"; }
|
||||
{ map = [ "browser" ]; key = "G"; action = "bottom-page"; }
|
||||
{ map = [ "pager" ]; key = "gg"; action = "top"; }
|
||||
{ map = [ "pager" ]; key = "G"; action = "bottom"; }
|
||||
{ map = [ "index" "pager" "browser" ]; key = "d"; action = "half-down"; }
|
||||
{ map = [ "index" "pager" "browser" ]; key = "u"; action = "half-up"; }
|
||||
{ map = [ "index" "pager" ]; key = "S"; action = "sync-mailbox"; }
|
||||
{ map = [ "index" "pager" ]; key = "R"; action = "group-reply"; }
|
||||
{ map = [ "index" ]; key = "\\031"; action = "previous-undeleted"; }
|
||||
{ map = [ "index" ]; key = "\\005"; action = "next-undeleted"; }
|
||||
{ map = [ "pager" ]; key = "\\031"; action = "previous-line"; }
|
||||
{ map = [ "pager" ]; key = "\\005"; action = "next-line"; }
|
||||
{ map = [ "editor" ]; key = "<Tab>"; action = "complete-query"; }
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "H";
|
||||
action = "view-raw-message";
|
||||
}
|
||||
{
|
||||
map = ["browser"];
|
||||
key = "l";
|
||||
action = "select-entry";
|
||||
}
|
||||
{
|
||||
map = ["browser"];
|
||||
key = "gg";
|
||||
action = "top-page";
|
||||
}
|
||||
{
|
||||
map = ["browser"];
|
||||
key = "G";
|
||||
action = "bottom-page";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "gg";
|
||||
action = "top";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "G";
|
||||
action = "bottom";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager" "browser"];
|
||||
key = "d";
|
||||
action = "half-down";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager" "browser"];
|
||||
key = "u";
|
||||
action = "half-up";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "S";
|
||||
action = "sync-mailbox";
|
||||
}
|
||||
{
|
||||
map = ["index" "pager"];
|
||||
key = "R";
|
||||
action = "group-reply";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "\\031";
|
||||
action = "previous-undeleted";
|
||||
}
|
||||
{
|
||||
map = ["index"];
|
||||
key = "\\005";
|
||||
action = "next-undeleted";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "\\031";
|
||||
action = "previous-line";
|
||||
}
|
||||
{
|
||||
map = ["pager"];
|
||||
key = "\\005";
|
||||
action = "next-line";
|
||||
}
|
||||
{
|
||||
map = ["editor"];
|
||||
key = "<Tab>";
|
||||
action = "complete-query";
|
||||
}
|
||||
];
|
||||
};
|
||||
notmuch.enable = true;
|
||||
|
|
|
@ -1,29 +1,72 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
darp = pkgs.callPackage ../packages/discord-applemusic-rich-presence {};
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
programs.ncmpcpp = {
|
||||
enable = isLinux;
|
||||
bindings = [
|
||||
{ key = "j"; command = "scroll_down"; }
|
||||
{ key = "k"; command = "scroll_up"; }
|
||||
{ key = "J"; command = [ "select_item" "scroll_down" ]; }
|
||||
{ key = "K"; command = [ "select_item" "scroll_up" ]; }
|
||||
{ key = "h"; command = "previous_column"; }
|
||||
{ key = "l"; command = "next_column"; }
|
||||
{ key = "ctrl-b"; command = "page_up"; }
|
||||
{ key = "ctrl-u"; command = "page_up"; }
|
||||
{ key = "ctrl-f"; command = "page_down"; }
|
||||
{ key = "ctrl-d"; command = "page_down"; }
|
||||
{ key = "g"; command = "move_home"; }
|
||||
{ key = "G"; command = "move_end"; }
|
||||
{ key = "n"; command = "next_found_item"; }
|
||||
{ key = "N"; command = "previous_found_item"; }
|
||||
{
|
||||
key = "j";
|
||||
command = "scroll_down";
|
||||
}
|
||||
{
|
||||
key = "k";
|
||||
command = "scroll_up";
|
||||
}
|
||||
{
|
||||
key = "J";
|
||||
command = ["select_item" "scroll_down"];
|
||||
}
|
||||
{
|
||||
key = "K";
|
||||
command = ["select_item" "scroll_up"];
|
||||
}
|
||||
{
|
||||
key = "h";
|
||||
command = "previous_column";
|
||||
}
|
||||
{
|
||||
key = "l";
|
||||
command = "next_column";
|
||||
}
|
||||
{
|
||||
key = "ctrl-b";
|
||||
command = "page_up";
|
||||
}
|
||||
{
|
||||
key = "ctrl-u";
|
||||
command = "page_up";
|
||||
}
|
||||
{
|
||||
key = "ctrl-f";
|
||||
command = "page_down";
|
||||
}
|
||||
{
|
||||
key = "ctrl-d";
|
||||
command = "page_down";
|
||||
}
|
||||
{
|
||||
key = "g";
|
||||
command = "move_home";
|
||||
}
|
||||
{
|
||||
key = "G";
|
||||
command = "move_end";
|
||||
}
|
||||
{
|
||||
key = "n";
|
||||
command = "next_found_item";
|
||||
}
|
||||
{
|
||||
key = "N";
|
||||
command = "previous_found_item";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, flakePath, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
flakePath,
|
||||
...
|
||||
}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
{config, ...}: {
|
||||
programs.newsboat = {
|
||||
enable = true;
|
||||
autoReload = true;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home = lib.mkIf isDarwin {
|
||||
packages = [pkgs.unstable.sketchybar];
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# TODO: enable after sops supports nix-darwin
|
||||
sops = {
|
||||
gnupg.home = "${config.xdg.configHome}/gnupg";
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{ config, flakePath, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
flakePath,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, flakePath, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
flakePath,
|
||||
...
|
||||
}: {
|
||||
xdg.configFile = {
|
||||
"wezterm" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/modules/wezterm";
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
{ config, flakePath, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
flakePath,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs = {
|
||||
direnv.enable = true;
|
||||
direnv.nix-direnv.enable = true;
|
||||
|
@ -34,8 +38,7 @@
|
|||
|
||||
initExtra = let
|
||||
functionsDir = "${config.home.homeDirectory}/${config.programs.zsh.dotDir}/functions";
|
||||
in
|
||||
''
|
||||
in ''
|
||||
for conf in "${functionsDir}"/**/*.zsh; do
|
||||
source "$conf"
|
||||
done
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ fetchzip, lib, stdenv }:
|
||||
|
||||
{
|
||||
fetchzip,
|
||||
lib,
|
||||
stdenv,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "AppleMusicDiscordRPC";
|
||||
version = "1.3.0";
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ fetchzip, lib, pkgs, stdenv }:
|
||||
|
||||
let
|
||||
{
|
||||
fetchzip,
|
||||
lib,
|
||||
pkgs,
|
||||
stdenv,
|
||||
}: let
|
||||
flavour = "Mocha";
|
||||
accent = "Pink";
|
||||
in
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ appimageTools, fetchurl, lib, pkgs }:
|
||||
|
||||
{
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
appimageTools.wrapType1 rec {
|
||||
name = "cura";
|
||||
version = "5.2.1";
|
||||
|
|
|
@ -1,13 +1,19 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
target = {
|
||||
target =
|
||||
{
|
||||
"aarch64-darwin" = "arm64";
|
||||
"x86_64-darwin" = "x86";
|
||||
}.${system} or (throw "Unsupported system: ${system}");
|
||||
}
|
||||
.${system}
|
||||
or (throw "Unsupported system: ${system}");
|
||||
in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "discord-applemusic-rich-presence";
|
||||
version = "0.5.0";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ buildNpmPackage, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
buildNpmPackage,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildNpmPackage {
|
||||
pname = "nodePackages.emmet-ls";
|
||||
version = "0.3.1";
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "helm-ls";
|
||||
version = "20220912";
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "jq-lsp";
|
||||
version = "20221220";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ stdenv, fetchurl, lib, undmg }:
|
||||
|
||||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
lib,
|
||||
undmg,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "librewolf";
|
||||
version = "109.0-1";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ lib, python3Packages, mopidy, mopidy-podcast }:
|
||||
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
mopidy,
|
||||
mopidy-podcast,
|
||||
}:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mopidy-podcast-itunes";
|
||||
version = "3.0.1";
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "discord-applemusic-rich-presence";
|
||||
version = "1.11.2";
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
{ stdenvNoCC, lib, fetchFromGitHub, papirus-icon-theme, gtk3, bash, getent, flavor ? "mocha", accent ? "blue", ... }:
|
||||
let
|
||||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
papirus-icon-theme,
|
||||
gtk3,
|
||||
bash,
|
||||
getent,
|
||||
flavor ? "mocha",
|
||||
accent ? "blue",
|
||||
...
|
||||
}: let
|
||||
validAccents = ["blue" "flamingo" "green" "lavender" "maroon" "mauve" "peach" "pink" "red" "rosewater" "sapphire" "sky" "teal" "yellow"];
|
||||
validFlavors = ["latte" "frappe" "macchiato" "mocha"];
|
||||
pname = "catppuccin-papirus-folders";
|
||||
in
|
||||
|
||||
lib.checkListOfEnum "${pname}: accent color" validAccents [accent]
|
||||
lib.checkListOfEnum "${pname}: flavor" validFlavors [flavor]
|
||||
lib.checkListOfEnum "${pname}: flavor"
|
||||
validFlavors [flavor]
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
inherit pname;
|
||||
version = "unstable-2022-12-04";
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ lib, python3Packages }:
|
||||
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
}:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "catppuccin_catwalk";
|
||||
version = "0.4.0";
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{ gobject-introspection, gtk3, lib, python3Packages, wrapGAppsHook }:
|
||||
|
||||
{
|
||||
gobject-introspection,
|
||||
gtk3,
|
||||
lib,
|
||||
python3Packages,
|
||||
wrapGAppsHook,
|
||||
}:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "discover-overlay";
|
||||
version = "0.6.3";
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ lib, vscode-utils, ... }:
|
||||
|
||||
{
|
||||
lib,
|
||||
vscode-utils,
|
||||
...
|
||||
}:
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "vscode-kubernetes-tools";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
let pkgs = import <nixpkgs> {}; in
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
git
|
||||
|
|
Loading…
Reference in a new issue