fixing filesystems and stuff
This commit is contained in:
parent
bd894e5d3e
commit
33904e0181
6 changed files with 24 additions and 6 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -70,11 +70,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741692101,
|
"lastModified": 1741710368,
|
||||||
"narHash": "sha256-2oLcNkpB39KELhEUMtSxUWr+OLIsYWUsyStMz4Mft4M=",
|
"narHash": "sha256-P9Qt8QQC6cFssiIvNEmj8BabRZS7EWMqCrA3oNj70x4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "04892169ec614a3ddeb1ca4a8e6a86e9d410d30c",
|
"rev": "2695d53827b4200a195f932a5beb47fe5f9e3213",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
sops-config
|
sops-config
|
||||||
niri
|
niri
|
||||||
kanata
|
kanata
|
||||||
filesystems
|
filesystems-filez
|
||||||
|
filesystems-media-server
|
||||||
sound
|
sound
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
imports = with nix-config.nixosModules; [
|
imports = with nix-config.nixosModules; [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
sops-config
|
sops-config
|
||||||
filesystems
|
filesystems-filez
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
directory: /mount/filez/media/Music
|
directory: /mnt/filez/media/Music
|
||||||
library: ~/.config/beets/library.db
|
library: ~/.config/beets/library.db
|
||||||
asciify_paths: yes
|
asciify_paths: yes
|
||||||
import:
|
import:
|
||||||
|
|
17
modules/system/filesystems-media-server.nix
Normal file
17
modules/system/filesystems-media-server.nix
Normal 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}" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue