mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 12:54:38 -05:00
feat: set up sshfs on deimos
This commit is contained in:
parent
27781d3d0f
commit
2b4ad99e25
8 changed files with 54 additions and 8 deletions
|
@ -90,6 +90,7 @@ let
|
|||
}
|
||||
// genOptions mountConfig "folder"
|
||||
// genOptions mountConfig "samba"
|
||||
// genOptions mountConfig "remote"
|
||||
// genOptions mountConfig "storage";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{ devicesFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
sshfsOptions
|
||||
fileModeAndDirMode
|
||||
ceresStorageDriveName
|
||||
ownerExclusiveReadWriteMask
|
||||
readWritePermissions
|
||||
sambaPermissions
|
||||
|
@ -9,7 +11,6 @@ let
|
|||
ceresIP
|
||||
;
|
||||
ceresName = "ceres";
|
||||
ceresStorageDriveName = "NAS1";
|
||||
in
|
||||
{
|
||||
label = "Ceres";
|
||||
|
@ -33,4 +34,9 @@ in
|
|||
device = "//${ceresIP}";
|
||||
options = sambaPermissions ++ fileModeAndDirMode ++ userIdForUser0;
|
||||
};
|
||||
remote0 = {
|
||||
mount = "/mnt/media/remote";
|
||||
device = "nick@24.76.173.0:/mnt/media/${ceresStorageDriveName}";
|
||||
options = sshfsOptions;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,6 +21,15 @@ let
|
|||
"x-systemd.automount"
|
||||
"x-systemd.requires=network-online.target"
|
||||
];
|
||||
sshfsOptions = [
|
||||
"allow_other"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
"reconnect"
|
||||
"user"
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=/var/run/secrets/ssh/private"
|
||||
];
|
||||
fileModeAndDirMode = [
|
||||
"file_mode=0644"
|
||||
"dir_mode=0755"
|
||||
|
@ -36,6 +45,7 @@ let
|
|||
];
|
||||
dummy = [
|
||||
];
|
||||
ceresStorageDriveName = "NAS1";
|
||||
ceresIP = "192.168.50.140";
|
||||
charonIP = "192.168.50.42";
|
||||
deimosIP = "192.168.50.142";
|
||||
|
|
|
@ -40,7 +40,7 @@ in
|
|||
};
|
||||
fonts = {
|
||||
names = {
|
||||
name0 = "MonaspiceNe Nerd Font"; # User0 Font
|
||||
name0 = "MonaspiceRn Nerd Font"; # User0 Font
|
||||
name1 = ""; # User1 Font
|
||||
name2 = ""; # User2 Font
|
||||
};
|
||||
|
|
|
@ -6,6 +6,14 @@
|
|||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs.kdePackages)
|
||||
dolphin
|
||||
kio-extras
|
||||
baloo
|
||||
kdegraphics-thumbnailers
|
||||
ffmpegthumbs
|
||||
breeze
|
||||
breeze-icons
|
||||
oxygen
|
||||
polkit-kde-agent-1
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{ flake, osConfig, ... }:
|
||||
let
|
||||
inherit (flake.config.machines.devices) deimos;
|
||||
hostname = osConfig.networking.hostName;
|
||||
in
|
||||
{
|
||||
services.wpaperd = {
|
||||
enable = true;
|
||||
|
@ -7,7 +12,7 @@
|
|||
apply-shadow = true;
|
||||
duration = "1m";
|
||||
sorting = "random";
|
||||
};
|
||||
} // (if hostname == deimos.name then { mode = "center"; } else { });
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue