This commit is contained in:
tulg 2026-05-09 16:00:54 +03:00
parent 64d0ab2002
commit dcf10dac05
4 changed files with 6 additions and 13 deletions

View file

@ -24,7 +24,7 @@
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
fileSystems."/mnt/2tbhdd" = { fileSystems."/mnt/2tbhdd" = {
device = "/dev/disk/by-uuid/29c2878a-6b8b-4719-addc-ed57dd647d7b"; device = "/dev/disk/by-uuid/4ec6fd72-a161-4944-8ad4-b727ea90d014";
fsType = "ext4"; fsType = "ext4";
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View file

@ -22,8 +22,4 @@ in {
source = link "${dots}/mako"; source = link "${dots}/mako";
recursive = true; recursive = true;
}; };
xdg.configFile."zellij" = {
source = link "${dots}/zellij";
recursive = true;
};
} }

View file

@ -1,4 +1,5 @@
{ {
users.groups.media.gid = 169;
users.users.tulg = { users.users.tulg = {
isNormalUser = true; isNormalUser = true;
description = "Tulga"; description = "Tulga";
@ -10,6 +11,7 @@
"wheel" "wheel"
"libvirtd" "libvirtd"
"kvm" "kvm"
"media"
]; ];
}; };
users.users."root".openssh.authorizedKeys.keys = [ users.users."root".openssh.authorizedKeys.keys = [

View file

@ -1,7 +1,7 @@
{ {
fileSystems."/export/share" = { fileSystems."/export/share" = {
device = "/mnt/2tbhdd"; device = "/mnt/2tbhdd";
fsType = "nfs"; fsType = "none";
options = ["bind"]; options = ["bind"];
}; };
services.nfs.server = { services.nfs.server = {
@ -12,13 +12,9 @@
statdPort = 4000; statdPort = 4000;
extraNfsdConfig = ''''; extraNfsdConfig = '''';
exports = '' exports = ''
/export/share *(rw,sync,no_subtree_check,all_squash,insecure,anonuid=1000,anongid=100) /export/share *(rw,sync,no_subtree_check)
''; '';
}; };
users.users.tulg = {
createHome = false;
shell = "/run/current-system/sw/bin/nologin";
};
networking.firewall = { networking.firewall = {
enable = true; enable = true;
# for NFSv3; view with `rpcinfo -p` # for NFSv3; view with `rpcinfo -p`
@ -29,12 +25,11 @@
enable = true; enable = true;
shares.share = { shares.share = {
path = "/mnt/2tbhdd/smb/"; path = "/mnt/2tbhdd/nfs";
browseable = "yes"; browseable = "yes";
writable = "yes"; writable = "yes";
"guest ok" = "yes"; "guest ok" = "yes";
"read only" = "no"; "read only" = "no";
"force user" = "nobody";
}; };
}; };
} }