add nix config in home/modules/nix.nix when not nixos

This commit is contained in:
Ulic-youthlic 2025-01-08 16:24:29 +08:00
parent b2330c7a1d
commit 4a5d46559b
3 changed files with 72 additions and 1 deletions

View file

@ -1 +1,17 @@
{ ... }: { }
{ lib, ... }:
{
imports = [
./nix.nix
];
options = {
youthlic.nixos.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = ''
whether the os is nixos
'';
};
};
}