adding volume to server

This commit is contained in:
Matt Nish-Lapidus 2025-04-15 13:45:01 -04:00
parent 8dbeb9f995
commit 6e1918f5b2
2 changed files with 12 additions and 17 deletions

View file

@ -35,6 +35,18 @@
channel.enable = false; # remove nix-channel related tools & configs, we use flakes instead.
};
fileSystems = {
# "/" = {
# device = "/dev/sda";
# fsType = "ext4";
# };
"/mnt/git-storage" = {
device = "/dev/sdb";
fsType = "ext4";
};
};
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
defaultSopsFile = ./secrets.yaml;

View file

@ -32,23 +32,6 @@
};
};
};
git-storage = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/mnt/git-storage";
};
};
};
};
};
};
};
}