|
@@ -1,31 +1,31 @@
|
|
|
{ config, pkgs, lib, ... }:
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
let
|
|
|
- user = "johron";
|
|
|
|
|
- storageRoot = "/storage";
|
|
|
|
|
|
|
+ #user = "johron";
|
|
|
|
|
+ #storageRoot = "/storage";
|
|
|
|
|
|
|
|
- folders = [
|
|
|
|
|
- "Applications"
|
|
|
|
|
- "Documents"
|
|
|
|
|
- "Downloads"
|
|
|
|
|
- "Games"
|
|
|
|
|
- "Machines"
|
|
|
|
|
- "Music"
|
|
|
|
|
- "Pictures"
|
|
|
|
|
- "Projects"
|
|
|
|
|
- "Scripts"
|
|
|
|
|
- "Videos"
|
|
|
|
|
- "Wineprefixes"
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ #folders = [
|
|
|
|
|
+ # "Applications"
|
|
|
|
|
+ # "Documents"
|
|
|
|
|
+ # "Downloads"
|
|
|
|
|
+ # "Games"
|
|
|
|
|
+ # "Machines"
|
|
|
|
|
+ # "Music"
|
|
|
|
|
+ # "Pictures"
|
|
|
|
|
+ # "Projects"
|
|
|
|
|
+ # "Scripts"
|
|
|
|
|
+ # "Videos"
|
|
|
|
|
+ # "Wineprefixes"
|
|
|
|
|
+ #];
|
|
|
|
|
|
|
|
- mkBindMount = folder: {
|
|
|
|
|
- name = "/home/${user}/${folder}";
|
|
|
|
|
- value = {
|
|
|
|
|
- device = "${storageRoot}/${folder}";
|
|
|
|
|
- options = [ "bind" "nofail" "x-systemd.automount" ];
|
|
|
|
|
- depends = [ storageRoot ];
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ #mkBindMount = folder: {
|
|
|
|
|
+ # name = "/home/${user}/${folder}";
|
|
|
|
|
+ # value = {
|
|
|
|
|
+ # device = "${storageRoot}/${folder}";
|
|
|
|
|
+ # options = [ "bind" "nofail" "x-systemd.automount" ];
|
|
|
|
|
+ # depends = [ storageRoot ];
|
|
|
|
|
+ # };
|
|
|
|
|
+ #};
|
|
|
in
|
|
in
|
|
|
{
|
|
{
|
|
|
imports = [
|
|
imports = [
|
|
@@ -46,11 +46,11 @@ in
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
- fileSystems = lib.mkMerge [
|
|
|
|
|
- (builtins.listToAttrs (map mkBindMount folders))
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ #fileSystems = lib.mkMerge [
|
|
|
|
|
+ # (builtins.listToAttrs (map mkBindMount folders))
|
|
|
|
|
+ #];
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
system.stateVersion = "25.11";
|
|
system.stateVersion = "25.11";
|
|
|
-}
|
|
|
|
|
|
|
+}
|