Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f8b7cca
init: full rewrite
yunfachi Aug 29, 2025
d1282d4
lib/modules/helpers: avoid using processModule in setDefaultModuleLoc…
yunfachi Nov 27, 2025
0d863fb
modules/denix/moduleSystems/default: add processHosts option
yunfachi Nov 30, 2025
8fcba7c
Revert "lib/modules/helpers: avoid using processModule in setDefaultM…
yunfachi Nov 30, 2025
e49102c
lib/modules/helpers: fix setDefaultModuleLocation for `path`
yunfachi Nov 30, 2025
05d385f
modules/nixDarwin: init
yunfachi Nov 30, 2025
eedb481
lib/modules/default: add configurationWithModule to genModules and ge…
yunfachi Nov 30, 2025
767125b
modules/homeManager: init
yunfachi Dec 2, 2025
d6d2a75
missingFlake: init
yunfachi Dec 3, 2025
a1af58c
modules/robotnix: init
yunfachi Dec 3, 2025
5f14a07
lib/types: fix description error in steppedInt types
yunfachi Dec 6, 2025
7509be0
lib/modules/options: remove "via option" in `coercedListOfModules`
yunfachi Dec 19, 2025
63b10a0
lib/types: add numberBetween, steppedNumber, steppedNumberBetween
yunfachi Dec 20, 2025
d0996ff
lib/options: add extraAttrs argument to options
yunfachi Dec 21, 2025
8a97630
lib/options: replace `extraArgs` with `arg`, which can be either `des…
yunfachi Dec 21, 2025
5d1ffdb
modules/homeManager: add null check to config.moduleSystem
yunfachi Dec 22, 2025
3ff9df7
lib/modules/default: fix typo in _callLib wrappers.nix
yunfachi Dec 22, 2025
86d647b
lib/modules/helpers: add path support to processModule
yunfachi Dec 23, 2025
7334550
flake: move missingFlake into separate repository
yunfachi Jan 26, 2026
fc067bc
lib/modules/options: fix lib.path.check usage
yunfachi Jan 26, 2026
066a93f
modules/denix/moduleSystems: remove TODO comment
yunfachi Jan 27, 2026
3504e7d
modules/betterHosts: format
yunfachi Jan 27, 2026
fefc463
lib/modules/genModule: move applyConfigForModuleSystem to abstractions
yunfachi Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/flake-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Nix Flake Check

on:
pull_request:
push:
branches: master
workflow_dispatch:

permissions: read-all

jobs:
nix-flake-check:
name: Nix Flake Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Check Flake
run: nix flake check

50 changes: 0 additions & 50 deletions README.md

This file was deleted.

170 changes: 170 additions & 0 deletions examples/module/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions examples/module/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
inputs = {
denix.url = "../../.";
};

outputs =
{
denix,
self,
...
}:
let
delib = denix.lib;
modules = delib.genModules {
configuration = self.denixConfiguration;
};
in
{
denixConfiguration = delib.denixConfiguration {
modules = [ ./module.nix ];
};

nixosModules.default = modules.nixos;

homeModules.default = modules.home;
};
}
32 changes: 32 additions & 0 deletions examples/module/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ delib, ... }:
{
modules."programs.module" = {
options = with delib; {
enable = boolOption true;
test = intOption 0;
asd = intOption 1;
};

myconfig.always =
{ config, ... }:
{
#programs.module.test = config.myconfig.programs.module.asd;
};

#myconfig.ifEnabled.programs.module.test = 999;

nixos.ifEnabled =
{ test, ... }:
{
#nixpkgs.hostPlatform = "x86_64-linux";
_module.args.test = 123;
myconfig.programs.module.test = test;
};
};

hosts."keka" = {
myconfig.ifDisabled = {
programs.module.enable = false;
};
};
}
Loading