aboutsummaryrefslogtreecommitdiffhomepage
path: root/home-manager
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-01-22 12:50:17 +0900
committernsfisis <nsfisis@gmail.com>2025-01-22 12:50:17 +0900
commit9d03982f63be8baa73f1072c51fe8fa15fcf6c20 (patch)
treed5c1385a3c0bd16f803d846457b4b1348e7dd813 /home-manager
parentc225c06ab661f5c2fbc34b2eafc0b68001305846 (diff)
downloaddotfiles-9d03982f63be8baa73f1072c51fe8fa15fcf6c20.tar.gz
dotfiles-9d03982f63be8baa73f1072c51fe8fa15fcf6c20.tar.zst
dotfiles-9d03982f63be8baa73f1072c51fe8fa15fcf6c20.zip
nix: introduce `nixfmt`
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/home.nix36
1 files changed, 21 insertions, 15 deletions
diff --git a/home-manager/home.nix b/home-manager/home.nix
index e0ecd43..a69cae3 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -49,9 +49,13 @@ in
pkgs.zig_0_13
(pkgs.php84.buildEnv {
- extensions = ({ enabled, all }: enabled ++ (with all; [
- ffi
- ]));
+ extensions = (
+ { enabled, all }:
+ enabled
+ ++ (with all; [
+ ffi
+ ])
+ );
extraConfig = ''
ffi.enable=true
'';
@@ -117,18 +121,20 @@ in
extraConfig =
let
commonConfig = builtins.readFile ./config/tmux/tmux.conf;
- clipboardConfig = if clipboardCopyCommand != null then
- ''
- bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${clipboardCopyCommand}"
- ''
- else
- "";
- terminalConfig = if terminalApp == "alacritty" then
- ''
- set-option -ga terminal-overrides ',alacritty:RGB'
- ''
- else
- "";
+ clipboardConfig =
+ if clipboardCopyCommand != null then
+ ''
+ bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${clipboardCopyCommand}"
+ ''
+ else
+ "";
+ terminalConfig =
+ if terminalApp == "alacritty" then
+ ''
+ set-option -ga terminal-overrides ',alacritty:RGB'
+ ''
+ else
+ "";
in
commonConfig + clipboardConfig + terminalConfig;
};