Regenerated

This commit is contained in:
2026-03-22 17:59:09 +00:00
parent 796e2f2fcc
commit 7419e2b831
34 changed files with 24 additions and 1564 deletions
@@ -1,48 +0,0 @@
{ config, lib, pkgs, flakeRoot, ... }:
let
packagesConfPath = "${flakeRoot}/assets/system/apps/packages.conf";
raw = builtins.readFile packagesConfPath;
# Split lines safely, keep guard against splitting into characters
rawLines = lib.splitString "\n" raw;
_guard =
assert !(builtins.stringLength raw > 1 && builtins.length rawLines == builtins.stringLength raw);
true;
# Clean each line: remove CRs, remove comments, trim
cleanLine = line:
let
noCR = lib.replaceStrings [ "\r" ] [ "" ] line;
noInlineComment = lib.head (lib.splitString "#" noCR);
in
lib.strings.trim noInlineComment;
# Filter out empty lines
entries = builtins.filter (l: l != "") (map cleanLine rawLines);
# Resolve attribute path in pkgs
resolvePkg = name:
let
parts = lib.splitString "." name;
found = lib.attrByPath parts null pkgs;
in
if found == null then
throw ''
packages.nix: package not found in pkgs
Token : ${builtins.toJSON name}
packages.conf : ${packagesConfPath}
Hint : check the attribute name on search.nixos.org/packages
''
else
found;
# Final system-wide package list
packages = builtins.seq _guard (map resolvePkg entries);
in
{
nixpkgs.config = { allowUnfree = true; };
environment.systemPackages = packages;
}
@@ -1,11 +0,0 @@
{ config, pkgs, lib, inputs, ... }:
let
# Grab the Zen Browser from the flake overlay for your system
zenBrowser = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default;
in
{
environment.systemPackages = [
zenBrowser
];
}