smb bad
This commit is contained in:
parent
fada7e988b
commit
f789d8daec
3 changed files with 4 additions and 19 deletions
|
|
@ -5,22 +5,7 @@
|
||||||
type = "cifs";
|
type = "cifs";
|
||||||
mountConfig = {
|
mountConfig = {
|
||||||
# Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},file_mode=0777,dir_mode=0777";
|
# Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},file_mode=0777,dir_mode=0777";
|
||||||
Options = [
|
Options = "_netdev,noserverino,noauto,noatime,async,users,rw,x-systemd.automount,x-systemd.requires=network-online.target,nofail,soft,credentials=${config.age.secrets.uwuraid.path},file_mode=0777,dir_mode=0777";
|
||||||
"_netdev"
|
|
||||||
"noserverino"
|
|
||||||
"noauto"
|
|
||||||
"noatime"
|
|
||||||
"async"
|
|
||||||
"users"
|
|
||||||
"rw"
|
|
||||||
"x-systemd.automount"
|
|
||||||
"x-systemd.requires=network-online.target"
|
|
||||||
"nofail"
|
|
||||||
"soft"
|
|
||||||
"credentials=${config.age.secrets.uwuraid.path}"
|
|
||||||
"file_mode=0777"
|
|
||||||
"dir_mode=0777"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ def l --wrapped [path: path = ".", ...rest] {
|
||||||
alias list-automounts = systemctl list-units --type=automount
|
alias list-automounts = systemctl list-units --type=automount
|
||||||
|
|
||||||
def remount [] {
|
def remount [] {
|
||||||
let reload = list-automounts | detect columns -n | get column0 | input list --multi
|
let reload = list-automounts | detect columns --guess | drop 5 | get DESCRIPTION | input list --multi
|
||||||
for mount in $reload {
|
for mount in $reload {
|
||||||
systemctl restart $mount
|
sudo systemctl restart $mount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ def ns [...packages: string] {
|
||||||
# nix search nixpkgs $package
|
# nix search nixpkgs $package
|
||||||
# }
|
# }
|
||||||
|
|
||||||
def --wrapped rebuild [--force, subcommand, ...rest] {
|
def --wrapped rebuild [--force (-f), subcommand, ...rest] {
|
||||||
if not (
|
if not (
|
||||||
df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99}
|
df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99}
|
||||||
) and not $force {
|
) and not $force {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue