Compare commits

..

3 Commits

Author SHA1 Message Date
Noah Masur
0ed11de174 move gvfs outside of common
nixos-only option
2023-03-02 14:49:20 -05:00
Noah Masur
ab6f80fc18 overlay for age no longer needed 2023-03-02 14:48:49 -05:00
Noah Masur
d1f21ec874 fix: dismiss notifications with hammerspoon in ventura 2023-03-02 14:47:51 -05:00
5 changed files with 36 additions and 28 deletions

View File

@ -29,9 +29,6 @@
}; };
}; };
# Allow browsing Samba shares
services.gvfs.enable = true;
}; };
} }

View File

@ -17,20 +17,6 @@ in {
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
# Fix: age won't build
nixpkgs.overlays = [
(_final: prev: {
age = prev.age.overrideAttrs (_old: {
src = prev.fetchFromGitHub {
owner = "FiloSottile";
repo = "age";
rev = "7354aa0d08a06eac42c635670a55f858bd23c943";
sha256 = "H80mNTgZmExDMgubONIXP7jmLBvNMVqXee6NiZJhPFY=";
};
});
})
];
home.packages = with pkgs; [ home.packages = with pkgs; [
unzip # Extract zips unzip # Extract zips
rsync # Copy folders rsync # Copy folders

View File

@ -0,0 +1,19 @@
tell application "System Events"
try
set _groups to groups of UI element 1 of scroll area 1 of group 1 of window "Notification Center" of application process "NotificationCenter"
repeat with _group in _groups
set _actions to actions of _group
repeat with _action in _actions
if description of _action is in {"Schlie§en", "Alle entfernen", "Close", "Clear All"} then
perform _action
end if
end repeat
end repeat
end try
end tell

View File

@ -10,7 +10,7 @@ obj.license = "MIT - https://opensource.org/licenses/MIT"
function obj:init() function obj:init()
hs.hotkey.bind({ "cmd", "alt", "ctrl" }, "k", function() hs.hotkey.bind({ "cmd", "alt", "ctrl" }, "k", function()
hs.osascript.javascriptFromFile("Spoons/DismissAlerts.spoon/close_notifications_applescript.js") hs.osascript.applescriptFromFile("Spoons/DismissAlerts.spoon/close_notifications.applescript")
end) end)
end end

View File

@ -2,19 +2,25 @@
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; }; options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
config = lib.mkIf (config.samba.enable) { config = {
services.samba.enable = true; services.samba = lib.mkIf (config.samba.enable) {
services.samba.shares.video = { enable = true;
path = "/data/video"; shares.video = {
browseable = "yes"; path = "/data/video";
"read only" = "no"; browseable = "yes";
"guest ok" = "no"; "read only" = "no";
"force user" = config.user; "guest ok" = "no";
"force group" = config.user; "force user" = config.user;
comment = "Movies and TV"; "force group" = config.user;
comment = "Movies and TV";
};
}; };
# Allow browsing Samba shares
services.gvfs =
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
}; };
} }