style(nix-hm): format with nixfmt
This commit is contained in:
parent
5cfecf809f
commit
08700496c2
@ -1,105 +1,103 @@
|
|||||||
{ 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}";
|
force = true;
|
||||||
force = true;
|
};
|
||||||
};
|
})
|
||||||
})
|
# 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
|
[
|
||||||
emacs-pgtk
|
bob-nvim
|
||||||
sqlite
|
emacs-pgtk
|
||||||
luajit
|
sqlite
|
||||||
imagemagick
|
luajit
|
||||||
dotnet-sdk_8
|
imagemagick
|
||||||
cargo
|
dotnet-sdk_8
|
||||||
rustc
|
cargo
|
||||||
shellcheck
|
rustc
|
||||||
openjdk
|
shellcheck
|
||||||
go
|
openjdk
|
||||||
nodejs
|
go
|
||||||
poetry
|
nodejs
|
||||||
python3
|
poetry
|
||||||
ruby
|
python3
|
||||||
yamllint
|
ruby
|
||||||
curl
|
yamllint
|
||||||
openssh
|
curl
|
||||||
openssl
|
openssh
|
||||||
wget
|
openssl
|
||||||
rsync
|
wget
|
||||||
readline
|
rsync
|
||||||
git
|
readline
|
||||||
gh
|
git
|
||||||
ffmpeg
|
gh
|
||||||
silicon
|
ffmpeg
|
||||||
man
|
silicon
|
||||||
jq
|
man
|
||||||
tectonic
|
jq
|
||||||
fzf
|
tectonic
|
||||||
delta
|
fzf
|
||||||
eza
|
delta
|
||||||
nixd
|
eza
|
||||||
luajit
|
nixd
|
||||||
ripgrep
|
luajit
|
||||||
fd
|
ripgrep
|
||||||
nixfmt
|
fd
|
||||||
gtk2
|
nixfmt
|
||||||
lxappearance
|
gtk2
|
||||||
webcord
|
lxappearance
|
||||||
gtk-engine-murrine
|
webcord
|
||||||
opensnitch-ui
|
gtk-engine-murrine
|
||||||
twitter-color-emoji
|
opensnitch-ui
|
||||||
open-sans
|
twitter-color-emoji
|
||||||
noto-fonts
|
open-sans
|
||||||
fira-code
|
noto-fonts
|
||||||
nerdfonts
|
fira-code
|
||||||
direnv
|
nerdfonts
|
||||||
passage
|
direnv
|
||||||
swappy
|
passage
|
||||||
stylua
|
swappy
|
||||||
typstfmt
|
stylua
|
||||||
typst
|
typstfmt
|
||||||
hurl
|
typst
|
||||||
] ++ [
|
hurl
|
||||||
gnumake
|
waybar
|
||||||
cmake
|
] ++ [ ansible ansible-lint ] ++ [
|
||||||
gcc
|
# gnumake
|
||||||
glibc
|
# cmake
|
||||||
openssl.dev
|
# gcc
|
||||||
glibc.static
|
# glibc
|
||||||
llvm
|
# openssl.dev
|
||||||
llvmPackages.libcxxStdenv
|
# glibc.static
|
||||||
];
|
# llvm
|
||||||
|
# llvmPackages.libcxxStdenv
|
||||||
|
];
|
||||||
|
|
||||||
|
file = {
|
||||||
file =
|
".local/" = {
|
||||||
{
|
source = ../dots/.local;
|
||||||
".local/" = {
|
recursive = true;
|
||||||
source = ../dots/.local;
|
force = true;
|
||||||
recursive = true;
|
};
|
||||||
force = true;
|
".omnisharp" = {
|
||||||
};
|
source = ../dots/.omnisharp;
|
||||||
".omnisharp" = {
|
force = true;
|
||||||
source = ../dots/.omnisharp;
|
};
|
||||||
force = true;
|
".latexmkrc" = {
|
||||||
};
|
source = ../dots/.latexmkrc;
|
||||||
".latexmkrc" = {
|
force = true;
|
||||||
source = ../dots/.latexmkrc;
|
};
|
||||||
force = true;
|
} // softLinkDots ".config";
|
||||||
};
|
|
||||||
} // softLinkDots ".config";
|
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
GTK_THEME = "Kanagawa-Borderless";
|
GTK_THEME = "Kanagawa-Borderless";
|
||||||
@ -131,43 +129,37 @@ 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;
|
gtk-enable-event-sounds = 1;
|
||||||
gtk-enable-event-sounds = 1;
|
gtk-enable-input-feedback-sounds = 1;
|
||||||
gtk-enable-input-feedback-sounds = 1;
|
gtk-xft-antialias = 1;
|
||||||
gtk-xft-antialias = 1;
|
gtk-xft-hinting = 1;
|
||||||
gtk-xft-hinting = 1;
|
gtk-xft-hintstyle = "hintfull";
|
||||||
gtk-xft-hintstyle = "hintfull";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "Kanagawa-Borderless";
|
|
||||||
package = pkgs.kanagawa-gtk-theme;
|
|
||||||
};
|
|
||||||
iconTheme = {
|
|
||||||
name = "Kanagawa";
|
|
||||||
package = pkgs.kanagawa-gtk-theme;
|
|
||||||
};
|
|
||||||
font = {
|
|
||||||
name = "Open Sans";
|
|
||||||
size = 11;
|
|
||||||
package = pkgs.open-sans;
|
|
||||||
};
|
|
||||||
gtk3.extraConfig = extraGtkConfig;
|
|
||||||
gtk4.extraConfig = extraGtkConfig;
|
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
services = {
|
enable = true;
|
||||||
cliphist = {
|
theme = {
|
||||||
enable = true;
|
name = "Kanagawa-Borderless";
|
||||||
|
package = pkgs.kanagawa-gtk-theme;
|
||||||
};
|
};
|
||||||
|
iconTheme = {
|
||||||
|
name = "Kanagawa";
|
||||||
|
package = pkgs.kanagawa-gtk-theme;
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
name = "Open Sans";
|
||||||
|
size = 11;
|
||||||
|
package = pkgs.open-sans;
|
||||||
|
};
|
||||||
|
gtk3.extraConfig = extraGtkConfig;
|
||||||
|
gtk4.extraConfig = extraGtkConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = { cliphist = { enable = true; }; };
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
targets.compositor = {
|
targets.compositor = {
|
||||||
Unit = {
|
Unit = {
|
||||||
@ -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}";
|
||||||
|
Loading…
Reference in New Issue
Block a user