From bbbc9351dc5eccae3b4a499b817acd7bf6c212c5 Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Thu, 28 Mar 2024 10:32:59 -0500 Subject: [PATCH] ADD some stuff for NFS shares on --- networking.nix | 14 ++++++++++++++ noah-home.nix | 1 + users.nix | 5 ++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/networking.nix b/networking.nix index 869fabf..9beaa2c 100644 --- a/networking.nix +++ b/networking.nix @@ -36,4 +36,18 @@ }; }; + # NFS mounts + + fileSystems = { + "/srv/shokuhou" = { + device = "192.168.1.3:/srv/shokuhou"; + fsType = "nfs"; + options = ["nfsvers=4.2" "x-system.automount" "noauto" "x-system.idle-timeout=600"]; + }; + "/srv/mentalout" = { + device = "192.168.1.3:/srv/mentalout"; + fsType = "nfs"; + options = ["nfsvers=4.2" "x-system.automount" "noauto" "x-system.idle-timeout=600"]; + }; + }; } diff --git a/noah-home.nix b/noah-home.nix index d182c3f..566e374 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -73,6 +73,7 @@ in { # GUI tools i3status + i3lock slurp grim wl-clipboard diff --git a/users.nix b/users.nix index d19c315..f8750be 100644 --- a/users.nix +++ b/users.nix @@ -16,13 +16,16 @@ users.users.noah = { isNormalUser = true; shell = pkgs.fish; - extraGroups = [ "wheel" "video" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" "video" "nas" ]; # Enable ‘sudo’ for the user. hashedPasswordFile = "/etc/nixos/noah-password"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDfjMaCPkTDKWEMLxL0iW3uhFHCpnoYDqrIZQUkdIWhj noah@packetlost.dev" "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnp/AcaPipgw4+HnqpYioG+DgheOWBYDOnVkXi42PC0R1FMc+bm4wVP8TA9DAWczaWmllqlA8N2/LSleaqp+46r980VgqmeYEem5aHJuR+Cq/Mg2Z2wcp9VT8njH72wIPIUOXAv+dnPnCe4yvoasgvhwZZCDE4BFTIImuTxrEFPg5ayvkr7b/mUg9LbxaVSjK7fk082pqlShizIKAVcgIIa0lCFSMUs1V/eLi5D11moVcxJU/QoEBh+6Qn5BVM0taPFA4Gbi+288LobQ8RcgRBXKpP03Dt+onYuZQ3KzFjd6USi/d4M+pByrWFcpBJfMXuXJLuwsSF7SfxsuqjjlDt Portable" ]; }; + + users.groups.nas.gid = 1001; + # I manage my home with home-manager # Don't store packages in ~/.nix-profile, use /etc/profiles so we can build-vm home-manager.useUserPackages = true; -- 2.51.2