switch back to nixfmt

This commit is contained in:
Sean Kovacs 2026-01-19 22:27:28 -05:00
commit a7f0e767d3
Signed by: sckova
GPG key ID: 00F325187C68651A
37 changed files with 797 additions and 689 deletions

View file

@ -2,10 +2,11 @@
config,
pkgs,
...
}: let
}:
let
catppuccin-discord = "${pkgs.catppuccin-discord}/share/catppuccin-discord/catppuccin-${config.catppuccin.flavor}-${config.catppuccin.accent}.theme.css";
mergedThemes = pkgs.runCommand "mergedConfig" {} ''
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
mkdir -p $out
cp ${catppuccin-discord} $out/catppuccin.css
'';
@ -32,8 +33,9 @@
height = 1071;
};
};
in {
home.packages = with pkgs; [vesktop];
in
{
home.packages = with pkgs; [ vesktop ];
home.file.".config/vesktop/settings.json" = {
text = builtins.toJSON vesktopSettings;

View file

@ -4,50 +4,53 @@
pkgs,
config,
...
}: {
}:
{
home.file.".librewolf/default/chrome/" = {
source = ./librewolf_css;
force = true;
recursive = true;
};
home.file.".librewolf/default/chrome/colors.css" = let
color = pkgs.catppuccin.rgb.${config.catppuccin.flavor};
accent = color.${config.catppuccin.accent};
in {
text = ''
* {
--accent: ${accent};
--rosewater: ${color.rosewater};
--flamingo: ${color.flamingo};
--pink: ${color.pink};
--mauve: ${color.mauve};
--red: ${color.red};
--maroon: ${color.maroon};
--peach: ${color.peach};
--yellow: ${color.yellow};
--green: ${color.green};
--teal: ${color.teal};
--sky: ${color.sky};
--sapphire: ${color.sapphire};
--blue: ${color.blue};
--lavender: ${color.lavender};
--text: ${color.text};
--subtext1: ${color.subtext1};
--subtext0: ${color.subtext0};
--overlay2: ${color.overlay2};
--overlay1: ${color.overlay1};
--overlay0: ${color.overlay0};
--surface2: ${color.surface2};
--surface1: ${color.surface1};
--surface0: ${color.surface0};
--base: ${color.base};
--mantle: ${color.mantle};
--crust: ${color.crust};
}
'';
force = true;
};
home.file.".librewolf/default/chrome/colors.css" =
let
color = pkgs.catppuccin.rgb.${config.catppuccin.flavor};
accent = color.${config.catppuccin.accent};
in
{
text = ''
* {
--accent: ${accent};
--rosewater: ${color.rosewater};
--flamingo: ${color.flamingo};
--pink: ${color.pink};
--mauve: ${color.mauve};
--red: ${color.red};
--maroon: ${color.maroon};
--peach: ${color.peach};
--yellow: ${color.yellow};
--green: ${color.green};
--teal: ${color.teal};
--sky: ${color.sky};
--sapphire: ${color.sapphire};
--blue: ${color.blue};
--lavender: ${color.lavender};
--text: ${color.text};
--subtext1: ${color.subtext1};
--subtext0: ${color.subtext0};
--overlay2: ${color.overlay2};
--overlay1: ${color.overlay1};
--overlay0: ${color.overlay0};
--surface2: ${color.surface2};
--surface1: ${color.surface1};
--surface0: ${color.surface0};
--base: ${color.base};
--mantle: ${color.mantle};
--crust: ${color.crust};
}
'';
force = true;
};
home.file.".local/share/firefoxpwa/profiles/01KEYXH9TC4B54J5CTPNE75JP0/prefs.js" = {
text = ''
@ -256,59 +259,61 @@
}
];
};
search = let
nixIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/nix-snowflake.svg";
googleIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/google.svg";
in {
force = true;
default = "google";
order = [
"google"
];
engines = {
nix-packages = {
name = "Nix Packages";
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
search =
let
nixIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/nix-snowflake.svg";
googleIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/google.svg";
in
{
force = true;
default = "google";
order = [
"google"
];
engines = {
nix-packages = {
name = "Nix Packages";
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixIcon;
definedAliases = ["@np"];
};
icon = nixIcon;
definedAliases = [ "@np" ];
};
nixos-wiki = {
name = "NixOS Wiki";
urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}];
icon = nixIcon;
definedAliases = ["@nw"];
};
nixos-wiki = {
name = "NixOS Wiki";
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
icon = nixIcon;
definedAliases = [ "@nw" ];
};
google = {
name = "Google";
urls = [{template = "https://google.com/search?q={searchTerms}";}];
icon = googleIcon;
definedAliases = ["@go"];
};
google = {
name = "Google";
urls = [ { template = "https://google.com/search?q={searchTerms}"; } ];
icon = googleIcon;
definedAliases = [ "@go" ];
};
wikipedia = {
name = "Wikipedia";
urls = [{template = "https://en.wikipedia.org/w/index.php?search={searchTerms}";}];
definedAliases = ["@wi"];
wikipedia = {
name = "Wikipedia";
urls = [ { template = "https://en.wikipedia.org/w/index.php?search={searchTerms}"; } ];
definedAliases = [ "@wi" ];
};
};
};
};
};
};
};

View file

@ -2,14 +2,16 @@
config,
pkgs,
...
}: let
mergedConfig = pkgs.runCommand "mergedConfig" {} ''
}:
let
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
mkdir -p $out
${pkgs.gnused}/bin/sed 's/${pkgs.catppuccin.${config.catppuccin.flavor}.base}/#000000/g' \
${pkgs.catppuccin-mpv-git}/themes/${config.catppuccin.flavor}/${config.catppuccin.accent}.conf \
> $out/mpv.conf
'';
in {
in
{
home.packages = with pkgs; [
(mpv.override {
scripts = with mpvScripts; [

View file

@ -2,9 +2,9 @@
autoUpdate = true;
autoUpdateNotification = true;
useQuickCss = true;
themeLinks = [];
themeLinks = [ ];
eagerPatches = false;
enabledThemes = ["catppuccin.css"];
enabledThemes = [ "catppuccin.css" ];
enableReactDevtools = false;
frameless = false;
transparent = true;
@ -330,8 +330,8 @@
ImageFilename.enabled = false;
};
uiElements = {
chatBarButtons = {};
messagePopoverButtons = {};
chatBarButtons = { };
messagePopoverButtons = { };
};
notifications = {
timeout = 5000;

View file

@ -3,10 +3,13 @@
pkgs,
lib,
...
}: let
capitalize = str:
}:
let
capitalize =
str:
(lib.toUpper (builtins.substring 0 1 str)) + (builtins.substring 1 (builtins.stringLength str) str);
in {
in
{
# home.sessionVariables = {
# EDITOR = "code";
# };