From 1a8b0c4449d875f0cffa0516b30d007c95ef8bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Mon, 17 Feb 2025 14:02:01 +0100 Subject: [PATCH] 560 current 1970-01-01 01:00:00 24.11.20250215.a60651b 6.6.76 * --- flake.nix | 10 +++++----- modules/home/sway/kanshi.nix | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index b81d4b2..b0f4f4d 100644 --- a/flake.nix +++ b/flake.nix @@ -45,7 +45,7 @@ }; in { nixosConfigurations = { - "MaxNixosLaptop" = nixpkgs.lib.nixosSystem { + "MaxNixosLaptop" = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs pkgs system; @@ -68,10 +68,10 @@ (nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix") (nixpkgs + "/nixos/modules/installer/cd-dvd/channel.nix") - ({ pkgs, ... }: { + ({pkgs, ...}: { # Enable SSH in the boot process. systemd.services.sshd.wantedBy = - pkgs.lib.mkForce [ "multi-user.target" ]; + pkgs.lib.mkForce ["multi-user.target"]; users.users.root.openssh.authorizedKeys.keys = [ # your ssh key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOLRNvgrjnBizuruEm6htmvc6F1uGath9T7WjAh6ogPD root@host" @@ -79,8 +79,8 @@ isoImage.squashfsCompression = "gzip -Xcompression-level 1"; networking = { usePredictableInterfaceNames = false; - useDHCP = true; - nameservers = [ "1.1.1.1" ]; + useDHCP = true; + nameservers = ["1.1.1.1"]; hostName = "host"; }; }) diff --git a/modules/home/sway/kanshi.nix b/modules/home/sway/kanshi.nix index 0c5f998..1a685ff 100644 --- a/modules/home/sway/kanshi.nix +++ b/modules/home/sway/kanshi.nix @@ -168,6 +168,30 @@ in { "${pkgs.sway}/bin/swaymsg [workspace=5] move workspace to '\"Dell Inc. DELL P2422HE 7VWL9M3\"'" ]; } + { + profile.outputs = [ + { + criteria = "eDP-1"; + position = "1080,1080"; + } + { + criteria = "Dell Inc. DELL P2422HE JLXL9M3"; + position = "1080,0"; + } + { + criteria = "DP-1"; + transform = "90"; + position = "0,0"; + } + ]; + profile.exec = [ + "${pkgs.sway}/bin/swaymsg [workspace=main] move workspace to '\"Dell Inc. DELL P2422HE 7VWL9M3\"'" + "${pkgs.sway}/bin/swaymsg [workspace=term] move workspace to 'DP-1'" + "${pkgs.sway}/bin/swaymsg [workspace=msg] move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg [workspace=music] move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg [workspace=5] move workspace to '\"Dell Inc. DELL P2422HE 7VWL9M3\"'" + ]; + } { profile.name = "docked-4k"; profile.outputs = [