initial attempt at nfs
This commit is contained in:
parent
ee4d1eb158
commit
0fa527717e
11 changed files with 73 additions and 38 deletions
|
@ -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;
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{ config, lib, modulesPath, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkDefault;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue