Compare commits
5 commits
ab485dec35
...
f21920fc9f
Author | SHA1 | Date | |
---|---|---|---|
f21920fc9f | |||
508a3a624f | |||
31cc2f7441 | |||
292e530d40 | |||
ec02ca0e94 |
5 changed files with 33 additions and 23 deletions
|
@ -92,6 +92,7 @@ in {
|
|||
# Release binds
|
||||
bindr = [
|
||||
(key "Alt_L" "Super+Alt" "togglespecialworkspace" "wallpaper")
|
||||
(key "Alt_L" "Super+Alt+Shift" "movetoworkspacesilent" "special:wallpaper")
|
||||
(key "Control_L" "Super+Ctrl" "layoutmsg" "swapwithmaster master")
|
||||
(key "Control_L" "Super+Ctrl+Alt+Shift" "layoutmsg" "removemaster")
|
||||
(key "Control_L" "Super+Ctrl+Shift" "layoutmsg" "addmaster")
|
||||
|
@ -204,12 +205,14 @@ in {
|
|||
(key "F" "Super" "exec" nautilus)
|
||||
(key "G" "Super" "workspace" "name:game")
|
||||
(key "G" "Super+Alt" "workspace" "name:gamescope")
|
||||
(key "G" "Super+Shift" "movetoworkspacesilent" "name:game")
|
||||
(key "G" "Super+Ctrl+Alt" "exec" "${pkill} gamescope")
|
||||
(key "G" "Super+Shift" "movetoworkspacesilent" "name:game")
|
||||
(key "K" "Super" "exec" obsidian)
|
||||
(key "M" "Super" "togglespecialworkspace" "music")
|
||||
(key "M" "Super+Shift" "movetoworkspacesilent" "music")
|
||||
(key "O" "Super" "togglespecialworkspace" "office")
|
||||
(key "O" "Super+Ctrl" "exec" "libreoffice")
|
||||
(key "O" "Super+Shift" "movetoworkspacesilent" "special:office")
|
||||
(key "P" "Super" "exec" "${hyprpicker} --autocopy")
|
||||
(key "P" "Super+Shift" "exec" "${hyprpicker} --autocopy --format rgb")
|
||||
(key "Q" "Ctrl+Alt" "exec" "${kill} -9 $(${hyprctl} -j activewindow | ${jq} .pid)")
|
||||
|
@ -226,13 +229,13 @@ in {
|
|||
(key "V" "Super" "exec" "${kitty} --app-id clipboard --override font_size=12 ${clipse}")
|
||||
(key "V" "Super+Shift" "exec" "${clipse} -clear && ${notify-send} clipse 'Clipboard cleared' --urgency low")
|
||||
(key "W" "Super" "togglespecialworkspace" "vm")
|
||||
(key "W" "Super+Shift" "exec" "vm -x ${
|
||||
(key "W" "Super+Ctrl" "exec" "vm -x ${
|
||||
if config.custom.hidpi
|
||||
then "/scale:140 +f"
|
||||
else ""
|
||||
}")
|
||||
(key "W" "Super+Shift" "movetoworkspacesilent" "vm")
|
||||
(key "W" "Super+Ctrl+Shift" "exec" "vm ${virt-manager} --show-domain-console myndows")
|
||||
(key "W" "Super+Shift" "movetoworkspacesilent" "vm")
|
||||
(key "X" "Super" "workspace" "+1")
|
||||
(key "X" "Super+Shift" "movetoworkspacesilent" "+1")
|
||||
(key "Z" "Super" "workspace" "-1")
|
||||
|
|
|
@ -177,7 +177,7 @@ in {
|
|||
(tag.dropdown ["move ${dropdown.x} ${dropdown.y}" "pin" "size ${dropdown.w} ${dropdown.h}"])
|
||||
(tag.editor ["group invade" "tile"])
|
||||
(tag.files ["size 1000 625"])
|
||||
(tag.game ["group barred" "idleinhibit always" "noborder" "noshadow" "renderunfocused" "workspace name:game"])
|
||||
(tag.game ["fullscreen" "group barred" "idleinhibit always" "noborder" "noshadow" "renderunfocused" "workspace name:game"])
|
||||
(tag.music ["tile" "workspace special:music"])
|
||||
(tag.office ["tile" "workspace special:office"])
|
||||
(tag.pip ["keepaspectratio" "move ${pip.x} ${pip.y}" "pin" "size ${pip.w} ${pip.h}"])
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
|
|
|
@ -16,27 +16,29 @@ in {
|
|||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
nmbd.enable = false;
|
||||
nsswins = false;
|
||||
|
||||
shares = {
|
||||
# https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html
|
||||
settings = {
|
||||
Public.path = "/home/${config.custom.username}/Public";
|
||||
SYNC.path = "/home/${config.custom.username}/SYNC";
|
||||
|
||||
global = {
|
||||
"allow insecure wide links" = "yes";
|
||||
"browseable" = "no";
|
||||
"follow symlinks" = "yes";
|
||||
"force user" = config.custom.username;
|
||||
"hostname lookups" = "yes";
|
||||
"hosts allow" = "192.168.111.";
|
||||
"inherit owner" = "unix only";
|
||||
"inherit permissions" = "yes";
|
||||
"logging" = "systemd";
|
||||
"map to guest" = "bad password";
|
||||
"wide links" = "yes";
|
||||
"writeable" = "yes";
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
logging = systemd
|
||||
|
||||
hosts allow = 127.0.0.1 myndows 192.168.111.
|
||||
|
||||
browseable = yes
|
||||
writeable = yes
|
||||
force user = ${config.custom.username}
|
||||
map to guest = bad password
|
||||
inherit owner = unix only
|
||||
inherit permissions = yes
|
||||
follow symlinks = yes
|
||||
wide links = yes
|
||||
allow insecure wide links = yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -71,9 +71,12 @@ in {
|
|||
services.resolved = mkIf cfg.dns {
|
||||
enable = true;
|
||||
dnsovertls = "opportunistic"; # Fallback only
|
||||
#// llmnr = "false";
|
||||
#// domains = [ "~." ]; # All interfaces
|
||||
#// extraConfig = "MulticastDNS=false"; # mDNS
|
||||
|
||||
# Multicast DNS causes single name resolution to hang and prevents libvirt NSS from functioning
|
||||
# https://github.com/NixOS/nixpkgs/issues/322022
|
||||
extraConfig = "MulticastDNS=false"; # mDNS
|
||||
llmnr = "false";
|
||||
|
||||
# https://controld.com/free-dns
|
||||
#?? host verify.controld.com
|
||||
|
@ -97,6 +100,7 @@ in {
|
|||
"mymachines"
|
||||
"libvirt_guest"
|
||||
"libvirt"
|
||||
#// "wins"
|
||||
"resolve"
|
||||
"dns"
|
||||
]);
|
||||
|
|
Loading…
Add table
Reference in a new issue