2024-04-21 16:04:30 +01:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
|
|
|
|
|
|
networking.hostName = "be";
|
|
|
|
|
networking.domain = "lt.ts.hillion.co.uk";
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2024-04-27 12:45:03 +01:00
|
|
|
|
custom.defaults = true;
|
|
|
|
|
|
2024-04-21 16:04:30 +01:00
|
|
|
|
## Impermanence
|
|
|
|
|
custom.impermanence = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userExtraFiles.jake = [
|
|
|
|
|
".ssh/id_ecdsa_sk_keys"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2024-07-17 17:07:09 +01:00
|
|
|
|
## WiFi
|
|
|
|
|
age.secrets."wifi/be.lt.ts.hillion.co.uk".file = ../../secrets/wifi/be.lt.ts.hillion.co.uk.age;
|
|
|
|
|
networking.wireless = {
|
|
|
|
|
enable = true;
|
|
|
|
|
environmentFile = config.age.secrets."wifi/be.lt.ts.hillion.co.uk".path;
|
|
|
|
|
|
|
|
|
|
networks = {
|
|
|
|
|
"Hillion WPA3 Network".psk = "@HILLION_WPA3_NETWORK_PSK@";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-21 16:04:30 +01:00
|
|
|
|
## Desktop
|
|
|
|
|
custom.users.jake.password = true;
|
|
|
|
|
custom.desktop.awesome.enable = true;
|
|
|
|
|
|
|
|
|
|
## Tailscale
|
|
|
|
|
age.secrets."tailscale/be.lt.ts.hillion.co.uk".file = ../../secrets/tailscale/be.lt.ts.hillion.co.uk.age;
|
|
|
|
|
services.tailscale = {
|
|
|
|
|
enable = true;
|
|
|
|
|
authKeyFile = config.age.secrets."tailscale/be.lt.ts.hillion.co.uk".path;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = lib.mkForce true;
|
|
|
|
|
|
|
|
|
|
## Enable btrfs compression
|
|
|
|
|
fileSystems."/data".options = [ "compress=zstd" ];
|
|
|
|
|
fileSystems."/nix".options = [ "compress=zstd" ];
|
|
|
|
|
};
|
|
|
|
|
}
|