diff options
| author | ene <ene@sils.li> | 2023-02-05 08:58:11 +0100 |
|---|---|---|
| committer | ene <ene@sils.li> | 2023-02-05 09:02:27 +0100 |
| commit | cb69f4ae60e2d94039a7bb0b5caa566a9d288686 (patch) | |
| tree | a428bba3e57539142ac96eeeabbe57af2418055f /system/fileSystemLayouts.nix | |
| parent | Flake: Changed the configuration to a flake (diff) | |
| download | nixos-server-cb69f4ae60e2d94039a7bb0b5caa566a9d288686.zip | |
Fix: correct host name and convenience changes
We used the domain name instead of the host name, which obviously
doesn't work for multiple host. In addition to that I changed some
directory to make importing easier and enabled the "nix-command" and
"flakes" experimental options, to make the `nix flake check` command
usable.
Refs: #15
Diffstat (limited to 'system/fileSystemLayouts.nix')
| -rw-r--r-- | system/fileSystemLayouts.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/system/fileSystemLayouts.nix b/system/fileSystemLayouts.nix deleted file mode 100644 index 9d03a05..0000000 --- a/system/fileSystemLayouts.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - modulesPath, - config, - lib, - ... -}: -with lib; let - cfg = config.system.fileSystemLayouts; -in { - options.system.fileSystemLayouts = { - mainDisk = mkOption { - type = lib.types.path; - example = literalExpression "/dev/disk/by-uuid/0442cb6d-f13a-4635-b487-fa76189774c5"; - description = lib.mdDoc "Path to the main disk"; - }; - }; - config = { - fileSystems = { - "/" = { - device = "tmpfs"; - fsType = "tmpfs"; - options = ["defaults" "size=2G" "mode=755"]; - }; - "/nix" = { - device = cfg.mainDisk; - fsType = "btrfs"; - options = ["subvol=nix" "compress-force=zstd"]; - }; - "/srv" = { - device = cfg.mainDisk; - fsType = "btrfs"; - options = ["subvol=storage" "compress-force=zstd"]; - }; - "/boot" = { - device = cfg.mainDisk; - options = ["subvol=boot" "compress-force=zstd"]; - }; - - "/etc/nixos" = { - device = "/srv/nix-config"; - options = ["bind"]; - }; - }; - }; -} |
