Compare commits

...

3 commits

5 changed files with 21 additions and 4 deletions

View file

@ -35,7 +35,7 @@ in {
name = mkOption { name = mkOption {
type = nullOr (enum ["Catppuccin Mocha" "Zenburn" "Black Metal Venom" "Gruvbox"]); type = nullOr (enum ["Catppuccin Mocha" "Zenburn" "Black Metal Venom" "Gruvbox"]);
description = "The colorscheme that should be used globally to theme your system."; description = "The colorscheme that should be used globally to theme your system.";
default = "Catppuccin Mocha"; default = "Gruvbox";
}; };
slug = mkOption { slug = mkOption {

View file

@ -2,6 +2,11 @@ _: {
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
unmanaged = [
# DO NOT manage my docker containers, thank you.
"interface-name:docker*"
];
wifi = { wifi = {
# Generate a randomized value upon each connect # Generate a randomized value upon each connect
macAddress = "random"; macAddress = "random";

View file

@ -47,6 +47,10 @@ in {
}; };
}; };
gestures = {
workspace_swipe = true;
};
general = { general = {
layout = "dwindle"; layout = "dwindle";
gaps_in = 0; gaps_in = 0;

View file

@ -0,0 +1,4 @@
{
inherits = "gruvbox";
"ui.background" = {};
}

View file

@ -39,8 +39,12 @@
inherit (lib.meta) getExe; inherit (lib.meta) getExe;
toml = formats.toml {}; toml = formats.toml {};
helix-languages = callPackage ./languages.nix {inherit lib;};
colorscheme = toml.generate "colorscheme.toml" (import ./colorscheme.nix);
helix-config = { helix-config = {
theme = "catppuccin_mocha"; theme = "theme_transparent";
editor = { editor = {
cursorline = false; cursorline = false;
color-modes = true; color-modes = true;
@ -107,7 +111,6 @@
}; };
}; };
}; };
helix-languages = callPackage ./languages.nix {inherit lib;};
wrapped-helix = symlinkJoin { wrapped-helix = symlinkJoin {
name = "helix-wrapped"; name = "helix-wrapped";
paths = [ paths = [
@ -140,9 +143,10 @@
]; ];
nativeBuildInputs = [makeWrapper]; nativeBuildInputs = [makeWrapper];
postBuild = '' postBuild = ''
mkdir -p $out/config/helix mkdir -p $out/config/helix/themes
cp "${toml.generate "config.toml" helix-config}" $out/config/helix/config.toml cp "${toml.generate "config.toml" helix-config}" $out/config/helix/config.toml
cp "${helix-languages}" $out/config/helix/languages.toml cp "${helix-languages}" $out/config/helix/languages.toml
cp "${colorscheme}" $out/config/helix/themes/theme_transparent.toml
wrapProgram $out/bin/hx --set \ wrapProgram $out/bin/hx --set \
XDG_CONFIG_HOME $out/config XDG_CONFIG_HOME $out/config
''; '';