feat: try and get automatic mounting of usb drives working

This commit is contained in:
EinEtwas 2024-10-22 16:18:00 +02:00
parent 503b539aa5
commit 8249b5921d
5 changed files with 14 additions and 5 deletions

View file

@ -45,6 +45,7 @@
./alacritty.nix ./alacritty.nix
./zsh.nix ./zsh.nix
./spicetify.nix ./spicetify.nix
./udiskie.nix
./keyring.nix ./keyring.nix
]; ];

7
home/udiskie.nix Normal file
View file

@ -0,0 +1,7 @@
{
services.udiskie = {
enable = true;
automount = true;
notify = true;
};
}

View file

@ -57,11 +57,7 @@
environment.sessionVariables = { environment.sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
services.devmon.enable = true;
services.gvfs.enable = true;
services.udisks2.enable = true;
# Enable Flakes # Enable Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View file

@ -10,5 +10,6 @@
./environment.nix ./environment.nix
./polkit.nix ./polkit.nix
./networking.nix ./networking.nix
./diskservices.nix
]; ];
} }

4
modules/diskservices.nix Normal file
View file

@ -0,0 +1,4 @@
{
services.gvfs.enable = true;
services.udisks2.enable = true;
}