initial attempt at nfs

This commit is contained in:
Chris Kruining 2025-07-09 23:05:08 +02:00
parent ee4d1eb158
commit 0fa527717e
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
11 changed files with 73 additions and 38 deletions

View file

@ -1,15 +1,24 @@
{ config, ... }:
{
fileSystems."/home/chris/games" = {
device = "/dev/disk/by-label/games";
fsType = "ext4";
fileSystems = {
"/home/chris/games" = {
device = "/dev/disk/by-label/games";
fsType = "ext4";
};
"/home/chris/data" = {
device = "/dev/disk/by-label/Data";
fsType = "ntfs-3g";
options = [ "rw" "uid=chris" ];
};
"/home/chris/media" = {
device = "ulmo:/";
fsType = "nfs";
};
};
fileSystems."/home/chris/data" = {
device = "/dev/disk/by-label/Data";
fsType = "ntfs-3g";
options = [ "rw" "uid=chris" ];
};
boot.supportedFilesystems = [ "nfs" ];
modules = {
system.audio.enable = true;

View file

@ -1,7 +1,5 @@
{ config, ... }:
{
imports = [ ./hardware.nix ];
config = {
fileSystems."/var/media" = {
device = "/dev/disk/by-label/data";
@ -9,16 +7,15 @@
};
modules = {
networking.ssh.enable = true;
networking = {
ssh.enable = true;
nfs.enable = true;
};
services = {
auth.enable = true;
media.enable = true;
nextcloud.enable = true;
games = {
# minecraft.enable = true;
};
};
root = {

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, modulesPath, ... }:
let
inherit (lib.modules) mkDefault;
in