2024-08-01 18:27:47 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
2023-07-06 19:32:19 +00:00
|
|
|
username = "jolheiser";
|
2024-08-01 18:27:47 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware.nix
|
|
|
|
../common/gui
|
|
|
|
];
|
2023-06-28 20:48:01 +00:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2024-08-01 18:27:47 +00:00
|
|
|
kernelParams = [
|
|
|
|
"quiet"
|
|
|
|
"splash"
|
|
|
|
];
|
2023-06-28 20:48:01 +00:00
|
|
|
loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/sda";
|
|
|
|
useOSProber = true;
|
|
|
|
enableCryptodisk = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-01 18:27:47 +00:00
|
|
|
boot.initrd.secrets = {
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
};
|
2023-06-28 20:48:01 +00:00
|
|
|
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
"luks-1f9bde68-9c4c-423c-a95f-17aa170dd2b4".keyFile = "/crypto_keyfile.bin";
|
|
|
|
"luks-a2ca1842-1ce0-437e-ba5e-8864a41e81cb" = {
|
|
|
|
device = "/dev/disk/by-uuid/a2ca1842-1ce0-437e-ba5e-8864a41e81cb";
|
|
|
|
keyFile = "/crypto_keyfile.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-01 18:27:47 +00:00
|
|
|
hardware = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
};
|
2023-06-28 20:48:01 +00:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "matcha";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
blueman.enable = true;
|
|
|
|
openssh.enable = true;
|
|
|
|
pcscd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
|
|
|
users.users."${username}" = {
|
2024-08-01 18:27:47 +00:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"docker"
|
|
|
|
"storage"
|
|
|
|
];
|
2023-06-28 20:48:01 +00:00
|
|
|
isNormalUser = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|