kanshi only on jimbo, static monitor config on cray

This commit is contained in:
fleaz 2022-02-23 20:55:25 +01:00
parent eee41375d2
commit ca95081b3e
4 changed files with 17 additions and 35 deletions

View file

@ -14,6 +14,8 @@ in
modules/neovim.nix
modules/vscode.nix
modules/sway.nix
] ++ lib.optionals (config.networking.hostName == "jimbo") [
modules/kanshi.nix
];
gtk = {

View file

@ -0,0 +1,6 @@
{
services.kanshi = {
enable = true;
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, nixosConfig, lib, ... }:
{
wayland.windowManager.sway = {
enable = true;
@ -16,23 +16,24 @@
};
output = {
"*".bg = "/home/fleaz/Downloads/spongebob.jpg fill";
"DVI-D-1" = {
} // lib.optionals (nixosConfig.networking.hostName == "cray") {
"DP-1" = {
mode = "1920x1200";
transform = "270";
position = "0,0";
};
"HDMI-A-1" = {
mode = "3840x2160";
scale = "1.2";
scale = "1.3";
position = "1200,0";
};
"DP-1" = {
"DP-2" = {
mode = "3840x2160";
scale = "1.2";
position = "4400,0";
scale = "1.3";
position = "4152,0";
};
};
};
gaps = { inner = 8; };
window.border = 0;
workspaceAutoBackAndForth = true;

View file

@ -61,37 +61,10 @@ in
services.printing.enable = true;
services.printing.drivers = with pkgs; [ splix ];
# output = {
# "*".bg = "/home/fleaz/Downloads/spongebob.jpg fill";
# "DVI-D-1" = {
# mode = "1920x1200";
# transform = "270";
# position = "0,0";
# };
# "HDMI-A-1" = {
# mode = "3840x2160";
# scale = "1.2";
# position = "1200,0";
# };
# "DP-1" = {
# mode = "3840x2160";
# scale = "1.2";
# position = "4400,0";
# };
# Multimedia Keys
# "XF86AudioMute" =
# "exec ${pkgs.pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle";
# "XF86AudioRaiseVolume" =
# "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
# "XF86AudioLowerVolume" =
# "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ neovim wget curl git ];
programs.neovim.vimAlias = true;
environment.systemPackages = with pkgs; [ vim wget curl git ];
# This value determines the NixOS release from which the default