Auto-commit: 2026-01-05 06:50:23
This commit is contained in:
20
home/desktop/default.nix
Normal file
20
home/desktop/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
b = builtins;
|
||||||
|
|
||||||
|
module_files =
|
||||||
|
b.readDir ./. |>
|
||||||
|
lib.filterAttrs (name: type:
|
||||||
|
( (lib.strings.hasSuffix ".nix" name
|
||||||
|
&& name != "default.nix"
|
||||||
|
&& type == "regular" )
|
||||||
|
|| ( type == "directory"
|
||||||
|
&& b.pathExists ./${name}/default.nix))
|
||||||
|
) |>
|
||||||
|
b.attrNames |>
|
||||||
|
b.map (f: ./${f});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = module_files;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user