misc laptop things

This commit is contained in:
Patrick Großmann 2023-10-24 19:50:45 +02:00
parent 1715f33f53
commit 8912f87918
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
9 changed files with 71 additions and 3 deletions

View file

@ -53,4 +53,8 @@
rekeyFile = ./secrets/iwd/devolo-og.psk.age;
path = "/var/lib/iwd/devolo-og.psk";
};
age.secrets.simonWlan = {
rekeyFile = ./. + "/secrets/iwd/=467269747a21426f78373539302048616e7373656e.psk.age";
path = "/var/lib/=467269747a21426f78373539302048616e7373656e.psk";
};
}

View file

@ -1,7 +1,7 @@
{config, ...}: {
agenix.secrets.usbguard.rekeyFile = ../../secrets/usbguard.rules.age;
age.secrets.usbguard.rekeyFile = ../../secrets/usbguard.rules.age;
services.usbguard = {
rules = builtins.readFile config.age.secrets.usbguard.path;
ruleFile = config.age.secrets.usbguard.path;
enable = true;
};
}

Binary file not shown.

Binary file not shown.

View file

@ -42,6 +42,9 @@
"type:touch" = {
map_to_output = "eDP-1";
};
"type:tablet_tool" = {
map_to_output = "eDP-1";
};
};
keybindings = let
cfg = config.wayland.windowManager.sway.config;

View file

@ -19,7 +19,7 @@
};
"gojo" = {
hostname = "10.181.97.217";
hostname = "gojo.local";
user = "root";
};
@ -46,6 +46,10 @@
hostname = "lel.lol";
user = "patrick";
};
"binex" = {
hostname = "praksrv.sec.in.tum.de";
user = "team402";
};
"*" = {
identitiesOnly = true;
inherit identityFile;

View file

@ -39,6 +39,7 @@ lib.optionalAttrs (!minimal) {
./simon.nix
./impermanence.nix
./ssh.nix
];
};
}

56
users/simon/ssh.nix Normal file
View file

@ -0,0 +1,56 @@
{
# yubikey public key parts
home.file.".ssh/1.pub".text = ''
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZixkix0KfKuq7Q19whS5FQQg51/AJGB5BiNF/7h/LM cardno:15 489 049
'';
programs.ssh = {
enable = true;
controlMaster = "auto";
controlPersist = "5s";
matchBlocks = let
identityFile = ["~/.ssh/1.pub"];
in {
"elisabeth" = {
hostname = "lel.lol";
user = "root";
};
"gojo" = {
hostname = "gojo.local";
user = "root";
};
"patricknix" = {
hostname = "patricknix.local";
user = "root";
};
"testienix" = {
hostname = "testienix.local";
user = "root";
};
"desktopnix" = {
hostname = "desktopnix.local";
user = "root";
};
"valhalla" = {
hostname = "valhalla.fs.tum.de";
user = "hanssen";
};
"elisabethprivate" = {
hostname = "lel.lol";
user = "simon";
};
"binex" = {
hostname = "praksrv.sec.in.tum.de";
user = "team402";
};
"*" = {
identitiesOnly = true;
inherit identityFile;
};
};
};
}