got the allowed unfree and insecure for electron working
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -4,6 +4,8 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
||||||
|
|
||||||
|
|
||||||
firefox.url = "github:nix-community/flake-firefox-nightly";
|
firefox.url = "github:nix-community/flake-firefox-nightly";
|
||||||
|
|
||||||
|
|
||||||
@@ -33,6 +35,15 @@
|
|||||||
workDir = "/home/me/work";
|
workDir = "/home/me/work";
|
||||||
secretsDir = "/home/me/.mysecrets";
|
secretsDir = "/home/me/.mysecrets";
|
||||||
persistentDir = "/home/me/work/app-data";
|
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
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = rec {
|
nixosConfigurations = rec {
|
||||||
|
|||||||
@@ -68,11 +68,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"electron-24.8.6"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user