feat(nixos): Mount second hard drive
This commit is contained in:
parent
aacc917c58
commit
8449c50d68
3 changed files with 19 additions and 1 deletions
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
17
systems/x86_64-linux/nyx/mounts.nix
Normal file
17
systems/x86_64-linux/nyx/mounts.nix
Normal 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"];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue