feat(home,nixos): Auto mounting

This commit is contained in:
punkfairie 2025-02-21 17:52:12 -08:00
parent 9c75567b68
commit 86c16808e1
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
4 changed files with 44 additions and 1 deletions

View file

@ -27,6 +27,7 @@ in {
services = { services = {
# syncthing = enabled; # syncthing = enabled;
udiskie = enabled;
}; };
}; };
}; };

View file

@ -0,0 +1,22 @@
{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.services.udiskie;
in {
options.marleyos.services.udiskie.enable = lib.mkEnableOption "udiskie";
config = lib.mkIf cfg.enable {
services.udiskie = {
enable = true;
settings = {
program_options = {
# FIXME: set default file manager in default progs mod
file_manager = "${lib.getExe pkgs.xfce.thunar}";
};
};
};
};
}

View file

@ -11,7 +11,10 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
marleyos = { marleyos = {
mounts.babeshare = enabled; mounts = {
automounts = enabled;
babeshare = enabled;
};
appearance = { appearance = {
base = enabled; base = enabled;

View file

@ -0,0 +1,17 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.mounts.automounts;
in {
options.marleyos.mounts.automounts.enable = lib.mkEnableOption "automounts";
config = lib.mkIf cfg.enable {
boot.supportedFilesystems = {
ntfs = true;
};
services.udisks2.enable = true;
};
}