CrOS/hosts/nixos/Incarceron/default.nix
2025-06-24 21:43:04 -04:00

56 lines
1.1 KiB
Nix

#################################
# #
# Incarceron - Laptop #
# NixOS running on Framework 13 #
# #
#################################
{
inputs,
lib,
pkgs,
...
}: {
imports = lib.flatten [
# Hardware
inputs.hardware.nixosModules.framework-13-7040-amd
./hardware-configuration.nix # I want to use factor if possible
# Disks
inputs.disko.nixosModules.disko
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-impermanence-disk.nix")
{
_module.args = {
disk = "/dev/nvme0n1";
withSwap = true;
swapSize = 8;
};
}
# Misc
(map lib.custom.relativeToRoot [
# Required configs
"hosts/common/core"
# Optional configs
"hosts/common/optional/keyd.nix"
])
];
hostSpec = {
hostName = "Incarceron";
persistFolder = "/persist";
};
networking = {
networkmanager.enable = true;
enableIPv6 = false;
};
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
};
};
}