CrOS/hosts/nixos/Nyx/default.nix
TheWanderingCrow 113c63fcff printing
2025-08-18 09:13:34 -04:00

65 lines
1.3 KiB
Nix

######################
# #
# Nyx - Laptop #
# NixOS on X1 carbon #
# #
######################
{
inputs,
lib,
pkgs,
...
}: {
imports = lib.flatten [
# Hardware
inputs.hardware.nixosModules.lenovo-thinkpad-x1-6th-gen
./hardware-configuration.nix
# Disks
inputs.disko.nixosModules.disko
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix")
{
_module.args = {
disk = "/dev/sda";
withSwap = true;
swapSize = "8";
};
}
# Misc
(map lib.custom.relativeToRoot [
# Required configs
"hosts/common/core"
# Optional configs
"hosts/common/optional/audio.nix"
"hosts/common/optional/bluetooth.nix"
"hosts/common/optional/pentesting.nix"
"hosts/common/optional/gaming.nix"
"hosts/common/optional/vbox.nix"
"hosts/common/optional/keyd.nix"
"hosts/common/optional/printing.nix"
])
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hostSpec = {
hostName = "Nyx";
persistFolder = "/persist";
};
networking = {
networkmanager.enable = true;
modemmanager.enable = true;
enableIPv6 = false;
};
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
};
};
}