nixos-config/hosts/lift/configuration.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

2024-12-22 23:49:58 +01:00
{ pkgs, ... }:
2024-03-08 22:46:38 +01:00
{
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = false;
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Enable grub cryptodisk
boot.loader.grub.enableCryptodisk = true;
boot.initrd.luks.devices."luks-efc0285c-812e-4946-936b-37e737fb72eb".keyFile = "/crypto_keyfile.bin";
networking.hostName = "lift";
networking.networkmanager.enable = true;
2024-06-10 19:38:56 +02:00
systemd.network.wait-online.enable = false;
boot.initrd.systemd.network.wait-online.enable = false;
2024-03-08 22:46:38 +01:00
2024-03-09 22:37:11 +01:00
2024-03-08 22:46:38 +01:00
# bluetooth
hardware.bluetooth.enable = true;
environment.systemPackages = with pkgs; [
avrdude
cryptsetup
ffmpeg
fzf
gammastep
glib
gnupg
ispell
keychain
2024-11-16 19:11:15 +01:00
hugo
2024-03-08 22:46:38 +01:00
mosquitto
mypy
sqlite
];
2024-03-08 22:50:50 +01:00
services.pcscd.enable = true;
services.passSecretService.enable = true;
2024-11-13 20:00:16 +01:00
2024-03-08 22:50:50 +01:00
services.blueman.enable = true;
2024-03-08 22:46:38 +01:00
2024-09-11 21:30:18 +02:00
networking.nftables = {
2024-03-08 22:50:50 +01:00
enable = true;
2024-03-08 22:46:38 +01:00
};
2024-09-11 21:30:18 +02:00
networking.firewall.trustedInterfaces = [ "incusbr0" ];
2024-03-08 22:46:38 +01:00
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
virtualisation = {
2025-01-12 18:35:31 +01:00
incus.enable = true;
2024-10-19 22:52:46 +02:00
podman.enable = true;
2024-03-08 22:46:38 +01:00
};
}