overlord/ nfs,smb
This commit is contained in:
parent
bf6e9e680e
commit
64d0ab2002
8 changed files with 186 additions and 3 deletions
120
config/zellij/themes/rose-pine.kdl
Normal file
120
config/zellij/themes/rose-pine.kdl
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
themes {
|
||||
rose-pine {
|
||||
text_unselected {
|
||||
base 224 222 244
|
||||
background 33 32 46
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
text_selected {
|
||||
base 224 222 244
|
||||
background 64 61 82
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
ribbon_selected {
|
||||
base 33 32 46
|
||||
background 49 116 143
|
||||
emphasis_0 246 193 119
|
||||
emphasis_1 235 188 186
|
||||
emphasis_2 196 167 231
|
||||
emphasis_3 156 207 216
|
||||
}
|
||||
ribbon_unselected {
|
||||
base 25 23 36
|
||||
background 224 222 244
|
||||
emphasis_0 246 193 119
|
||||
emphasis_1 235 188 186
|
||||
emphasis_2 196 167 231
|
||||
emphasis_3 156 207 216
|
||||
}
|
||||
table_title {
|
||||
base 49 116 143
|
||||
background 0 0 0
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
table_cell_selected {
|
||||
base 224 222 244
|
||||
background 64 61 82
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
table_cell_unselected {
|
||||
base 224 222 244
|
||||
background 33 32 46
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
list_selected {
|
||||
base 224 222 244
|
||||
background 64 61 82
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
list_unselected {
|
||||
base 224 222 244
|
||||
background 33 32 46
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 49 116 143
|
||||
emphasis_3 196 167 231
|
||||
}
|
||||
frame_selected {
|
||||
base 49 116 143
|
||||
background 0 0 0
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 156 207 216
|
||||
emphasis_2 196 167 231
|
||||
emphasis_3 0 0 0
|
||||
}
|
||||
frame_highlight {
|
||||
base 235 188 186
|
||||
background 0 0 0
|
||||
emphasis_0 235 188 186
|
||||
emphasis_1 235 188 186
|
||||
emphasis_2 235 188 186
|
||||
emphasis_3 235 188 186
|
||||
}
|
||||
exit_code_success {
|
||||
base 49 116 143
|
||||
background 0 0 0
|
||||
emphasis_0 156 207 216
|
||||
emphasis_1 33 32 46
|
||||
emphasis_2 196 167 231
|
||||
emphasis_3 49 116 143
|
||||
}
|
||||
exit_code_error {
|
||||
base 235 111 146
|
||||
background 0 0 0
|
||||
emphasis_0 246 193 119
|
||||
emphasis_1 0 0 0
|
||||
emphasis_2 0 0 0
|
||||
emphasis_3 0 0 0
|
||||
}
|
||||
multiplayer_user_colors {
|
||||
player_1 196 167 231
|
||||
player_2 49 116 143
|
||||
player_3 235 188 186
|
||||
player_4 246 193 119
|
||||
player_5 156 207 216
|
||||
player_6 235 111 146
|
||||
player_7 0 0 0
|
||||
player_8 0 0 0
|
||||
player_9 0 0 0
|
||||
player_10 0 0 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,8 +11,15 @@
|
|||
../../modules/nixos/users/tulg.nix
|
||||
../../modules/servers/common.nix
|
||||
../../modules/servers/per-host/overlord/nixarr.nix
|
||||
../../modules/servers/per-host/overlord/share.nix
|
||||
];
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
extraConfig = '' # used for less common options, intelligently combines if defined in multiple places.
|
||||
...
|
||||
'';
|
||||
};
|
||||
networking.hostName = "overlord";
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/mnt/share" = {
|
||||
device = "192.168.1.200:/mnt/hdds/Main";
|
||||
device = "192.168.1.69:/export/share";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"_netdev"
|
||||
|
|
@ -53,6 +53,7 @@
|
|||
"x-systemd.mount-timeout=10"
|
||||
"timeo=14"
|
||||
"x-systemd.idle-timeout=600"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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