feat(home,nixos): Auto mounting
This commit is contained in:
parent
9c75567b68
commit
86c16808e1
4 changed files with 44 additions and 1 deletions
|
@ -27,6 +27,7 @@ in {
|
|||
|
||||
services = {
|
||||
# syncthing = enabled;
|
||||
udiskie = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
22
modules/home/services/udiskie/default.nix
Normal file
22
modules/home/services/udiskie/default.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -11,7 +11,10 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
marleyos = {
|
||||
mounts.babeshare = enabled;
|
||||
mounts = {
|
||||
automounts = enabled;
|
||||
babeshare = enabled;
|
||||
};
|
||||
|
||||
appearance = {
|
||||
base = enabled;
|
||||
|
|
17
modules/nixos/mounts/automounts/default.nix
Normal file
17
modules/nixos/mounts/automounts/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue