NixOS-Configs/user/don/home.nix
2023-03-05 13:40:36 -06:00

85 lines
2.4 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
/home/don/nixos/user/don/neovim.nix
];
home.username = "don";
home.homeDirectory = "/home/don";
home.stateVersion = "22.11";
programs.go.enable = true;
programs.keychain = {
enable = true;
enableBashIntegration = true;
agents = "ssh";
keys = "id_aur id_dsa id_ed25519 id_rsa 56913AD86A18257132AA9F03928BC0B78C1BF5AA";
inheritType = "any";
};
programs.mpv = {
enable = true;
# config = {
# cache-dir = "/home/don/.cache";
# cache-on-disk = "yes";
# cache = "yes";
# demuxer-max-back-bytes = "100M";
# demuxer-max-bytes = "500M";
# demuxer-readahead-secs = "20";
# pause = "no";
# save-position-on-quit = "yes";
# slang = "en";
# user-agent = "Mozilla/5.0";
# ytdl-format = "bestvideo+bestaudio";
# ytdl-raw-options = "no-playlist=";
# ytdl = "yes";
# script-opts = "ytdl_hook-ytdl_path=yt-dlp";
# };
scripts = [ pkgs.mpvScripts.autoload ];
#scripts = [ pkgs.mpvScripts.autoload pkgs.mpvScripts.sponsorblock ];
};
services = {
gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
kanshi = {
enable = true;
profiles = {
undocked = {
outputs = [
{
criteria = "Sharp Corporation 0x14F9 0x00000000";
status = "enable";
scale = 1.2;
}
];
};
docked = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "Samsung Electric Company C24F390 H4ZN519488";
status = "enable";
position = "0,0";
}
{
criteria = "Stargate Technology HDMI Unknown";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output \"'Samsung Electric Company C24F390 H4ZN519488'\""
"swaymsg workspace 5, move workspace to output \"'Stargate Technology HDMI Unknown'\""
"swaymsg workspace 6, move workspace to output \"'Samsung Electric Company C24F390 H4ZN519488'\""
"swaymsg workspace 9, move workspace to output \"'Stargate Technology HDMI Unknown'\""
];
};
};
};
};
}