fix suspend and move to labels instead of uuids

This commit is contained in:
Leonardo Eugênio 2022-07-19 20:19:10 -03:00
parent d7ad065581
commit dbada43f82
4 changed files with 26 additions and 5 deletions

View file

@ -63,7 +63,7 @@ in
services.greetd = let
swayConfig = pkgs.writeText "greetd-sway-config" ''
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c sway; swaymsg exit"
exec "XDG_CURRENT_DESKTOP=sway GTK_THEME=Orchis-Red-Dark-Compact ${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c sway; swaymsg exit"
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \

View file

@ -14,25 +14,30 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/876ccabe-511b-4cd4-9d4e-5da899c940ca";
{ device = "/dev/disk/by-label/BTRFS_ROOT";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
boot.initrd.luks.devices."main".device = "/dev/disk/by-uuid/325ca6b7-0bcd-469d-bfb1-ba5667342871";
boot.initrd.luks.devices."main".device = "/dev/disk/by-label/CRYPTROOT";
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/FF2D-8819";
{ device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/876ccabe-511b-4cd4-9d4e-5da899c940ca";
{ device = "/dev/disk/by-label/BTRFS_ROOT";
fsType = "btrfs";
options = [ "subvol=home" ];
};
swapDevices = [ ];
# TODO: desativar o GPP0 no wakeup acpi
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
'';
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's