adding volume to server
This commit is contained in:
parent
8dbeb9f995
commit
6e1918f5b2
2 changed files with 12 additions and 17 deletions
|
@ -35,6 +35,18 @@
|
||||||
channel.enable = false; # remove nix-channel related tools & configs, we use flakes instead.
|
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 = {
|
sops = {
|
||||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue