summaryrefslogtreecommitdiff
path: root/hosts/toaster/default.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-08-15 18:34:37 +0200
committerGrisha Shipunov2025-08-15 18:35:18 +0200
commitf35599a59a080f0e7a173e21cae3d51dc230a212 (patch)
tree1b1b9f91f754b24602d6649df80d002cbb6d11f2 /hosts/toaster/default.nix
parent963dbeb3685326d1420aadd6345db1902e8fc1f2 (diff)
Revert "retire toaster"
This reverts commit 1baa256be04a8b4e711a7d48a76197b5ffad6637.
Diffstat (limited to 'hosts/toaster/default.nix')
-rw-r--r--hosts/toaster/default.nix80
1 files changed, 80 insertions, 0 deletions
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix
new file mode 100644
index 0000000..2b8577b
--- /dev/null
+++ b/hosts/toaster/default.nix
@@ -0,0 +1,80 @@
+{ pkgs, config, ... }:
+{
+ imports = [
+ ./amd.nix
+ ./hardware-configuration.nix
+ ./irc.nix
+ ./network
+ ./secure-boot.nix
+ ./zfs.nix
+ ];
+
+ 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;
+ };
+ };
+
+ 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" ];
+ };
+
+ # support ddc brigtness control
+ hardware.i2c.enable = true;
+ boot.kernelModules = [ "i2c-dev" ];
+ environment.systemPackages = [ pkgs.ddcutil ];
+
+ users.users."0xa" = {
+ extraGroups = [
+ "wheel"
+ "video"
+ "plugdev"
+ "dialout"
+ "bluetooth"
+ "libvirtd"
+ "qemu-libvirtd"
+ "i2c"
+ ];
+ group = "users";
+ home = "/home/0xa";
+ isNormalUser = true;
+ uid = 1000;
+ shell = pkgs.zsh;
+ };
+
+ # 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. It‘s 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 = "24.11"; # Did you read the comment?
+
+}