style(nix-hm): format with nixfmt

This commit is contained in:
Price Hiller 2024-02-02 11:58:59 -06:00
parent 5cfecf809f
commit 08700496c2
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -1,9 +1,8 @@
{ pkgs, config, ... }: { pkgs, config, inputs, ... }:
let let
dotsDir = "${config.home.homeDirectory}/.dot_files/dots"; dotsDir = "${config.home.homeDirectory}/.dot_files/dots";
softLinkDots = dir: softLinkDots = dir:
(builtins.listToAttrs (map (builtins.listToAttrs (map (n: {
(n: {
name = "${dir + "/" + n}"; name = "${dir + "/" + n}";
value = { value = {
source = config.lib.file.mkOutOfStoreSymlink "${dotsDir}/${dir}/${n}"; source = config.lib.file.mkOutOfStoreSymlink "${dotsDir}/${dir}/${n}";
@ -13,11 +12,11 @@ let
# HACK: We don't use the absolute path in readDir to respect pure evaluation in nix flakes. # HACK: We don't use the absolute path in readDir to respect pure evaluation in nix flakes.
(builtins.attrNames (builtins.readDir ../dots/${dir})))); (builtins.attrNames (builtins.readDir ../dots/${dir}))));
gtkStyle = "gtk2"; gtkStyle = "gtk2";
in in {
{
programs.home-manager.enable = true; programs.home-manager.enable = true;
home = { home = {
packages = with pkgs; [ packages = with pkgs;
[
bob-nvim bob-nvim
emacs-pgtk emacs-pgtk
sqlite sqlite
@ -72,20 +71,19 @@ in
typstfmt typstfmt
typst typst
hurl hurl
] ++ [ waybar
gnumake ] ++ [ ansible ansible-lint ] ++ [
cmake # gnumake
gcc # cmake
glibc # gcc
openssl.dev # glibc
glibc.static # openssl.dev
llvm # glibc.static
llvmPackages.libcxxStdenv # llvm
# llvmPackages.libcxxStdenv
]; ];
file = {
file =
{
".local/" = { ".local/" = {
source = ../dots/.local; source = ../dots/.local;
recursive = true; recursive = true;
@ -131,8 +129,7 @@ in
}; };
}; };
gtk = gtk = let
let
extraGtkConfig = { extraGtkConfig = {
gtk-application-prefer-dark-theme = true; gtk-application-prefer-dark-theme = true;
gtk-cursor-theme-size = 0; gtk-cursor-theme-size = 0;
@ -142,8 +139,7 @@ in
gtk-xft-hinting = 1; gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintfull"; gtk-xft-hintstyle = "hintfull";
}; };
in in {
{
enable = true; enable = true;
theme = { theme = {
name = "Kanagawa-Borderless"; name = "Kanagawa-Borderless";
@ -162,11 +158,7 @@ in
gtk4.extraConfig = extraGtkConfig; gtk4.extraConfig = extraGtkConfig;
}; };
services = { services = { cliphist = { enable = true; }; };
cliphist = {
enable = true;
};
};
systemd.user = { systemd.user = {
targets.compositor = { targets.compositor = {
@ -185,9 +177,7 @@ in
ConditionEnvironment = [ "WAYLAND_DISPLAY" ]; ConditionEnvironment = [ "WAYLAND_DISPLAY" ];
}; };
Service = { Service = { ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; };
ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui";
};
environment = { environment = {
QT_QPA_PLATFORMTHEME = "${gtkStyle}"; QT_QPA_PLATFORMTHEME = "${gtkStyle}";