54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ config, lib, pkgs, disko, sops-nix, ... }:
|
|
|
|
{
|
|
imports = [
|
|
disko.nixosModules.disko
|
|
];
|
|
|
|
# ============================================
|
|
# Server-Specific Configuration
|
|
# ============================================
|
|
|
|
networking.hostName = "server";
|
|
networking.domain = "";
|
|
|
|
# Disko: Server disk layout (example: mirror for RAID)
|
|
disko.devices = {
|
|
disk.main = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
# Bootloader
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Minimal development on servers
|
|
custom.development.enable = true;
|
|
custom.development.languages = [ "python" ];
|
|
|
|
}
|