diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 3d680e0..049d36c 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -71,6 +71,7 @@ ./roles/steam_run_free ./roles/pcsx2 ./roles/hydra + ./roles/shikane ]; nix.settings.experimental-features = [ diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 2d77c62..2f02baa 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -59,7 +59,7 @@ me.gpg.enable = true; me.graphical = true; me.graphics_card_type = "amd"; - me.kanshi.enable = true; + me.kanshi.enable = false; me.kubernetes.enable = true; me.latex.enable = true; me.launch_keyboard.enable = true; @@ -70,6 +70,7 @@ me.python.enable = true; me.qemu.enable = true; me.rust.enable = true; + me.shikane.enable = true; me.sops.enable = true; me.sound.enable = true; me.steam.enable = true; diff --git a/nix/configuration/roles/shikane/default.nix b/nix/configuration/roles/shikane/default.nix new file mode 100644 index 0000000..728bb4f --- /dev/null +++ b/nix/configuration/roles/shikane/default.nix @@ -0,0 +1,51 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + exec_shikane = pkgs.writeTextFile { + name = "exec_shikane.conf"; + text = '' + exec shikane + ''; + }; +in +{ + imports = [ ]; + + options.me = { + shikane.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install shikane."; + }; + }; + + config = lib.mkIf config.me.shikane.enable ( + lib.mkMerge [ + (lib.mkIf config.me.graphical { + environment.systemPackages = with pkgs; [ + shikane + ]; + + me.swayIncludes = [ + exec_shikane + ]; + + home-manager.users.talexander = + { pkgs, ... }: + { + home.file = { + ".config/shikane/config.toml" = { + source = ./files/config.toml; + }; + }; + }; + }) + ] + ); +} diff --git a/nix/configuration/roles/shikane/files/config.toml b/nix/configuration/roles/shikane/files/config.toml new file mode 100644 index 0000000..ccf4bd8 --- /dev/null +++ b/nix/configuration/roles/shikane/files/config.toml @@ -0,0 +1,17 @@ +[[profile]] + name = "homedesk" + exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""] + +[[profile.output]] + enable = false + search = ["m=0x0BCA", "s=", "v=BOE"] + +[[profile.output]] + enable = true + search = ["m=DELL U3014", "s=P1V6N35M329L", "v=Dell Inc."] + mode = "2560x1600@59.972Hz" + position = "0,0" + scale = 1.0 + transform = "normal" + adaptive_sync = false + exec = ["echo This is output $SHIKANE_OUTPUT_NAME"]