Add extra settings for edu machines

This commit is contained in:
Manuel Thalmann 2024-05-21 18:58:38 +02:00
parent 9df79d8fc4
commit b94fe6d3dc
2 changed files with 17 additions and 1 deletions

View file

@ -29,6 +29,7 @@
config = { pkgs, ... }: {
dualBoot = false;
school = false;
timeZone = "Europe/Zurich";
keyMap = "de_CH-latin1";
keyboardLayout = "ch";
@ -56,6 +57,7 @@
nixos.config = { ... }: {
};
manu-surface.config = { ... }: {
school = true;
modules = [
nixos-hardware.nixosModules.microsoft-surface-pro-intel
];

View file

@ -195,9 +195,23 @@
networkmanager-openvpn
nextcloud-client
librewolf
];
logseq
rnote
texliveFull
xournalpp
] ++ (lib.optionals machine.config.school [
teams-for-linux
temurin-bin-17
gradle
jetbrains.idea-ultimate
]);
};
services.udev.extraRules = lib.strings.concatLines (
lib.optional machine.config.school ''
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", MODE="0666"
'');
services.power-profiles-daemon.enable = true;
# Fonts