- Add .gitignore for common languages, tools, and OS/editor artifacts - Configure .gitattributes for Git LFS (fonts, images, archives, ISOs) - Add README with repo description - Add flake.nix defining inputs and outputs for NixOS, Home Manager, and related modules - Introduce home-manager configs: - Base home.nix with packages, services, and programs - Hyprland WM configuration (waybar, fuzzel, keybindings, theming) - Vim (nixvim) setup with LSP and plugins - Zsh setup with aliases, Oh My Zsh, clipboard helpers - Systemd user services (e.g., librespot) - Add scripts (GPU monitor, RAM build helper, install automation) - Add host configurations: - Nixbook (Apple laptop) with hardware, disko, and install script - Nixstation (desktop) with firewall, virtualization, Btrfs scrub timer - Nixtest (test VM) with QEMU + Alpine-based install test harness - Common modules (network, NVIDIA, rclone, screen, keychron, users) - Include statix config for linting
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
disko.devices = {
|
|
disk.main = {
|
|
type = "disk";
|
|
device = "/dev/nvme0n1";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
esp = {
|
|
size = "512M";
|
|
start = "1M";
|
|
type = "EF00";
|
|
label = "EFI";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
swap = {
|
|
size = "16G";
|
|
type = "8200";
|
|
label = "Swap";
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = false;
|
|
};
|
|
};
|
|
|
|
root = {
|
|
type = "8300";
|
|
label = "NixOS";
|
|
size = "870G";
|
|
content = {
|
|
type = "btrfs";
|
|
mountpoint = "/";
|
|
subvolumes = {
|
|
"@root" = {
|
|
mountpoint = "/";
|
|
};
|
|
"@nix" = {
|
|
mountpoint = "/nix";
|
|
};
|
|
"@home" = {
|
|
mountpoint = "/home";
|
|
};
|
|
"@log" = {
|
|
mountpoint = "/var/log";
|
|
};
|
|
};
|
|
extraArgs = [
|
|
"-L"
|
|
"nixos-root"
|
|
];
|
|
mountOptions = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
];
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|