feat: cleanup etc

This commit is contained in:
winston 2024-04-27 02:07:37 +02:00
parent 7a42db9d6f
commit 232adff8dc
Signed by: winston
GPG key ID: 3786770EDBC2B481
15 changed files with 103 additions and 286 deletions

View file

@ -1,7 +1,7 @@
{ {
"catppuccin-bat": { "catppuccin-bat": {
"cargoLocks": null, "cargoLocks": null,
"date": "2024-03-12", "date": "2024-04-09",
"extract": null, "extract": null,
"name": "catppuccin-bat", "name": "catppuccin-bat",
"passthru": null, "passthru": null,
@ -11,12 +11,12 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"rev": "7f5f4f8be7ca2a71712c82e3ce8723674a22bab1", "rev": "b8134f01b0ac176f1cf2a7043a5abf5a1a29457b",
"sha256": "sha256-DkNZqPhs+U/LCMiYp4gFAorElWik5OGWe12dYinqKWc=", "sha256": "sha256-gzf0/Ltw8mGMsEFBTUuN33MSFtUP4xhdxfoZFntaycQ=",
"type": "git", "type": "git",
"url": "https://github.com/catppuccin/bat" "url": "https://github.com/catppuccin/bat"
}, },
"version": "7f5f4f8be7ca2a71712c82e3ce8723674a22bab1" "version": "b8134f01b0ac176f1cf2a7043a5abf5a1a29457b"
}, },
"catppuccin-wezterm": { "catppuccin-wezterm": {
"cargoLocks": null, "cargoLocks": null,
@ -39,7 +39,7 @@
}, },
"catppuccin-zsh-fsh": { "catppuccin-zsh-fsh": {
"cargoLocks": null, "cargoLocks": null,
"date": "2024-03-25", "date": "2024-04-09",
"extract": null, "extract": null,
"name": "catppuccin-zsh-fsh", "name": "catppuccin-zsh-fsh",
"passthru": null, "passthru": null,
@ -49,12 +49,12 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"rev": "8af8701de8a00b10c072b7bef4f7b74558a2cd15", "rev": "dd7baca6e0e943f36d1a6721820346e91f25065f",
"sha256": "sha256-O80XzCAw02/bXkMLgf3v71NLjVI4uCaC1i0eAZstA/0=", "sha256": "sha256-qd/+MHmgP+dOnYm6meSu5oCZ/TunCWGHnHqAXm79ERw=",
"type": "git", "type": "git",
"url": "https://github.com/catppuccin/zsh-fsh" "url": "https://github.com/catppuccin/zsh-fsh"
}, },
"version": "8af8701de8a00b10c072b7bef4f7b74558a2cd15" "version": "dd7baca6e0e943f36d1a6721820346e91f25065f"
}, },
"nekowinston-wezterm-bar": { "nekowinston-wezterm-bar": {
"cargoLocks": null, "cargoLocks": null,

View file

@ -3,16 +3,16 @@
{ {
catppuccin-bat = { catppuccin-bat = {
pname = "catppuccin-bat"; pname = "catppuccin-bat";
version = "7f5f4f8be7ca2a71712c82e3ce8723674a22bab1"; version = "b8134f01b0ac176f1cf2a7043a5abf5a1a29457b";
src = fetchgit { src = fetchgit {
url = "https://github.com/catppuccin/bat"; url = "https://github.com/catppuccin/bat";
rev = "7f5f4f8be7ca2a71712c82e3ce8723674a22bab1"; rev = "b8134f01b0ac176f1cf2a7043a5abf5a1a29457b";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false; deepClone = false;
leaveDotGit = false; leaveDotGit = false;
sha256 = "sha256-DkNZqPhs+U/LCMiYp4gFAorElWik5OGWe12dYinqKWc="; sha256 = "sha256-gzf0/Ltw8mGMsEFBTUuN33MSFtUP4xhdxfoZFntaycQ=";
}; };
date = "2024-03-12"; date = "2024-04-09";
}; };
catppuccin-wezterm = { catppuccin-wezterm = {
pname = "catppuccin-wezterm"; pname = "catppuccin-wezterm";
@ -29,16 +29,16 @@
}; };
catppuccin-zsh-fsh = { catppuccin-zsh-fsh = {
pname = "catppuccin-zsh-fsh"; pname = "catppuccin-zsh-fsh";
version = "8af8701de8a00b10c072b7bef4f7b74558a2cd15"; version = "dd7baca6e0e943f36d1a6721820346e91f25065f";
src = fetchgit { src = fetchgit {
url = "https://github.com/catppuccin/zsh-fsh"; url = "https://github.com/catppuccin/zsh-fsh";
rev = "8af8701de8a00b10c072b7bef4f7b74558a2cd15"; rev = "dd7baca6e0e943f36d1a6721820346e91f25065f";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false; deepClone = false;
leaveDotGit = false; leaveDotGit = false;
sha256 = "sha256-O80XzCAw02/bXkMLgf3v71NLjVI4uCaC1i0eAZstA/0="; sha256 = "sha256-qd/+MHmgP+dOnYm6meSu5oCZ/TunCWGHnHqAXm79ERw=";
}; };
date = "2024-03-25"; date = "2024-04-09";
}; };
nekowinston-wezterm-bar = { nekowinston-wezterm-bar = {
pname = "nekowinston-wezterm-bar"; pname = "nekowinston-wezterm-bar";

View file

@ -17,11 +17,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712079060, "lastModified": 1714136352,
"narHash": "sha256-/JdiT9t+zzjChc5qQiF+jhrVhRt8figYH29rZO7pFe4=", "narHash": "sha256-BtWQ2Th/jamO1SlD+2ASSW5Jaf7JhA/JLpQHk0Goqpg=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "1381a759b205dff7a6818733118d02253340fd5e", "rev": "24a7ea390564ccd5b39b7884f597cfc8d7f6f44e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -77,11 +77,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713403580, "lastModified": 1713966850,
"narHash": "sha256-VP3AiTLL40Zhr+99SwKjIE+ifRy/elhvGIF5W92J+fs=", "narHash": "sha256-AHAkkTUjk86rED3pQh8i4OiSze+OHe697L0o3zhv89A=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "vscode", "repo": "vscode",
"rev": "4dd5fa89173bc931e882f21da0de1609f1db9f39", "rev": "75d96f3ae48b249f77124688a026ca5d7eeb5fb2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -97,11 +97,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713543876, "lastModified": 1713946171,
"narHash": "sha256-olEWxacm1xZhAtpq+ZkEyQgR4zgfE7ddpNtZNvubi3g=", "narHash": "sha256-lc75rgRQLdp4Dzogv5cfqOg6qYc5Rp83oedF2t0kDp8=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "9e7c20ffd056e406ddd0276ee9d89f09c5e5f4ed", "rev": "230a197063de9287128e2c68a7a4b0cd7d0b50a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -200,11 +200,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713732794, "lastModified": 1714042918,
"narHash": "sha256-AYCofb8Zu4Mbc1lHDtju/uxeARawRijmOueAqEMEfMU=", "narHash": "sha256-4AItZA3EQIiSNAxliuYEJumw/LaVfrMv84gYyrs0r3U=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "670d9ecc3e46a6e3265c203c2d136031a3d3548e", "rev": "0c5704eceefcb7bb238a958f532a86e3b59d76db",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -219,11 +219,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1713683280, "lastModified": 1714118177,
"narHash": "sha256-6ll6cjXdrJ8jPT6C4ZSLAt2opdOCb3ezW2SHtUCAG8g=", "narHash": "sha256-7OkL9iZeJAHuHqGA0efWalYvdyQA5jCzE0g8R8wqm6M=",
"owner": "nekowinston", "owner": "nekowinston",
"repo": "nur", "repo": "nur",
"rev": "2fac00c44699317fc3dff89aa5c1def9767f72b1", "rev": "01c681d41bb4e3d0c483586c5b0ab0d23dd83dbd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -232,26 +232,6 @@
"type": "github" "type": "github"
} }
}, },
"nix-deno": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1706786668,
"narHash": "sha256-MDbSYWjitdx9Cqyzc0JPLWDvIeX109i4VZPwdkWAyHY=",
"owner": "nekowinston",
"repo": "nix-deno",
"rev": "a5664f47572c365e8ef31d8b3a6c8abfe88648ce",
"type": "github"
},
"original": {
"owner": "nekowinston",
"repo": "nix-deno",
"type": "github"
}
},
"nix-index-database": { "nix-index-database": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -259,11 +239,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713668931, "lastModified": 1713869268,
"narHash": "sha256-rVlwWQlgFGGK3aPVcKmtYqWgjYnPah5FOIsYAqrMN2w=", "narHash": "sha256-o3CMQeu/S8/4zU0pMtYg51rd1FWdJsI2Xohzng1Ysdg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "07ece11b22217b8459df589f858e92212b74f1a1", "rev": "dcb6ac44922858ce3a5b46f77a36d6030181460c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -283,11 +263,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713662650, "lastModified": 1714094499,
"narHash": "sha256-pAAXTH3bUBELrXFGgRjzy/67Lm5trkFB2SXp6epMxX0=", "narHash": "sha256-SC6tm901h2tzRxd6hfzn5/bgLJ8R4ng39R7SIkg6wlo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "03c7d19b4fbf7dd0f9890c310e809ca04da76c4e", "rev": "e05ff96b9f710d57d7cd60641f0273176debf222",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -314,11 +294,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1713537308, "lastModified": 1714076141,
"narHash": "sha256-XtTSSIB2DA6tOv+l0FhvfDMiyCmhoRbNB+0SeInZkbk=", "narHash": "sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5c24cf2f0a12ad855f444c30b2421d044120c66f", "rev": "7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -346,11 +326,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1713732355, "lastModified": 1714170749,
"narHash": "sha256-7dtWxV9O1ujFcZcYmaiBVdL3Snk0Y7AFL6pufM31alk=", "narHash": "sha256-ISFPLQfdYvIJjGfsBop5TuB13JcGU2IDME3C4g70FDE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "9982d9ed76f4b0335d8e016fe7c71f21fd4ef5eb", "rev": "d8399969cca6025f5cbbfc4aa1e721877dd6d583",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -374,11 +354,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712897695, "lastModified": 1713954846,
"narHash": "sha256-nMirxrGteNAl9sWiOhoN5tIHyjBbVi5e2tgZUgZlK3Y=", "narHash": "sha256-RWFafuSb5nkWGu8dDbW7gVb8FOQOPqmX/9MlxUUDguw=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8", "rev": "6fb82e44254d6a0ece014ec423cb62d92435336f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -398,7 +378,6 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"nekowinston-nur": "nekowinston-nur", "nekowinston-nur": "nekowinston-nur",
"nix-deno": "nix-deno",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions", "nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
@ -435,11 +414,11 @@
"scenefx": "scenefx" "scenefx": "scenefx"
}, },
"locked": { "locked": {
"lastModified": 1713498711, "lastModified": 1713822111,
"narHash": "sha256-VxTnCdx+17tASYxsOiqKCAAda22P9eV7IFxnXl3wZh8=", "narHash": "sha256-aQVHGi6oqceTlyzzzZnErVHYDJbDfG0sdWe+ItuH8a4=",
"owner": "willpower3309", "owner": "willpower3309",
"repo": "swayfx", "repo": "swayfx",
"rev": "4b954d5a05d986afcaaf488e744c5566a2d031ef", "rev": "a5a69d4d4e9a8fe306e27ca46cde3a8b9d312ae3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -473,11 +452,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709622318, "lastModified": 1713958148,
"narHash": "sha256-bTscF0366xtoIXgH7Zq+Mn0mpX3w4h/2xKpHiYMyLNc=", "narHash": "sha256-8PDNi/dgoI2kyM7uSiU4eoLBqUKoA+3TXuz+VWmuCOc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-vscode-server", "repo": "nixos-vscode-server",
"rev": "d0ed9b8cf1f0a71f110df9119489ab047e0726bd", "rev": "fc900c16efc6a5ed972fb6be87df018bcf3035bc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -497,11 +476,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713528946, "lastModified": 1714134704,
"narHash": "sha256-IBQta+xrEaI2S5UmYrXcgV7Tu7rGLQu2V3TeJseLPSg=", "narHash": "sha256-jgTn20s3qzar/IqhjQcEO+dIQbT4hBFIloVntiCURkA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-wsl", "repo": "nixos-wsl",
"rev": "63c1247e12f269396ed2df8cdec3aed1f0f3928c", "rev": "4fb773cffed9bf1efdabcc01b25637eaeb4e8e9c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -127,10 +127,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nekowinston-nur.url = "github:nekowinston/nur"; nekowinston-nur.url = "github:nekowinston/nur";
nix-deno = {
url = "github:nekowinston/nix-deno";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin-vsc = { catppuccin-vsc = {
url = "github:catppuccin/vscode"; url = "github:catppuccin/vscode";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -6,60 +6,11 @@
}: let }: let
inherit (pkgs.stdenv) isDarwin isLinux; inherit (pkgs.stdenv) isDarwin isLinux;
overrides = {
mocha = {
rosewater = "#ece3e1";
flamingo = "#e1d2d2";
pink = "#ddccd8";
mauve = "#bbb2c9";
red = "#c4a2aa";
maroon = "#cbadb1";
peach = "#d5beb4";
yellow = "#ece3d3";
green = "#b9ddb6";
teal = "#badad4";
sky = "#b8d4db";
sapphire = "#a9c0ce";
blue = "#aab3c7";
lavender = "#bfc1d2";
text = "#d3d6e1";
subtext1 = "#bec2d2";
subtext0 = "#a8adc3";
overlay2 = "#9299b4";
overlay1 = "#7c84a5";
overlay0 = "#686f94";
surface2 = "#555a7b";
surface1 = "#434664";
surface0 = "#30314b";
base = "#101010";
mantle = "#090909";
crust = "#080808";
};
};
removeHashes = attrs: builtins.mapAttrs (k: v: lib.removePrefix "#" v) attrs;
fromYAMLfile = f: let
jsonFile = pkgs.runCommand "in-${f}.json" {nativeBuildInputs = [pkgs.gojq];} ''
gojq --yaml-input < "${f}" > "$out"
'';
in
builtins.fromJSON (builtins.readFile jsonFile);
vividYaml = let
f = flavor: fromYAMLfile "${pkgs.vivid.src}/themes/catppuccin-${flavor}.yml";
in {
latte = builtins.toJSON (f "latte");
mocha = builtins.toJSON (lib.recursiveUpdate (f "mocha") {colors = removeHashes overrides.mocha;});
};
vividBuilder = flavor: vividBuilder = flavor:
pkgs.runCommand "vivid-${flavor}" { pkgs.runCommand "vivid-${flavor}" {
nativeBuildInputs = [pkgs.vivid]; nativeBuildInputs = [pkgs.vivid];
} '' } ''
echo '${builtins.getAttr flavor vividYaml}' > flavor.yml vivid generate ${pkgs.vivid.src}/themes/catppuccin-${flavor}.yml > $out
cat ./flavor.yml
vivid generate ./flavor.yml > $out
''; '';
vividLatte = vividBuilder "latte"; vividLatte = vividBuilder "latte";
vividMocha = vividBuilder "mocha"; vividMocha = vividBuilder "mocha";
@ -68,7 +19,7 @@ in {
home.packages = [ home.packages = [
(pkgs.writeShellApplication { (pkgs.writeShellApplication {
name = "dark-mode-ternary"; name = "dark-mode-ternary";
runtimeInputs = [pkgs.gnugrep]; runtimeInputs = lib.optionals isLinux [pkgs.dbus pkgs.gnugrep];
text = let text = let
queryCommand = queryCommand =
if isLinux if isLinux

View file

@ -8,8 +8,7 @@
in { in {
config = lib.mkIf config.isGraphical { config = lib.mkIf config.isGraphical {
home.packages = home.packages =
[] (lib.optionals isDarwin [
++ (lib.optionals isDarwin [
(pkgs.discord.override {withOpenASAR = true;}) (pkgs.discord.override {withOpenASAR = true;})
]) ])
++ (lib.optionals isLinux [ ++ (lib.optionals isLinux [

View file

@ -7,36 +7,6 @@
"statusBar.noFolderForeground": "accent" "statusBar.noFolderForeground": "accent"
} }
}, },
"catppuccin.colorOverrides": {
"mocha": {
"rosewater": "#ece3e1",
"flamingo": "#e1d2d2",
"pink": "#ddccd8",
"mauve": "#bbb2c9",
"red": "#c4a2aa",
"maroon": "#cbadb1",
"peach": "#d5beb4",
"yellow": "#ece3d3",
"green": "#b9ddb6",
"teal": "#badad4",
"sky": "#b8d4db",
"sapphire": "#a9c0ce",
"blue": "#aab3c7",
"lavender": "#bfc1d2",
"text": "#d3d6e1",
"subtext1": "#bec2d2",
"subtext0": "#a8adc3",
"overlay2": "#9299b4",
"overlay1": "#7c84a5",
"overlay0": "#686f94",
"surface2": "#555a7b",
"surface1": "#434664",
"surface0": "#30314b",
"base": "#101010",
"mantle": "#090909",
"crust": "#080808"
}
},
"catppuccin.extraBordersEnabled": true, "catppuccin.extraBordersEnabled": true,
"debug.onTaskErrors": "debugAnyway", "debug.onTaskErrors": "debugAnyway",
"diffEditor.ignoreTrimWhitespace": false, "diffEditor.ignoreTrimWhitespace": false,
@ -78,8 +48,7 @@
"window.autoDetectColorScheme": true, "window.autoDetectColorScheme": true,
"window.commandCenter": false, "window.commandCenter": false,
"window.titleBarStyle": "custom", "window.titleBarStyle": "custom",
"workbench.colorTheme": "Catppuccin Latte", "workbench.colorTheme": "Catppuccin Mocha",
"workbench.iconTheme": "material-icon-theme",
"workbench.preferredDarkColorTheme": "Catppuccin Mocha", "workbench.preferredDarkColorTheme": "Catppuccin Mocha",
"workbench.layoutControl.enabled": false, "workbench.layoutControl.enabled": false,
"workbench.preferredLightColorTheme": "Catppuccin Latte", "workbench.preferredLightColorTheme": "Catppuccin Latte",
@ -288,5 +257,24 @@
"material-icon-theme.saturation": 0.2, "material-icon-theme.saturation": 0.2,
"zenMode.centerLayout": false, "zenMode.centerLayout": false,
"zenMode.fullScreen": false, "zenMode.fullScreen": false,
"zenMode.showTabs": "none" "zenMode.showTabs": "none",
"workbench.iconTheme": "catppuccin-mocha",
"remote.SSH.useLocalServer": false,
"remote.SSH.remotePlatform": {
"local-nixos": "linux"
},
"vscord.app.whitelist": ["505490445468696576"],
"vscord.app.whitelistEnabled": true,
"vscord.ignore.workspaces": [
"/Users/winston/Code/freelance",
"/Users/winston/Code/work",
"/home/winston/Code/freelance",
"/home/winston/Code/work"
],
"vscord.ignore.workspacesText": {
"/Users/winston/Code/freelance": "Freelancing",
"/Users/winston/Code/work": "Working",
"/home/winston/Code/freelance": "Freelancing",
"/home/winston/Code/work": "Working"
}
} }

View file

@ -7,7 +7,6 @@
}: let }: let
mkSymlink = path: config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/wezterm/${path}"; mkSymlink = path: config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/wezterm/${path}";
srcs = pkgs.callPackage ../../_sources/generated.nix {}; srcs = pkgs.callPackage ../../_sources/generated.nix {};
inherit (pkgs.stdenv) isDarwin;
in { in {
# use the GUI version & config when we have a gui, else just get terminfo # use the GUI version & config when we have a gui, else just get terminfo
config = lib.mkMerge [ config = lib.mkMerge [
@ -16,10 +15,7 @@ in {
}) })
(lib.mkIf config.isGraphical { (lib.mkIf config.isGraphical {
programs.wezterm = { programs.wezterm.enable = true;
enable = true;
package = lib.mkIf isDarwin pkgs.nur.repos.nekowinston.wezterm-nightly;
};
xdg.configFile = { xdg.configFile = {
"wezterm/wezterm.lua".source = mkSymlink "wezterm.lua"; "wezterm/wezterm.lua".source = mkSymlink "wezterm.lua";

View file

@ -29,21 +29,6 @@ local openUrl = act.QuickSelectArgs({
end), end),
}) })
local changeCtpFlavor = act.InputSelector({
title = "Change Catppuccin flavor",
choices = {
{ label = "Mocha" },
{ label = "Macchiato" },
{ label = "Frappe" },
{ label = "Latte" },
},
action = wezterm.action_callback(function(window, _, _, label)
if label then
window:set_config_overrides({ color_scheme = "Catppuccin " .. label })
end
end),
})
-- use 'Backslash' to split horizontally -- use 'Backslash' to split horizontally
map("\\", "LEADER", act.SplitHorizontal({ domain = "CurrentPaneDomain" })) map("\\", "LEADER", act.SplitHorizontal({ domain = "CurrentPaneDomain" }))
-- and 'Minus' to split vertically -- and 'Minus' to split vertically
@ -66,7 +51,6 @@ map("l", "LEADER|SHIFT", act.AdjustPaneSize({ "Right", 5 }))
-- spawn & close -- spawn & close
map("c", "LEADER", act.SpawnTab("CurrentPaneDomain")) map("c", "LEADER", act.SpawnTab("CurrentPaneDomain"))
map("x", "LEADER", act.CloseCurrentPane({ confirm = true })) map("x", "LEADER", act.CloseCurrentPane({ confirm = true }))
map("t", "LEADER", changeCtpFlavor)
map("t", { "SHIFT|CTRL", "SUPER" }, act.SpawnTab("CurrentPaneDomain")) map("t", { "SHIFT|CTRL", "SUPER" }, act.SpawnTab("CurrentPaneDomain"))
map("w", { "SHIFT|CTRL", "SUPER" }, act.CloseCurrentTab({ confirm = true })) map("w", { "SHIFT|CTRL", "SUPER" }, act.CloseCurrentTab({ confirm = true }))
map("n", { "SHIFT|CTRL", "SUPER" }, act.SpawnWindow) map("n", { "SHIFT|CTRL", "SUPER" }, act.SpawnWindow)

View file

@ -29,36 +29,6 @@ if utils.is_darwin() then
end end
require("catppuccin.plugin").apply_to_config(c, { require("catppuccin.plugin").apply_to_config(c, {
color_overrides = {
mocha = {
rosewater = "#ece3e1",
flamingo = "#e1d2d2",
pink = "#ddccd8",
mauve = "#bbb2c9",
red = "#c4a2aa",
maroon = "#cbadb1",
peach = "#d5beb4",
yellow = "#ece3d3",
green = "#b9ddb6",
teal = "#badad4",
sky = "#b8d4db",
sapphire = "#a9c0ce",
blue = "#aab3c7",
lavender = "#bfc1d2",
text = "#d3d6e1",
subtext1 = "#bec2d2",
subtext0 = "#a8adc3",
overlay2 = "#9299b4",
overlay1 = "#7c84a5",
overlay0 = "#686f94",
surface2 = "#555a7b",
surface1 = "#434664",
surface0 = "#30314b",
base = "#101010",
mantle = "#090909",
crust = "#080808",
},
},
sync = true, sync = true,
}) })

View file

@ -10,56 +10,6 @@
inherit (plugin) file src; inherit (plugin) file src;
}) })
plugins); plugins);
overrides = {
mocha = {
rosewater = "#ece3e1";
flamingo = "#e1d2d2";
pink = "#ddccd8";
mauve = "#bbb2c9";
red = "#c4a2aa";
maroon = "#cbadb1";
peach = "#d5beb4";
yellow = "#ece3d3";
green = "#b9ddb6";
teal = "#badad4";
sky = "#b8d4db";
sapphire = "#a9c0ce";
blue = "#aab3c7";
lavender = "#bfc1d2";
text = "#d3d6e1";
subtext1 = "#bec2d2";
subtext0 = "#a8adc3";
overlay2 = "#9299b4";
overlay1 = "#7c84a5";
overlay0 = "#686f94";
surface2 = "#555a7b";
surface1 = "#434664";
surface0 = "#30314b";
base = "#101010";
mantle = "#090909";
crust = "#080808";
};
};
ctpBat = pkgs.denoPlatform.mkDenoDerivation {
inherit (srcs.catppuccin-bat) pname version src;
buildPhase = ''
deno run -A ./src/main.ts --overrides '${builtins.toJSON overrides}'
'';
installPhase = ''
mkdir -p $out
cp ./themes/* $out/
'';
};
ctpZshFsh = pkgs.denoPlatform.mkDenoDerivation {
inherit (srcs.catppuccin-zsh-fsh) pname version src;
buildPhase = ''
deno run -A ./build.ts --overrides '${builtins.toJSON overrides}'
'';
installPhase = ''
mkdir -p $out
cp ./themes/* $out/
'';
};
in { in {
home.sessionVariables = { home.sessionVariables = {
LESS = "-R --use-color"; LESS = "-R --use-color";
@ -82,19 +32,19 @@ in {
enable = true; enable = true;
themes = { themes = {
"Catppuccin Latte" = { "Catppuccin Latte" = {
src = ctpBat; src = "${srcs.catppuccin-bat.src}/themes";
file = "Catppuccin Latte.tmTheme"; file = "Catppuccin Latte.tmTheme";
}; };
"Catppuccin Frappe" = { "Catppuccin Frappe" = {
src = ctpBat; src = "${srcs.catppuccin-bat.src}/themes";
file = "Catppuccin Frappe.tmTheme"; file = "Catppuccin Frappe.tmTheme";
}; };
"Catppuccin Macchiato" = { "Catppuccin Macchiato" = {
src = ctpBat; src = "${srcs.catppuccin-bat.src}/themes";
file = "Catppuccin Macchiato.tmTheme"; file = "Catppuccin Macchiato.tmTheme";
}; };
"Catppuccin Mocha" = { "Catppuccin Mocha" = {
src = ctpBat; src = "${srcs.catppuccin-bat.src}/themes";
file = "Catppuccin Mocha.tmTheme"; file = "Catppuccin Mocha.tmTheme";
}; };
}; };
@ -229,5 +179,5 @@ in {
}; };
}; };
xdg.configFile."fsh".source = "${ctpZshFsh}"; xdg.configFile."fsh".source = "${srcs.catppuccin-zsh-fsh.src}/themes";
} }

View file

@ -2,11 +2,12 @@
# to make apps use XDG directories # to make apps use XDG directories
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: let }: let
inherit (pkgs.stdenv.hostPlatform) isLinux; inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
inherit (config.xdg) cacheHome configHome dataHome; inherit (config.xdg) cacheHome configHome dataHome stateHome;
inherit (config.home) homeDirectory; inherit (config.home) homeDirectory;
in { in {
home = rec { home = rec {
@ -29,13 +30,18 @@ in {
W3M_DIR = "${dataHome}/w3m"; W3M_DIR = "${dataHome}/w3m";
WINEPREFIX = "${dataHome}/wine"; WINEPREFIX = "${dataHome}/wine";
}; };
sessionPath = [ sessionPath =
[
"$HOME/.local/bin" "$HOME/.local/bin"
"${dataHome}/krew/bin" "${dataHome}/krew/bin"
"${sessionVariables.GOPATH}/bin" "${sessionVariables.GOPATH}/bin"
"${sessionVariables.CARGO_HOME}/bin" "${sessionVariables.CARGO_HOME}/bin"
"${sessionVariables.DENO_INSTALL_ROOT}/bin" "${sessionVariables.DENO_INSTALL_ROOT}/bin"
]; ]
++ (lib.optionals isDarwin [
# fix `nix profile` not being in PATH on macOS
"${stateHome}/nix/profile/bin"
]);
}; };
programs.gpg.homedir = "${configHome}/gnupg"; programs.gpg.homedir = "${configHome}/gnupg";
@ -46,6 +52,7 @@ in {
cacheHome = "${homeDirectory}/.cache"; cacheHome = "${homeDirectory}/.cache";
configHome = "${homeDirectory}/.config"; configHome = "${homeDirectory}/.config";
dataHome = "${homeDirectory}/.local/share"; dataHome = "${homeDirectory}/.local/share";
stateHome = "${homeDirectory}/.local/state";
mimeApps = { mimeApps = {
enable = isLinux; enable = isLinux;
defaultApplications = { defaultApplications = {

View file

@ -12,11 +12,11 @@ in {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix = { nix = {
gc.automatic = true; gc.automatic = true;
package = pkgs.nixVersions.nix_2_18; package = pkgs.nixVersions.nix_2_22;
settings = settings =
{ {
auto-optimise-store = true; auto-optimise-store = true;
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"]; experimental-features = ["auto-allocate-uids" "flakes" "nix-command"];
trusted-users = ["@sudo" "@wheel" "winston"]; trusted-users = ["@sudo" "@wheel" "winston"];
use-xdg-base-directories = true; use-xdg-base-directories = true;
warn-dirty = false; warn-dirty = false;

View file

@ -1,6 +1,5 @@
[catppuccin-bat] [catppuccin-bat]
src.git = "https://github.com/catppuccin/bat" src.git = "https://github.com/catppuccin/bat"
src.branch = "feat/add-overrides"
fetch.git = "https://github.com/catppuccin/bat" fetch.git = "https://github.com/catppuccin/bat"
[catppuccin-wezterm] [catppuccin-wezterm]
@ -9,7 +8,6 @@ fetch.git = "https://github.com/catppuccin/wezterm"
[catppuccin-zsh-fsh] [catppuccin-zsh-fsh]
src.git = "https://github.com/catppuccin/zsh-fsh" src.git = "https://github.com/catppuccin/zsh-fsh"
src.branch = "build/deno-builder"
fetch.git = "https://github.com/catppuccin/zsh-fsh" fetch.git = "https://github.com/catppuccin/zsh-fsh"
[nekowinston-wezterm-bar] [nekowinston-wezterm-bar]

View file

@ -1,7 +1,6 @@
{inputs}: [ {inputs}: [
inputs.catppuccin-toolbox.overlays.default inputs.catppuccin-toolbox.overlays.default
inputs.catppuccin-vsc.overlays.default inputs.catppuccin-vsc.overlays.default
inputs.nix-deno.overlays.default
inputs.nix-vscode-extensions.overlays.default inputs.nix-vscode-extensions.overlays.default
(final: prev: let (final: prev: let
srcs = prev.callPackages ../_sources/generated.nix {}; srcs = prev.callPackages ../_sources/generated.nix {};