From 44a5bd24a38192281b08f668d4398e6c33b25b41 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Fri, 10 Jan 2025 16:48:16 +0100 Subject: [PATCH] feat: add opentofu Signed-off-by: Lander Van den Bulcke --- flake.nix | 43 ++++++++++++++++++++++------------------- hosts/wodan/default.nix | 16 ++++++++++----- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/flake.nix b/flake.nix index c7f2727..773fe88 100644 --- a/flake.nix +++ b/flake.nix @@ -21,26 +21,29 @@ nixvim.url = "git+https://codeberg.org/landervdb/nixvim.git"; }; - outputs = { - self, - nixpkgs, - ... - } @ inputs: let - inherit (self) outputs; - in { - nixosConfigurations = { - wodan = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs outputs;}; - modules = [ - ./hosts/wodan - ]; - }; - widar = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs outputs;}; - modules = [ - ./hosts/widar - ]; + outputs = + { + self, + nixpkgs, + ... + }@inputs: + let + inherit (self) outputs; + in + { + nixosConfigurations = { + wodan = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs outputs; }; + modules = [ + ./hosts/wodan + ]; + }; + widar = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs outputs; }; + modules = [ + ./hosts/widar + ]; + }; }; }; - }; } diff --git a/hosts/wodan/default.nix b/hosts/wodan/default.nix index 23f5411..412347f 100644 --- a/hosts/wodan/default.nix +++ b/hosts/wodan/default.nix @@ -1,4 +1,5 @@ -{pkgs, ...}: { +{ pkgs, ... }: +{ imports = [ ./hardware-configuration.nix @@ -22,7 +23,8 @@ efi.canTouchEfiVariables = true; }; - initrd.luks.devices."luks-ed2282ac-fd73-4d82-9224-b7596b5b7cac".device = "/dev/disk/by-uuid/ed2282ac-fd73-4d82-9224-b7596b5b7cac"; + initrd.luks.devices."luks-ed2282ac-fd73-4d82-9224-b7596b5b7cac".device = + "/dev/disk/by-uuid/ed2282ac-fd73-4d82-9224-b7596b5b7cac"; }; services.xserver.enable = true; @@ -46,24 +48,28 @@ nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ - (firefox.override {extraNativeMessagingHosts = [passff-host];}) + (firefox.override { extraNativeMessagingHosts = [ passff-host ]; }) vim wget git texliveFull terraform + opentofu tf-summarize awscli2 libreoffice x32edit ]; - nix.settings.experimental-features = ["nix-command" "flakes"]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; services.tailscale.enable = true; services.printing.enable = true; - services.printing.drivers = [pkgs.brlaser]; + services.printing.drivers = [ pkgs.brlaser ]; system.stateVersion = "24.05"; }