home lab init
This commit is contained in:
commit
7278922625
65 changed files with 27336 additions and 0 deletions
29
nixos/hosts/forgejo/storage.nix
Normal file
29
nixos/hosts/forgejo/storage.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
# services.nfs.client = {
|
||||
# enable = true;
|
||||
# idmapd.enable = true;
|
||||
# };
|
||||
|
||||
# environment.etc."idmapd.conf".text = ''
|
||||
# [General]
|
||||
# Domain = localdomain
|
||||
|
||||
# [Mapping]
|
||||
# Nobody-User = nobody
|
||||
# Nobody-Group = nogroup
|
||||
# '';
|
||||
|
||||
boot.supportedFilesystems = [ "nfs" ];
|
||||
|
||||
services.rpcbind.enable = true;
|
||||
|
||||
fileSystems."/srv/forgejo" = {
|
||||
device = "192.168.1.226:/volume1/data/forgejo";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noatime" "_netdev" ];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /srv/forgejo 0750 forgejo forgejo -"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue