boxen/home/jez/machines/gwydion.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

2020-11-10 09:08:56 +00:00
{ pkgs, config, ... }:
2020-11-21 15:51:37 +00:00
let h = config.home.homeDirectory;
in {
home.packages = with pkgs; [ steam minecraft fahcontrol ];
services.mpd = {
enable = true;
2020-11-10 09:08:56 +00:00
musicDirectory = h + "/Music/Best";
network.listenAddress = "any";
extraConfig = ''
audio_output {
type "pulse"
name "Shared output (pulseaudio)"
format "96000:32:*"
}
audio_output {
type "jack"
name "Jack output"
}
'';
};
programs.ncmpcpp.enable = true;
services.mpdris2 = {
enable = true;
mpd.host = "127.0.0.1";
};
2020-11-26 08:52:34 +00:00
xdg.configFile."kitty/sessions/default.conf".text = ''
launch ${pkgs.ncmpcpp}/bin/ncmpcpp
launch ${pkgs.bpytop}/bin/bpytop
new_tab
'';
wayland.windowManager.sway = let
outputs = {
main = "Samsung Electric Company C27JG5x H4ZMA00132";
alt = "Unknown HP E233 CNC7500L7Q";
};
mod = config.wayland.windowManager.sway.config.modifier;
in {
config = {
keybindings = {
"${mod}+Ctrl+a" = "output ${outputs.alt} toggle";
};
output = {
"${outputs.main}" = {
resolution = "2560x1440@144Hz";
position = "0 0";
};
"${outputs.alt}" = {
resolution = "1920x1080@60Hz";
transform = "270";
};
};
};
extraConfig = ''
workspace 10 output ${outputs.alt} ${outputs.main}
'';
};
}