overlord/ nfs,smb
This commit is contained in:
parent
bf6e9e680e
commit
64d0ab2002
8 changed files with 186 additions and 3 deletions
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./yazi.nix
|
||||
./shell.nix
|
||||
./zellij.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
11
modules/home-manager/cli/zellij.nix
Normal file
11
modules/home-manager/cli/zellij.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
enableBashIntegration = true; # Or zsh
|
||||
settings = {
|
||||
theme = "rose-pine";
|
||||
pane_frames = false;
|
||||
default_layout = "compact";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -22,4 +22,8 @@ in {
|
|||
source = link "${dots}/mako";
|
||||
recursive = true;
|
||||
};
|
||||
xdg.configFile."zellij" = {
|
||||
source = link "${dots}/zellij";
|
||||
recursive = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
mpv
|
||||
vulkan-tools
|
||||
pkgs.looking-glass-client
|
||||
tmux
|
||||
|
||||
btop
|
||||
nicotine-plus
|
||||
|
|
|
|||
40
modules/servers/per-host/overlord/share.nix
Normal file
40
modules/servers/per-host/overlord/share.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
fileSystems."/export/share" = {
|
||||
device = "/mnt/2tbhdd";
|
||||
fsType = "nfs";
|
||||
options = ["bind"];
|
||||
};
|
||||
services.nfs.server = {
|
||||
enable = true;
|
||||
# fixed rpc.statd port; for firewall
|
||||
lockdPort = 4001;
|
||||
mountdPort = 4002;
|
||||
statdPort = 4000;
|
||||
extraNfsdConfig = '''';
|
||||
exports = ''
|
||||
/export/share *(rw,sync,no_subtree_check,all_squash,insecure,anonuid=1000,anongid=100)
|
||||
'';
|
||||
};
|
||||
users.users.tulg = {
|
||||
createHome = false;
|
||||
shell = "/run/current-system/sw/bin/nologin";
|
||||
};
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
# for NFSv3; view with `rpcinfo -p`
|
||||
allowedTCPPorts = [111 2049 4000 4001 4002 20048 445];
|
||||
allowedUDPPorts = [111 2049 4000 4001 4002 20048];
|
||||
};
|
||||
services.samba = {
|
||||
enable = true;
|
||||
|
||||
shares.share = {
|
||||
path = "/mnt/2tbhdd/smb/";
|
||||
browseable = "yes";
|
||||
writable = "yes";
|
||||
"guest ok" = "yes";
|
||||
"read only" = "no";
|
||||
"force user" = "nobody";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue