mirror test

This commit is contained in:
cnst
2024-06-26 19:25:27 +02:00
parent 53a862291c
commit 4cee5b33c5
11 changed files with 171 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
{
imports = [
./zellij
./firefox
./git
./hypr

View File

@@ -1,12 +1,27 @@
{
programs.firefox = {
enable = true;
};
pkgs,
lib,
config,
inputs,
...
}:
xdg.mimeApps.defaultApplications = {
"text/html" = [ "firefox.desktop" ];
"text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
};
let
firefoxFlake = inputs.firefox-nightly.packages.${pkgs.stdenv.hostPlatform.system};
_firefoxNightly = firefoxFlake.firefox-nightly-bin;
_chrome = pkgs.google-chrome.override { commandLineArgs = [ "--force-dark-mode" ]; };
in
{
home.packages = lib.mkMerge [
(lib.mkIf (pkgs.hostPlatform.system == "x86_64-linux") (
with pkgs;
[
# browsers
_firefoxNightly
pkgs.firefox-bin
_chrome
]
))
];
}

View File

@@ -0,0 +1,12 @@
{
programs.firefox = {
enable = true;
};
xdg.mimeApps.defaultApplications = {
"text/html" = [ "firefox.desktop" ];
"text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
};
}

View File

@@ -26,6 +26,7 @@
];
home.sessionVariables = {
BROWSER = "firefox";
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";

View File

@@ -21,6 +21,7 @@
max-history=50
outer-margin=25
icon-location=right
max-icon-size=48
'';
};
}

View File

@@ -1,15 +1,5 @@
{ config, ... }:
{
programs.starship = {
enable = true;
settings = {
add_newline = false;
# character = {
# success_symbol = "[➜](bold green)";
# error_symbol = "[➜](bold red)";
# };
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -39,7 +29,7 @@
eval $(thefuck --alias)
eval $(thefuck --alias FUCK)
eval "$(starship init zsh)"
eval "$(zellij setup --generate-auto-start zsh)"
'';
};
}

View File

@@ -0,0 +1,86 @@
{
home.shellAliases = {
zj = "zellij";
};
programs.zellij = {
enable = true;
enableZshIntegration = true;
settings = {
# Make zellij UI more compact
ui = {
pane_frames = {
hide_session_name = true;
};
};
default_layout = "compact";
copy_command = "wl-copy";
on_force_close = "detach";
default_shell = "zsh";
default_mode = "normal";
theme = "gruvbox-dark";
themes = {
gruvbox-dark = {
fg = [
213
196
161
];
bg = [
40
40
40
];
black = [
60
56
54
];
red = [
204
36
29
];
green = [
152
151
26
];
yellow = [
215
153
33
];
blue = [
69
133
136
];
magenta = [
177
98
134
];
cyan = [
104
157
106
];
white = [
251
241
199
];
orange = [
214
93
14
];
};
};
};
};
}