Compare commits
1 commit
d20b7d696b
...
b16d868f85
Author | SHA1 | Date | |
---|---|---|---|
b16d868f85 |
14 changed files with 7487 additions and 111 deletions
34
flake.lock
generated
34
flake.lock
generated
|
@ -21,21 +21,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"catppuccin": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1726952185,
|
|
||||||
"narHash": "sha256-l/HbsQjJMT6tlf8KCooFYi3J6wjIips3n6/aWAoLY4g=",
|
|
||||||
"owner": "catppuccin",
|
|
||||||
"repo": "nix",
|
|
||||||
"rev": "630b559cc1cb4c0bdd525af506935323e4ccd5d1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "catppuccin",
|
|
||||||
"repo": "nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"crane": {
|
"crane": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -86,11 +71,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727086915,
|
"lastModified": 1726842196,
|
||||||
"narHash": "sha256-mqoWnKQRbA3AsyW9cg9ttqKvOY0IvdEz+/lf1qwsKnE=",
|
"narHash": "sha256-u9h03JQUuQJ607xmti9F9Eh6E96kKUAGP+aXWgwm70o=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "49b22d486c2bd1ce3102881c948e58c14b58152a",
|
"rev": "51994df8ba24d5db5459ccf17b6494643301ad28",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -691,11 +676,11 @@
|
||||||
},
|
},
|
||||||
"nixosHardware": {
|
"nixosHardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727040444,
|
"lastModified": 1726905744,
|
||||||
"narHash": "sha256-19FNN5QT9Z11ZUMfftRplyNN+2PgcHKb3oq8KMW/hDA=",
|
"narHash": "sha256-xyNtG5C+xvfsnOVEamFe9zCCnuNwk93K/TlFC/4DmCI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "d0cb432a9d28218df11cbd77d984a2a46caeb5ac",
|
"rev": "b493dfd4a8cf9552932179e56ff3b5819a9b8381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -897,11 +882,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727094993,
|
"lastModified": 1727007089,
|
||||||
"narHash": "sha256-cf1MsBKTkEK3aDgEADqCu1MqffUMkVefPZTk6p29dU8=",
|
"narHash": "sha256-vsyRYF7MSJE5FHrQdcY3g+CORy6K/6NW+Cw00+VvNy0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ea9a0aed95904e86dd0084a70c8ecd89a28e9c0a",
|
"rev": "9c711566cde5929768e311413eaa2399631624ce",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1104,7 +1089,6 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"catppuccin": "catppuccin",
|
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"dream2nix": "dream2nix",
|
"dream2nix": "dream2nix",
|
||||||
"flakeParts": "flakeParts",
|
"flakeParts": "flakeParts",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
url = "github:nix-community/lanzaboote";
|
url = "github:nix-community/lanzaboote";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
catppuccin.url = "github:catppuccin/nix";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.btop = {
|
programs.btop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
update_ms = 100;
|
update_ms = 100;
|
||||||
theme_background = false;
|
theme_background = false;
|
||||||
|
# color_theme = "${config.programs.btop.package}/share/btop/themes/dracula.theme";
|
||||||
|
color_theme =
|
||||||
|
let
|
||||||
|
catppuccin-theme = pkgs.fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "btop";
|
||||||
|
rev = "21b8d5956a8b07fa52519e3267fb3a2d2e693d17";
|
||||||
|
hash = "sha256-UXeTypc15MhjgGUiCrDUZ40m32yH2o1N+rcrEgY6sME=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
"${catppuccin-theme}/themes/catppuccin_mocha.theme";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
catppuccin = {
|
|
||||||
enable = true;
|
|
||||||
flavor = "mocha";
|
|
||||||
accent = "sapphire";
|
|
||||||
};
|
|
||||||
|
|
||||||
qt = {
|
|
||||||
platformTheme.name = lib.mkForce "kvantum";
|
|
||||||
style.name = lib.mkForce "kvantum";
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO move away
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
font = {
|
|
||||||
normal = {
|
|
||||||
family = "Fira Code";
|
|
||||||
style = "Regular";
|
|
||||||
};
|
|
||||||
bold = {
|
|
||||||
family = "Fira Code";
|
|
||||||
style = "Bold";
|
|
||||||
};
|
|
||||||
italic = {
|
|
||||||
family = "Cascadia Code";
|
|
||||||
style = "Italic";
|
|
||||||
};
|
|
||||||
bold_italic = {
|
|
||||||
family = "Fira Code";
|
|
||||||
style = "Bold Italic";
|
|
||||||
};
|
|
||||||
size = 13;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,50 +1,59 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
programs.foot = {
|
programs.foot =
|
||||||
enable = true;
|
let
|
||||||
server.enable = true;
|
catppuccin = pkgs.fetchFromGitHub {
|
||||||
settings = {
|
owner = "catppuccin";
|
||||||
main = {
|
repo = "foot";
|
||||||
term = "xterm-256color";
|
rev = "307611230661b7b1787feb7f9d122e851bae97e9";
|
||||||
login-shell = "yes";
|
hash = "sha256-mkPYHDJtfdfDnqLr1YOjaBpn4lCceok36LrnkUkNIE4=";
|
||||||
dpi-aware = "no";
|
};
|
||||||
horizontal-letter-offset = "1";
|
in
|
||||||
font =
|
{
|
||||||
let
|
enable = true;
|
||||||
size = "13";
|
server.enable = true;
|
||||||
in
|
settings = {
|
||||||
lib.mkForce (
|
main = {
|
||||||
|
term = "xterm-256color";
|
||||||
|
login-shell = "yes";
|
||||||
|
dpi-aware = "no";
|
||||||
|
horizontal-letter-offset = "1";
|
||||||
|
include = "${catppuccin}/themes/catppuccin-mocha.ini";
|
||||||
|
font =
|
||||||
|
let
|
||||||
|
size = "13";
|
||||||
|
in
|
||||||
lib.concatStringsSep ", " [
|
lib.concatStringsSep ", " [
|
||||||
"Iosevka Comfy:size=${size}"
|
"Iosevka Comfy:size=${size}"
|
||||||
"Symbols Nerd Font:size=${size}"
|
"Symbols Nerd Font:size=${size}"
|
||||||
"JoyPixels:size=${size}"
|
"JoyPixels:size=${size}"
|
||||||
]
|
];
|
||||||
);
|
};
|
||||||
};
|
cursor = {
|
||||||
cursor = {
|
blink = true;
|
||||||
blink = true;
|
};
|
||||||
};
|
tweak = {
|
||||||
tweak = {
|
overflowing-glyphs = true;
|
||||||
overflowing-glyphs = true;
|
};
|
||||||
};
|
|
||||||
|
|
||||||
key-bindings = {
|
key-bindings = {
|
||||||
scrollback-up-page = "Control+Shift+k";
|
scrollback-up-page = "Control+Shift+k";
|
||||||
scrollback-down-page = "Control+Shift+j";
|
scrollback-down-page = "Control+Shift+j";
|
||||||
search-start = "Control+Shift+s";
|
search-start = "Control+Shift+s";
|
||||||
pipe-command-output = ''[sh -c 'f=$(mktemp); cat - > $f; footclient hx $f; rm $f'] Control+Shift+g'';
|
pipe-command-output = ''[sh -c 'f=$(mktemp); cat - > $f; footclient hx $f; rm $f'] Control+Shift+g'';
|
||||||
};
|
};
|
||||||
|
|
||||||
mouse = {
|
mouse = {
|
||||||
hide-when-typing = "yes";
|
hide-when-typing = "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
(lib.mkIf config.programs.fish.enable {
|
(lib.mkIf config.programs.fish.enable {
|
||||||
programs.fish.functions = {
|
programs.fish.functions = {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
theme = "catppuccin_mocha";
|
||||||
editor = {
|
editor = {
|
||||||
indent-guides.render = true;
|
indent-guides.render = true;
|
||||||
cursor-shape = {
|
cursor-shape = {
|
||||||
|
|
|
@ -56,20 +56,21 @@ in
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# font.name = lib.mkForce "Sans,Symbols Nerd Font";
|
font.name = "Sans,Symbols Nerd Font";
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
package = pkgs.adwaita-icon-theme;
|
package = pkgs.adwaita-icon-theme;
|
||||||
};
|
};
|
||||||
# cursorTheme = {
|
cursorTheme = {
|
||||||
# name = "catppuccin-mocha-sapphire";
|
name = "catppuccin-mocha-sapphire";
|
||||||
# package = pkgs.catppuccin-cursors;
|
package = pkgs.catppuccin-cursors;
|
||||||
# size = 48;
|
size = 48;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
platformTheme.name = "gtk3";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.kanshi = {
|
# services.kanshi = {
|
||||||
|
|
|
@ -116,11 +116,45 @@
|
||||||
# '';
|
# '';
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
"dracula-theme" = {
|
||||||
|
target = "fish/themes/dracula.theme";
|
||||||
|
source =
|
||||||
|
let
|
||||||
|
theme = pkgs.fetchFromGitHub {
|
||||||
|
owner = "dracula";
|
||||||
|
repo = "fish";
|
||||||
|
rev = "269cd7d76d5104fdc2721db7b8848f6224bdf554";
|
||||||
|
hash = "sha256-Hyq4EfSmWmxwCYhp3O8agr7VWFAflcUe8BUKh50fNfY=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
"${theme}/themes/Dracula\ Official.theme";
|
||||||
|
};
|
||||||
|
"catppuccin-theme" = {
|
||||||
|
target = "fish/themes/Catppuccin\ Mocha.theme";
|
||||||
|
source =
|
||||||
|
let
|
||||||
|
theme = pkgs.fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "fish";
|
||||||
|
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
|
||||||
|
hash = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
"${theme}/themes/Catppuccin\ Mocha.theme";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
|
shellInit =
|
||||||
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
|
''
|
||||||
'';
|
fish_config theme choose "dracula"
|
||||||
|
fish_config theme choose "Catppuccin Mocha"
|
||||||
|
''
|
||||||
|
+ lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
|
||||||
|
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
|
||||||
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"cat" = "bat";
|
"cat" = "bat";
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font.name = lib.mkForce "Sans,Symbols Nerd Font";
|
font.name = "Sans,Symbols Nerd Font";
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
package = pkgs.adwaita-icon-theme;
|
package = pkgs.adwaita-icon-theme;
|
||||||
|
|
7319
hmModules/wezterm/Cargo.lock
generated
Normal file
7319
hmModules/wezterm/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,64 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
hostname,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package =
|
||||||
|
if hostname == "pircard" then
|
||||||
|
(pkgs.wezterm.overrideAttrs (old: rec {
|
||||||
|
pname = "wezterm";
|
||||||
|
version = "20240406-cce0706";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "wez";
|
||||||
|
repo = "${pname}";
|
||||||
|
rev = "cce0706b1f2a9e2d1f02c57f2d1cd367c91df1ae";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
hash = "sha256-BBPxidOpFrw/tIRTqMSREyJF3QEWOwlIoVRT3FD62sQ=";
|
||||||
|
};
|
||||||
|
cargoDeps = pkgs.rustPlatform.importCargoLock {
|
||||||
|
lockFile = "${src}/Cargo.lock";
|
||||||
|
outputHashes = {
|
||||||
|
"xcb-imdkit-0.3.0" = "sha256-fTpJ6uNhjmCWv7dZqVgYuS2Uic36XNYTbqlaly5QBjI=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
patches = (old.patches or [ ]) ++ [
|
||||||
|
(pkgs.fetchpatch {
|
||||||
|
# fix(wayland): ensure repaint event is sent in show
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/wez/wezterm/pull/5264.patch";
|
||||||
|
hash = "sha256-c+frVaBEL0h3PJvNu3AW2iap+uUXBY8olbm7Wsxuh4Q=";
|
||||||
|
})
|
||||||
|
(pkgs.writeText "wezterm-remove_capabilities.patch" ''
|
||||||
|
diff --git a/window/src/os/wayland/seat.rs b/window/src/os/wayland/seat.rs
|
||||||
|
index 3798f4259..e91591130 100644
|
||||||
|
--- a/window/src/os/wayland/seat.rs
|
||||||
|
+++ b/window/src/os/wayland/seat.rs
|
||||||
|
@@ -65,9 +65,15 @@ impl SeatHandler for WaylandState {
|
||||||
|
_conn: &Connection,
|
||||||
|
_qh: &QueueHandle<Self>,
|
||||||
|
_seat: WlSeat,
|
||||||
|
- _capability: smithay_client_toolkit::seat::Capability,
|
||||||
|
+ capability: smithay_client_toolkit::seat::Capability,
|
||||||
|
) {
|
||||||
|
- todo!()
|
||||||
|
+ if capability == Capability::Keyboard && self.keyboard.is_some() {
|
||||||
|
+ self.keyboard.take().unwrap().release();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if capability == Capability::Pointer && self.pointer.is_some() {
|
||||||
|
+ self.pointer = None;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
fn remove_seat(&mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _seat: WlSeat) {
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}))
|
||||||
|
else
|
||||||
|
pkgs.wezterm;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
return {
|
return {
|
||||||
-- enable_wayland = false; -- https://github.com/wez/wezterm/issues/4483
|
-- enable_wayland = false; -- https://github.com/wez/wezterm/issues/4483
|
||||||
|
|
|
@ -68,13 +68,11 @@
|
||||||
inputs.nixThePlanet.nixosModules.macos-ventura
|
inputs.nixThePlanet.nixosModules.macos-ventura
|
||||||
inputs.lix-module.nixosModules.default
|
inputs.lix-module.nixosModules.default
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
|
||||||
];
|
];
|
||||||
extraHmModules = [
|
extraHmModules = [
|
||||||
# inputs.ccrEmacs.hmModules.default
|
# inputs.ccrEmacs.hmModules.default
|
||||||
"${inputs.homeManagerGitWorkspace}/modules/services/git-workspace.nix"
|
"${inputs.homeManagerGitWorkspace}/modules/services/git-workspace.nix"
|
||||||
inputs.vscode-server.nixosModules.home
|
inputs.vscode-server.nixosModules.home
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
|
||||||
];
|
];
|
||||||
secrets = {
|
secrets = {
|
||||||
"picard-wireguard-private-key" = { };
|
"picard-wireguard-private-key" = { };
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
"element"
|
"element"
|
||||||
"zmkbatx"
|
"zmkbatx"
|
||||||
"tremotesf"
|
"tremotesf"
|
||||||
|
# "emacs"
|
||||||
"firefox"
|
"firefox"
|
||||||
"gpg"
|
"gpg"
|
||||||
"mpv"
|
"mpv"
|
||||||
|
@ -84,7 +85,6 @@
|
||||||
"reinstall-magisk-on-lineage"
|
"reinstall-magisk-on-lineage"
|
||||||
"vscode-server"
|
"vscode-server"
|
||||||
"zk"
|
"zk"
|
||||||
"catppuccin"
|
|
||||||
];
|
];
|
||||||
extraGroups = [ ];
|
extraGroups = [ ];
|
||||||
backupPaths = [ ];
|
backupPaths = [ ];
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M="
|
"mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M="
|
||||||
];
|
];
|
||||||
deprecated-features = [ "url-literals" ];
|
# deprecated-features = [ "url-literals" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixPath = [ "nixpkgs=${fleetFlake.inputs.nixpkgs}" ];
|
nixPath = [ "nixpkgs=${fleetFlake.inputs.nixpkgs}" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue