mirror of
https://github.com/michaelthomson0797/nixos-server.git
synced 2025-12-19 11:28:48 +00:00
initial commit
This commit is contained in:
19
hosts/patrick/configuration.nix
Normal file
19
hosts/patrick/configuration.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
meta,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./disk-config.nix
|
||||
../../modules/base.nix
|
||||
../../modules/k3s.nix
|
||||
../../modules/nfs.nix
|
||||
../../modules/longhorn.nix
|
||||
];
|
||||
|
||||
k3s = {
|
||||
init = true;
|
||||
};
|
||||
}
|
||||
33
hosts/patrick/disk-config.nix
Normal file
33
hosts/patrick/disk-config.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{...}: {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
device = "/dev/sda";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
type = "EF00";
|
||||
size = "500M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["umask=0077"];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user