feat(nixos): Mount second hard drive

This commit is contained in:
punkfairie 2025-01-10 17:19:17 -08:00
parent aacc917c58
commit 8449c50d68
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 19 additions and 1 deletions

View file

@ -18,6 +18,7 @@
"password=granola chaos lend splendid"
"uid=${toString uid}"
"gid=${toString config.users.groups."wheel".gid}"
"nofail"
];
in {
options.marleyos.mounts.babeshare.enable = mkEnableOption "babeshare";

View file

@ -1,7 +1,7 @@
{lib, ...}: let
inherit (lib.marleyos) enabled;
in {
imports = [./hardware-configuration.nix ./autorandr.nix];
imports = [./hardware-configuration.nix ./mounts.nix ./autorandr.nix];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -0,0 +1,17 @@
_: {
systemd = {
mounts = [
{
what = "/dev/disk/by-uuid/fe667d96-a62f-465a-bd91-09b83a622874";
where = "/mnt/data";
type = "ext4";
}
];
automounts = [
{
where = "/mnt/data";
wantedBy = ["multi-user.target"];
}
];
};
}