nix-config/hosts/toaster/default.nix

77 lines
1.9 KiB
Nix
Raw Permalink Normal View History

2025-01-26 14:38:45 +01:00
{ pkgs, config, ... }:
2025-01-11 03:55:19 +01:00
{
2024-12-31 13:52:57 +00:00
imports = [
./amd.nix
./hardware-configuration.nix
2025-02-05 21:18:28 +01:00
./irc.nix
2025-01-03 19:06:42 +01:00
./network
2025-01-02 16:29:05 +01:00
./secure-boot.nix
2024-12-31 13:52:57 +00:00
./zfs.nix
];
2025-01-19 20:46:38 +01:00
sops.defaultSopsFile = ./secrets.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.secrets = {
"wg/zw" = {
owner = config.users.users.systemd-network.name;
};
"wg/dvb" = {
owner = config.users.users.systemd-network.name;
};
"wg/mullvad" = {
owner = config.users.users.systemd-network.name;
};
"wg/0xa-mgmt" = {
owner = config.users.users.systemd-network.name;
};
};
2024-12-31 13:52:57 +00:00
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.enableAllFirmware = true;
# update the firmware
services.fwupd.enable = true;
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
# Select internationalisation properties.
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [ "all" ];
};
2024-12-31 17:13:04 +01:00
users.users."0xa" = {
2024-12-31 13:52:57 +00:00
extraGroups = [
"wheel"
"video"
"plugdev"
"dialout"
"bluetooth"
"libvirtd"
2025-01-03 20:21:34 +01:00
"qemu-libvirtd"
2024-12-31 13:52:57 +00:00
];
group = "users";
2024-12-31 17:13:04 +01:00
home = "/home/0xa";
2024-12-31 13:52:57 +00:00
isNormalUser = true;
uid = 1000;
2025-01-26 14:38:45 +01:00
shell = pkgs.fish;
2024-12-31 13:52:57 +00:00
};
services.emacs.defaultEditor = false;
# 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).
2024-12-31 17:13:04 +01:00
system.stateVersion = "24.11"; # Did you read the comment?
2024-12-31 13:52:57 +00:00
}