mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 09:35:12 -05:00
43 lines
865 B
Nix
Executable file
43 lines
865 B
Nix
Executable file
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = true;
|
|
permittedInsecurePackages = [
|
|
"electron-unwrapped-33.0.2"
|
|
"electron-31.7.7"
|
|
"electron-27.3.11"
|
|
"electron-33.4.11"
|
|
"olm-3.2.16"
|
|
];
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes repl-flake
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
settings = {
|
|
substituters = [
|
|
];
|
|
trusted-public-keys = [
|
|
];
|
|
};
|
|
};
|
|
# Print package list
|
|
environment.etc."current-system-packages".text =
|
|
let
|
|
packages = builtins.map (p: "${p.name}") config.environment.systemPackages;
|
|
|
|
sortedUnique = builtins.sort builtins.lessThan (lib.unique packages);
|
|
|
|
formatted = builtins.concatStringsSep "\n" sortedUnique;
|
|
in
|
|
formatted;
|
|
}
|