mirror of
https://github.com/nmasur/dotfiles
synced 2024-10-18 21:59:02 +00:00
Compare commits
No commits in common. "0ed11de17429f43e641d41a05cc2564dfad1cb04" and "cdcc90f85d6f2ff0a191ecde5cb0c40d4a5ca013" have entirely different histories.
0ed11de174
...
cdcc90f85d
@ -29,6 +29,9 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow browsing Samba shares
|
||||||
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,20 @@ 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
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
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.applescriptFromFile("Spoons/DismissAlerts.spoon/close_notifications.applescript")
|
hs.osascript.javascriptFromFile("Spoons/DismissAlerts.spoon/close_notifications_applescript.js")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf (config.samba.enable) {
|
||||||
|
|
||||||
services.samba = lib.mkIf (config.samba.enable) {
|
services.samba.enable = true;
|
||||||
enable = true;
|
services.samba.shares.video = {
|
||||||
shares.video = {
|
|
||||||
path = "/data/video";
|
path = "/data/video";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
@ -15,11 +14,6 @@
|
|||||||
"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