nixfiles/hosts/raspberry/raspberry.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

{
tree,
modulesPath,
2023-09-13 19:26:50 +01:00
config,
pkgs,
lib,
...
2023-09-13 19:26:50 +01:00
}: let
secrets = config.services.secrets.secrets;
in {
networking.firewall.enable = true;
networking.firewall.allowPing = true;
2023-09-13 19:26:50 +01:00
imports = with tree;
[
users.root
users.chaos
profiles.base
profiles.sshd
2023-09-14 19:44:27 +01:00
profiles.nginx
profiles.nginx-firewall
2023-09-13 19:26:50 +01:00
profiles.connectivity.network_manager
profiles.connectivity.bluetooth
profiles.connectivity.ios
./secrets.nix
./boot.nix
(modulesPath + "/installer/sd-card/sd-image.nix")
]
++ (with hosts.raspberry.profiles; [
external-drive
2023-09-14 19:44:27 +01:00
wireguard
cockroachdb
piped
2023-09-14 19:44:27 +01:00
auto-storage-backups
rclone
2023-09-13 19:26:50 +01:00
]);
environment.systemPackages = [
(pkgs.writeShellScriptBin "vault-login" ''
${pkgs.vault-bin}/bin/vault login -method=userpass username=raspberry password=$(cat ${secrets.vault_login_password.path})
'')
2022-01-04 12:31:29 +00:00
];
2022-01-16 11:22:44 +00:00
home-manager.users.root = {
imports = with tree; [home.base home.dev.small];
home.stateVersion = "23.05";
2022-01-16 11:22:44 +00:00
};
home-manager.users.chaos = {
imports = with tree; [home.base home.dev.small];
home.stateVersion = "23.05";
2022-01-16 11:22:44 +00:00
};
boot.supportedFilesystems = lib.mkForce ["vfat"];
2022-01-24 21:18:03 +00:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2022-01-24 16:50:53 +00:00
networking.hostName = "raspberry";
time.timeZone = "Europe/London";
sdImage.compressImage = lib.mkForce false;
system.stateVersion = "21.11";
}