From 429cb4256a818737f6abfb30d558ec565f420677 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 3 Dec 2024 19:36:21 +0530 Subject: [PATCH] fix: Update deoxys config --- nixos/deoxys/configuration.nix | 34 ++++++++++++++++++++++++++++++++-- nixos/mirai/services.nix | 3 +++ 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/nixos/deoxys/configuration.nix b/nixos/deoxys/configuration.nix index 013c13f2..cb614e58 100644 --- a/nixos/deoxys/configuration.nix +++ b/nixos/deoxys/configuration.nix @@ -15,8 +15,37 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "nixos"; # Define your hostname. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + nix = { + settings = { + auto-optimise-store = true; + extra-experimental-features = "nix-command flakes auto-allocate-uids"; + trusted-users = ["root" "servius" "fs0c131y"]; + }; + extraOptions = '' + build-users-group = nixbld + extra-nix-path = nixpkgs=flake:nixpkgs + builders-use-substitutes = true + ''; + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than +5"; + }; + package = pkgs.nixVersions.latest; + buildMachines = [ + { + hostName = "sh.darksailor.dev"; + sshUser = "fs0c131y"; + system = "x86_64-linux"; + protocol = "ssh-ng"; + supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"]; + } + ]; + distributedBuilds = true; + }; + + networking.hostName = "deoxys"; # Define your hostname. + networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -49,6 +78,7 @@ xkbVariant = ""; }; + security.sudo.wheelNeedsPassword = false; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.servius = { isNormalUser = true; diff --git a/nixos/mirai/services.nix b/nixos/mirai/services.nix index 624e1004..73151f1c 100644 --- a/nixos/mirai/services.nix +++ b/nixos/mirai/services.nix @@ -14,6 +14,9 @@ }; }; services = { + nix-serve = { + enable = true; + }; home-assistant = { enable = true; extraComponents = [