add test-kvm sops key

This commit is contained in:
2025-07-24 10:18:09 +02:00
parent 484999d2b2
commit d0a1a4204d
3 changed files with 13 additions and 25 deletions

12
flake.lock generated
View File

@@ -23,17 +23,17 @@
"mysecrets": { "mysecrets": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1753261965, "lastModified": 1753141577,
"narHash": "sha256-KaKG3Vd7xpfQKAslnYPWCmqyoZTeefRDLqwSzD18nXQ=", "narHash": "sha256-MNbm7KCEqML5l72GppVoxXX03UtVGIzUsgaW+A+FBDQ=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "341a2a1a75af6613018404dd0059d9c6d3fcc4a1", "rev": "c1edf4983cba959f93daa9c7ef0c1acbd958c755",
"revCount": 3, "revCount": 1,
"type": "git", "type": "git",
"url": "file:///root/git/nixos-secrets" "url": "file:///home/beastie/nixos-secrets"
}, },
"original": { "original": {
"type": "git", "type": "git",
"url": "file:///root/git/nixos-secrets" "url": "file:///home/beastie/nixos-secrets"
} }
}, },
"nixpkgs": { "nixpkgs": {

View File

@@ -15,7 +15,7 @@
}; };
mysecrets = { mysecrets = {
url = "git+file:///root/git/nixos-secrets"; url = "git+file:///home/beastie/nixos-secrets";
flake = false; flake = false;
}; };
}; };

View File

@@ -1,28 +1,16 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ { config, lib, pkgs, modulesPath, ... }:
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";