Incorporate omarchy-nix.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
{ pkgs, profile ? "cli", ... }:
|
||||
{ pkgs, lib, profile ? "cli", ... }:
|
||||
let
|
||||
# Handle both file and directory imports for profiles
|
||||
# desktop is a directory, others are files
|
||||
profilePath =
|
||||
if builtins.pathExists ./programs/${profile}/default.nix
|
||||
then ./programs/${profile}
|
||||
else ./programs/${profile}.nix;
|
||||
in
|
||||
{
|
||||
imports = [ ./programs/${profile}.nix ];
|
||||
imports = [ profilePath ];
|
||||
|
||||
home = {
|
||||
packages = (import ./packages.nix { inherit pkgs profile; }).packages;
|
||||
|
||||
Reference in New Issue
Block a user