fixing filesystems and stuff

This commit is contained in:
Matt Nish-Lapidus 2025-03-11 12:57:34 -04:00
parent bd894e5d3e
commit 33904e0181
6 changed files with 24 additions and 6 deletions

6
flake.lock generated
View file

@ -70,11 +70,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1741692101,
"narHash": "sha256-2oLcNkpB39KELhEUMtSxUWr+OLIsYWUsyStMz4Mft4M=",
"lastModified": 1741710368,
"narHash": "sha256-P9Qt8QQC6cFssiIvNEmj8BabRZS7EWMqCrA3oNj70x4=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "04892169ec614a3ddeb1ca4a8e6a86e9d410d30c",
"rev": "2695d53827b4200a195f932a5beb47fe5f9e3213",
"type": "github"
},
"original": {

View file

@ -16,7 +16,8 @@
sops-config
niri
kanata
filesystems
filesystems-filez
filesystems-media-server
sound
];

View file

@ -4,7 +4,7 @@
imports = with nix-config.nixosModules; [
./hardware-configuration.nix
sops-config
filesystems
filesystems-filez
];
nixpkgs = {

View file

@ -1,4 +1,4 @@
directory: /mount/filez/media/Music
directory: /mnt/filez/media/Music
library: ~/.config/beets/library.db
asciify_paths: yes
import:

View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
fileSystems =
let
automount-opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,noperm,uid=1000";
# filez-opts = automount-opts + ",credentials=/etc/nixos/filez-secrets";
media-server-opts = automount-opts + ",credentials=/etc/nixos/media-server-secrets";
in {
"/mnt/filez/media" = {
device = "//media-server/import";
fsType = "smb3";
options = [ "${media-server-opts}" ];
};
};
}