mirror of
https://github.com/nmasur/dotfiles
synced 2024-10-18 19:39:03 +00:00
Compare commits
3 Commits
cdcc90f85d
...
0ed11de174
Author | SHA1 | Date | |
---|---|---|---|
|
0ed11de174 | ||
|
ab6f80fc18 | ||
|
d1f21ec874 |
@ -29,9 +29,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow browsing Samba shares
|
|
||||||
services.gvfs.enable = true;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
@ -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
|
||||||
|
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
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;
|
||||||
|
shares.video = {
|
||||||
path = "/data/video";
|
path = "/data/video";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
@ -14,6 +15,11 @@
|
|||||||
"force group" = config.user;
|
"force group" = config.user;
|
||||||
comment = "Movies and TV";
|
comment = "Movies and TV";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Allow browsing Samba shares
|
||||||
|
services.gvfs =
|
||||||
|
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user