From 29aa6b0207deb0b0547dd6a868879b84d26a6dc1 Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Tue, 31 Oct 2023 20:41:49 +0100 Subject: [PATCH] got the allowed unfree and insecure for electron working --- flake.nix | 11 +++++++++++ hosts/main.nix | 5 ----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index d52c45c..225227d 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,8 @@ inputs = { #nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/release-23.05"; + + firefox.url = "github:nix-community/flake-firefox-nightly"; @@ -33,6 +35,15 @@ workDir = "/home/me/work"; secretsDir = "/home/me/.mysecrets"; persistentDir = "/home/me/work/app-data"; + specialArgs = { + inherit inputs confDir workDir secretsDir persistentDir self; + pkgs = import nixpkgs { system = "x86_64-linux"; config = { + allowUnfree = true; + permittedInsecurePackages = [ + "electron-24.8.6" + ]; + }; }; + }; in { nixosConfigurations = rec { diff --git a/hosts/main.nix b/hosts/main.nix index 6d40a2f..3073705 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -68,11 +68,6 @@ }; - nixpkgs.config.permittedInsecurePackages = [ - "electron-24.8.6" - ]; - - security.polkit.enable = true; networking.firewall.enable = true; networking.firewall.allowPing = true;