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

View file

@ -195,9 +195,23 @@
networkmanager-openvpn networkmanager-openvpn
nextcloud-client nextcloud-client
librewolf 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; services.power-profiles-daemon.enable = true;
# Fonts # Fonts