From 6994093871c1e99250c3a473694fce39e58e01b5 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 13 Jan 2024 20:29:22 -0600 Subject: [PATCH] Added some automounting for thumb drives --- profiles/work/configuration.nix | 1 + system/security/automount.nix | 7 +++++++ user/wm/hyprland/hyprland.nix | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 system/security/automount.nix diff --git a/profiles/work/configuration.nix b/profiles/work/configuration.nix index 9ef5cf4..376ef73 100644 --- a/profiles/work/configuration.nix +++ b/profiles/work/configuration.nix @@ -22,6 +22,7 @@ ../../system/security/firewall.nix ../../system/security/firejail.nix ../../system/security/openvpn.nix + ../../system/security/automount.nix ../../system/style/stylix.nix ]; diff --git a/system/security/automount.nix b/system/security/automount.nix new file mode 100644 index 0000000..25fcbc4 --- /dev/null +++ b/system/security/automount.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + services.devmon.enable = true; + services.gvfs.enable = true; + services.udisks2.enable = true; +} diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 578d37e..9a84010 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -730,6 +730,8 @@ background-size: auto 100%; } ''; + services.udiskie.enable = true; + services.udiskie.tray = "always"; programs.swaylock = { enable = true; settings = {