560 current 1970-01-01 01:00:00 24.11.20250215.a60651b 6.6.76 *

This commit is contained in:
Max Känner 2025-02-17 14:02:01 +01:00
parent ec1e077975
commit 1a8b0c4449
2 changed files with 29 additions and 5 deletions

View File

@ -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";
};
})

View File

@ -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 = [