stuf
This commit is contained in:
parent
78c1198d90
commit
fada7e988b
4 changed files with 24 additions and 6 deletions
|
|
@ -3,7 +3,25 @@
|
||||||
systemd.mounts = let
|
systemd.mounts = let
|
||||||
opts = {
|
opts = {
|
||||||
type = "cifs";
|
type = "cifs";
|
||||||
mountConfig = {Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},gid=users,file_mode=0777,dir_mode=0777";};
|
mountConfig = {
|
||||||
|
# Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},file_mode=0777,dir_mode=0777";
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
(opts
|
(opts
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
k = "move_line_down";
|
k = "move_line_down";
|
||||||
};
|
};
|
||||||
normal.space = {
|
normal.space = {
|
||||||
l = "reload-all";
|
l = "@:reload-all<ret>";
|
||||||
w = {
|
w = {
|
||||||
J = "swap_view_up";
|
J = "swap_view_up";
|
||||||
K = "swap_view_down";
|
K = "swap_view_down";
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,8 @@ def --env c [path: path = "~"] {
|
||||||
l
|
l
|
||||||
}
|
}
|
||||||
|
|
||||||
def l --wrapped [...rest] {
|
def l --wrapped [path: path = ".", ...rest] {
|
||||||
ls -t ...$rest | insert ext {|row| $row.name | parse "{name}.{ext}" | get ext | get 0? } | sort-by type ext name | reject type ext
|
ls -t $path ...$rest | insert ext {|row| $row.name | parse "{name}.{ext}" | get ext | get 0? } | sort-by type ext name | reject type ext
|
||||||
}
|
}
|
||||||
|
|
||||||
alias list-automounts = systemctl list-units --type=automount
|
alias list-automounts = systemctl list-units --type=automount
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ def ns [...packages: string] {
|
||||||
# nix search nixpkgs $package
|
# nix search nixpkgs $package
|
||||||
# }
|
# }
|
||||||
|
|
||||||
def --wrapped rebuild [subcommand, ...rest] {
|
def --wrapped rebuild [--force, 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 {
|
||||||
print "not enough disk space!"
|
print "not enough disk space!"
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue