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/neovim.nix
modules/vscode.nix modules/vscode.nix
modules/sway.nix modules/sway.nix
] ++ lib.optionals (config.networking.hostName == "jimbo") [
modules/kanshi.nix
]; ];
gtk = { gtk = {

View file

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

View file

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

View file

@ -61,37 +61,10 @@ in
services.printing.enable = true; services.printing.enable = true;
services.printing.drivers = with pkgs; [ splix ]; 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: # List packages installed in system profile. To search, run:
# $ nix search wget environment.systemPackages = with pkgs; [ vim wget curl git ];
environment.systemPackages = with pkgs; [ neovim wget curl git ];
programs.neovim.vimAlias = true;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default