From 6e1918f5b2bc6174b9d5af36fe1ec10f51251fdb Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Tue, 15 Apr 2025 13:45:01 -0400 Subject: [PATCH] adding volume to server --- hosts/emenel-services/configuration.nix | 12 ++++++++++++ hosts/emenel-services/disko-config.nix | 17 ----------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hosts/emenel-services/configuration.nix b/hosts/emenel-services/configuration.nix index 32d88a3..f61c76c 100644 --- a/hosts/emenel-services/configuration.nix +++ b/hosts/emenel-services/configuration.nix @@ -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; diff --git a/hosts/emenel-services/disko-config.nix b/hosts/emenel-services/disko-config.nix index 67ea226..29c6446 100644 --- a/hosts/emenel-services/disko-config.nix +++ b/hosts/emenel-services/disko-config.nix @@ -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"; - }; - }; - }; - }; - }; }; }; }