init by ai

This commit is contained in:
2026-04-07 02:34:03 +02:00
commit 0cec50d607
23 changed files with 2803 additions and 0 deletions

57
hosts/laptop/default.nix Normal file
View File

@@ -0,0 +1,57 @@
{ config, lib, pkgs, disko, sops-nix, ... }:
{
imports = [
disko.nixosModules.disko
];
# ============================================
# Machine-Specific Configuration
# ============================================
networking.hostName = "laptop";
networking.domain = "";
# Disko: Auto-partitioning configuration
# Customize for your disk layout (example: single SSD)
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/sda"; # Change to your disk
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;
# Hardware: auto-detect
hardware.enableAllFirmware = true;
# Enable features specific to development
custom.development.enable = true;
custom.development.languages = [ "rust" "python" "nodejs" ];
}