fixed disko configuration
This commit is contained in:
31
modules/hosts/server02/_disk-config.nix
Normal file
31
modules/hosts/server02/_disk-config.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{lib, ...}: {
|
||||
disko.devices = {
|
||||
disk.sda = {
|
||||
device = "/dev/sda";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "1G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
...
|
||||
}: {
|
||||
flake.nixosConfigurations.server02 = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = with self.nixosModules;
|
||||
[
|
||||
server02Configuration
|
||||
@@ -12,7 +13,10 @@
|
||||
++ (with inputs.nix-config.nixosModules; [
|
||||
nvim
|
||||
git
|
||||
zsh
|
||||
]);
|
||||
# zsh
|
||||
])
|
||||
++ [
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
networking = {
|
||||
hostName = "server02";
|
||||
};
|
||||
imports = [./_hardware-configuration.nix];
|
||||
imports = [
|
||||
# ./_hardware-configuration.nix
|
||||
./_disk-config.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user