mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-07 06:40:13 +00:00
Compare commits
7 Commits
language-c
...
2217568a59
Author | SHA1 | Date | |
---|---|---|---|
2217568a59 | |||
05deb5b979 | |||
8621e2375d | |||
25975da0c1 | |||
a79719c21a | |||
5aea58df79 | |||
1833bfddfb |
@ -18,5 +18,5 @@ bind -M insert \cn 'commandline -r "nix shell nixpkgs#"'
|
|||||||
bind -M default \cn 'commandline -r "nix shell nixpkgs#"'
|
bind -M default \cn 'commandline -r "nix shell nixpkgs#"'
|
||||||
bind -M insert \x11F nix-fzf
|
bind -M insert \x11F nix-fzf
|
||||||
bind -M default \x11F nix-fzf
|
bind -M default \x11F nix-fzf
|
||||||
bind -M insert \ch _atuin_search --filter-mode global
|
bind -M insert \ch '_atuin_search --filter-mode global'
|
||||||
bind -M default \ch _atuin_search --filter-mode global
|
bind -M default \ch '_atuin_search --filter-mode global'
|
||||||
|
@ -8,10 +8,10 @@ obj.name = "Launcher"
|
|||||||
obj.version = "0.1"
|
obj.version = "0.1"
|
||||||
obj.license = "MIT - https://opensource.org/licenses/MIT"
|
obj.license = "MIT - https://opensource.org/licenses/MIT"
|
||||||
|
|
||||||
local width = hs.screen.mainScreen():fullFrame().w
|
local screen = hs.screen.primaryScreen()
|
||||||
local switcherWidth = 500
|
local switcherWidth = 500
|
||||||
obj.canvas = hs.canvas.new({
|
obj.canvas = hs.canvas.new({
|
||||||
x = width / 2 - switcherWidth / 2,
|
x = (screen:fullFrame().x + screen:fullFrame().w) / 2 - switcherWidth / 2,
|
||||||
y = 1,
|
y = 1,
|
||||||
h = 3,
|
h = 3,
|
||||||
w = switcherWidth,
|
w = switcherWidth,
|
||||||
|
@ -56,7 +56,7 @@ function obj:init()
|
|||||||
local frame = win:frame()
|
local frame = win:frame()
|
||||||
-- maximize if possible
|
-- maximize if possible
|
||||||
local max = win:screen():fullFrame()
|
local max = win:screen():fullFrame()
|
||||||
frame.x = max.w / 2
|
frame.x = (max.x * 2 + max.w) / 2
|
||||||
frame.y = max.y
|
frame.y = max.y
|
||||||
frame.w = max.w / 2
|
frame.w = max.w / 2
|
||||||
frame.h = max.h
|
frame.h = max.h
|
||||||
|
@ -51,6 +51,7 @@ local function worklayout()
|
|||||||
local laptop = {
|
local laptop = {
|
||||||
{ "Firefox", nil, LAPTOP_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
|
{ "Firefox", nil, LAPTOP_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
|
||||||
{ "Obsidian", nil, LAPTOP_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
|
{ "Obsidian", nil, LAPTOP_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
|
||||||
|
{ "Calendar", nil, LAPTOP_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
|
||||||
}
|
}
|
||||||
local layout = concat(left, right, laptop)
|
local layout = concat(left, right, laptop)
|
||||||
hs.layout.apply(layout)
|
hs.layout.apply(layout)
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
# MacOS-specific settings for Kitty
|
# MacOS-specific settings for Kitty
|
||||||
home-manager.users.${config.user} = lib.mkIf pkgs.stdenv.isDarwin {
|
home-manager.users.${config.user} = lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
darwinLaunchOptions = [ "--start-as=fullscreen" ];
|
|
||||||
font.size = lib.mkForce 20;
|
font.size = lib.mkForce 20;
|
||||||
settings = {
|
settings = {
|
||||||
shell = "/run/current-system/sw/bin/fish";
|
shell = "/run/current-system/sw/bin/fish";
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
home-manager.users.${config.user} = lib.mkIf pkgs.stdenv.isDarwin {
|
home-manager.users.${config.user} = lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# visidata # CSV inspector
|
visidata # CSV inspector
|
||||||
dos2unix # Convert Windows text files
|
dos2unix # Convert Windows text files
|
||||||
inetutils # Includes telnet
|
inetutils # Includes telnet
|
||||||
youtube-dl # Convert web videos
|
youtube-dl # Convert web videos
|
||||||
|
@ -36,23 +36,12 @@
|
|||||||
# Set Nautilus as default for opening directories
|
# Set Nautilus as default for opening directories
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
associations.added."inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
associations.added."inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
||||||
# associations.removed = {
|
|
||||||
# "inode/directory" = [ "kitty-open.desktop" ];
|
|
||||||
# };
|
|
||||||
defaultApplications."inode/directory" =
|
defaultApplications."inode/directory" =
|
||||||
lib.mkBefore [ "org.gnome.Nautilus.desktop" ];
|
lib.mkBefore [ "org.gnome.Nautilus.desktop" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Set default for opening directories
|
|
||||||
# xdg.mime = {
|
|
||||||
# addedAssociations."inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
|
||||||
# removedAssociations = { "inode/directory" = [ "kitty-open.desktop" ]; };
|
|
||||||
# defaultApplications."inode/directory" =
|
|
||||||
# lib.mkForce [ "org.gnome.Nautilus.desktop" ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Delete Trash files older than 1 week
|
# Delete Trash files older than 1 week
|
||||||
systemd.user.services.empty-trash = {
|
systemd.user.services.empty-trash = {
|
||||||
description = "Empty Trash on a regular basis";
|
description = "Empty Trash on a regular basis";
|
||||||
|
@ -80,7 +80,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Allows Nextcloud to trust Cloudflare IPs
|
# Allows Nextcloud to trust Cloudflare IPs
|
||||||
services.nextcloud.extraOptions.trusted_proxies = cloudflareIpRanges;
|
services.nextcloud.settings.trusted_proxies = cloudflareIpRanges;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
adminpassFile = config.secrets.nextcloud.dest;
|
adminpassFile = config.secrets.nextcloud.dest;
|
||||||
dbtype = "mysql";
|
dbtype = "mysql";
|
||||||
};
|
};
|
||||||
extraOptions = {
|
settings = {
|
||||||
default_phone_region = "US";
|
default_phone_region = "US";
|
||||||
# Allow access when hitting either of these hosts or IPs
|
# Allow access when hitting either of these hosts or IPs
|
||||||
trusted_domains = [ config.hostnames.content ];
|
trusted_domains = [ config.hostnames.content ];
|
||||||
|
@ -48,23 +48,12 @@
|
|||||||
before = [ "paperless.service" ];
|
before = [ "paperless.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix permissions on a regular schedule
|
|
||||||
systemd.timers.paperless-permissions = {
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* *:0/5"; # Every 5 minutes
|
|
||||||
Unit = "paperless-permissions.service";
|
|
||||||
};
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Fix paperless shared permissions
|
# Fix paperless shared permissions
|
||||||
systemd.services.paperless-permissions = {
|
systemd.services.paperless-web.serviceConfig.UMask = lib.mkForce "0026";
|
||||||
description = "Allow group access to paperless files";
|
systemd.services.paperless-scheduler.serviceConfig.UMask =
|
||||||
serviceConfig = { Type = "oneshot"; };
|
lib.mkForce "0026";
|
||||||
script = ''
|
systemd.services.paperless-task-queue.serviceConfig.UMask =
|
||||||
find ${config.services.paperless.mediaDir} -type f -exec chmod 640 -- {} +
|
lib.mkForce "0026";
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user