From d0a1a4204d4a08f17c6627a7a73c5477b82a8802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Thu, 24 Jul 2025 10:18:09 +0200 Subject: [PATCH] add test-kvm sops key --- flake.lock | 12 ++++++------ flake.nix | 2 +- hosts/generic/hardware-configuration.nix | 24 ++++++------------------ 3 files changed, 13 insertions(+), 25 deletions(-) diff --git a/flake.lock b/flake.lock index db550b1..4a60227 100644 --- a/flake.lock +++ b/flake.lock @@ -23,17 +23,17 @@ "mysecrets": { "flake": false, "locked": { - "lastModified": 1753261965, - "narHash": "sha256-KaKG3Vd7xpfQKAslnYPWCmqyoZTeefRDLqwSzD18nXQ=", + "lastModified": 1753141577, + "narHash": "sha256-MNbm7KCEqML5l72GppVoxXX03UtVGIzUsgaW+A+FBDQ=", "ref": "refs/heads/main", - "rev": "341a2a1a75af6613018404dd0059d9c6d3fcc4a1", - "revCount": 3, + "rev": "c1edf4983cba959f93daa9c7ef0c1acbd958c755", + "revCount": 1, "type": "git", - "url": "file:///root/git/nixos-secrets" + "url": "file:///home/beastie/nixos-secrets" }, "original": { "type": "git", - "url": "file:///root/git/nixos-secrets" + "url": "file:///home/beastie/nixos-secrets" } }, "nixpkgs": { diff --git a/flake.nix b/flake.nix index ee74500..12f55f1 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ }; mysecrets = { - url = "git+file:///root/git/nixos-secrets"; + url = "git+file:///home/beastie/nixos-secrets"; flake = false; }; }; diff --git a/hosts/generic/hardware-configuration.nix b/hosts/generic/hardware-configuration.nix index 48c6058..85f3eaf 100644 --- a/hosts/generic/hardware-configuration.nix +++ b/hosts/generic/hardware-configuration.nix @@ -1,28 +1,16 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ - config, - lib, - pkgs, - modulesPath, - ... -}: +{ config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ - "ahci" - "xhci_pci" - "virtio_pci" - "sr_mod" - "virtio_blk" - ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";