From 390eb9c312762a905d61dcd0e77bab864fa6b516 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Mon, 30 Dec 2024 17:43:49 +0000
Subject: [PATCH] Move more things to the common host configuration

---
 nix/hosts/common/default.nix     | 6 +++++-
 nix/hosts/t490/configuration.nix | 6 ------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/nix/hosts/common/default.nix b/nix/hosts/common/default.nix
index 134ae97d..5a331654 100644
--- a/nix/hosts/common/default.nix
+++ b/nix/hosts/common/default.nix
@@ -64,7 +64,11 @@
   };
 
   nixpkgs = {
-    config.allowUnfree = true;
+    config = {
+      allowUnfree = true;
+
+      permittedInsecurePackages = [ "electron-27.3.11" ];
+    };
 
     overlays = [
       outputs.overlays.additions
diff --git a/nix/hosts/t490/configuration.nix b/nix/hosts/t490/configuration.nix
index 3c228b40..abb8c268 100644
--- a/nix/hosts/t490/configuration.nix
+++ b/nix/hosts/t490/configuration.nix
@@ -10,12 +10,6 @@
     ./hardware-configuration.nix
   ];
 
-  nixpkgs = {
-    config = {
-      permittedInsecurePackages = [ "electron-27.3.11" ];
-    };
-  };
-
   nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
 
   boot = {