mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -05:00
76 lines
1.6 KiB
Nix
76 lines
1.6 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
|
|
|
|
# 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/audio.nix"
|
|
"hosts/common/optional/bluetooth.nix"
|
|
"hosts/common/optional/keyd.nix"
|
|
"hosts/common/optional/pentesting.nix"
|
|
"hosts/common/optional/docker.nix"
|
|
"hosts/common/optional/printing.nix"
|
|
"hosts/common/optional/gaming.nix"
|
|
"modules/services/mesh/client.nix"
|
|
])
|
|
];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hostSpec = {
|
|
hostName = "Incarceron";
|
|
isImpermanent = true;
|
|
persistFolder = "/persist";
|
|
};
|
|
|
|
networking = {
|
|
networkmanager = {
|
|
enable = true;
|
|
plugins = [
|
|
pkgs.networkmanager-openvpn
|
|
];
|
|
};
|
|
enableIPv6 = false;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
networkmanagerapplet
|
|
];
|
|
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
}
|