added udev setup for grapehenOS install

note: do not use the front ports on the fw16 for firmware flashing, they
do not work for some godforsaken reason, even though all ports are
supposed to support usb3.2 over USB-C

removed the hyprland portals and such from configuration.nix, moved udev
rules to a separate module in /modules/

added teams-for-linux because i was able to use it from a shell in a
pinch and it worked flawlessly (once i got into the meeting, because it
wasnt able to open the link by default since it was installed from a
shell, hopefully a proper install comes with xdg default app rules but
if not i can always add them)
This commit is contained in:
Gabriella Bere 2025-11-27 18:29:02 +00:00
parent 4025118783
commit 68c99f77d2
6 changed files with 1213 additions and 84 deletions

View file

@ -63,6 +63,7 @@
LC_TIME = "en_GB.UTF-8";
};
# Enable PPD to improve battery life maybe
services.power-profiles-daemon.enable = true;
powerManagement.powertop = {
@ -76,13 +77,6 @@
'';
};
services.udev.extraRules = ''
# disable USB auto suspend for framework keyboard
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0012", TEST=="power/control", ATTR{power/control}="on"
# disable USB auto suspend for framework macropad
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0013", TEST=="power/control", ATTR{power/control}="on"
'';
# Enable greetd with ReGreet
services.greetd = {
enable = true;
@ -98,9 +92,6 @@
];
};
# Enable the Hyprland WM functionality for NixOS (xdg portals etc.)
programs.hyprland.enable = true;
# Enable plasma 6
services.desktopManager.plasma6.enable = true;
@ -143,23 +134,31 @@
services.gnome.gnome-keyring.enable = true;
# Used to install grapheneOS
programs.adb.enable = true;
nix.settings.trusted-users = [
"root"
"blue"
];
programs.fish.enable = true;
users.users.blue = {
isNormalUser = true;
description = "Gabriella Bere";
extraGroups = [
"networkmanager"
"wheel"
"dialout"
"audio"
"libvirtd"
];
shell = pkgs.fish;
users = {
users.blue = {
isNormalUser = true;
description = "Gabriella Bere";
extraGroups = [
"networkmanager"
"wheel"
"dialout"
"audio"
"libvirtd"
"adbusers"
"kvm"
];
shell = pkgs.fish;
};
groups.adbusers.name = "adbusers";
};
# Enable fingerprint daemon