mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
89 lines
2.8 KiB
Nix
89 lines
2.8 KiB
Nix
{ config, pkgs, lib, ... }: with lib;
|
|
{
|
|
|
|
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
enableSshSupport = true;
|
|
enableExtraSocket = true;
|
|
pinentryPackage = pkgs.pinentry.gtk2;
|
|
defaultCacheTtl = 600;
|
|
maxCacheTtl = 7200;
|
|
extraConfig = ''
|
|
allow-loopback-pinentry
|
|
allow-emacs-pinentry
|
|
'';
|
|
};
|
|
|
|
sops.age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/sops" ];
|
|
|
|
# waybar config - TEMPLATE - update for cores and temp
|
|
programs.waybar.settings.mainBar = {
|
|
# temperature.hwmon-path = "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon4/temp1_input";
|
|
temperature.hwmon-path.abs = "/sys/devices/platform/thinkpad_hwmon/hwmon/";
|
|
temperature.input-filename = "temp1_input";
|
|
};
|
|
|
|
|
|
programs.waybar.settings.mainBar.modules-right = [
|
|
"custom/outer-left-arrow-dark"
|
|
"mpris"
|
|
"custom/left-arrow-light"
|
|
"network"
|
|
"custom/left-arrow-dark"
|
|
"pulseaudio"
|
|
"custom/left-arrow-light"
|
|
"custom/pseudobat"
|
|
"battery"
|
|
"custom/left-arrow-dark"
|
|
"group/hardware"
|
|
"custom/left-arrow-light"
|
|
"clock#2"
|
|
"custom/left-arrow-dark"
|
|
"clock#1"
|
|
];
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
config = rec {
|
|
# update for actual inputs here,
|
|
|
|
# workspaceOutputAssign = [
|
|
# { output = "eDP-1"; workspace = "1:一"; }
|
|
# { output = "DP-4"; workspace = "2:二"; }
|
|
# ];
|
|
|
|
|
|
keybindings =
|
|
let
|
|
inherit (config.wayland.windowManager.sway.config) modifier;
|
|
in
|
|
{
|
|
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
|
|
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
|
|
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
|
|
"XF86Display" = "exec wl-mirror eDP-1";
|
|
# these are left open to use
|
|
# "XF86WLAN" = "exec wl-mirror eDP-1";
|
|
# "XF86Messenger" = "exec wl-mirror eDP-1";
|
|
# "XF86Go" = "exec wl-mirror eDP-1";
|
|
# "XF86Favorites" = "exec wl-mirror eDP-1";
|
|
# "XF86HomePage" = "exec wtype -P Escape -p Escape";
|
|
# "XF86AudioLowerVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink -5%";
|
|
# "XF86AudioRaiseVolume" = "pactl set-sink-volume alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink +5% ";
|
|
"XF86AudioMute" = "pactl set-sink-mute alsa_output.pci-0000_08_00.6.HiFi__hw_Generic_1__sink toggle";
|
|
};
|
|
|
|
startup = [
|
|
|
|
{ command = "nextcloud --background"; }
|
|
{ command = "discord --start-minimized"; }
|
|
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; }
|
|
{ command = "ANKI_WAYLAND=1 anki"; }
|
|
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian"; }
|
|
{ command = "nm-applet"; }
|
|
|
|
];
|
|
};
|
|
};
|
|
}
|