init by ai
This commit is contained in:
53
hosts/server/default.nix
Normal file
53
hosts/server/default.nix
Normal file
@@ -0,0 +1,53 @@
|
||||
{ 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" ];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user