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.interfaces.enp8s0.useDHCP = lib.mkDefault true;
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";
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View file

@ -22,8 +22,4 @@ in {
source = link "${dots}/mako";
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 = {
isNormalUser = true;
description = "Tulga";
@ -10,6 +11,7 @@
"wheel"
"libvirtd"
"kvm"
"media"
];
};
users.users."root".openssh.authorizedKeys.keys = [

View file

@ -1,7 +1,7 @@
{
fileSystems."/export/share" = {
device = "/mnt/2tbhdd";
fsType = "nfs";
fsType = "none";
options = ["bind"];
};
services.nfs.server = {
@ -12,13 +12,9 @@
statdPort = 4000;
extraNfsdConfig = '''';
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 = {
enable = true;
# for NFSv3; view with `rpcinfo -p`
@ -29,12 +25,11 @@
enable = true;
shares.share = {
path = "/mnt/2tbhdd/smb/";
path = "/mnt/2tbhdd/nfs";
browseable = "yes";
writable = "yes";
"guest ok" = "yes";
"read only" = "no";
"force user" = "nobody";
};
};
}