Commit graph

992 commits

Author SHA1 Message Date
b63959f307
refactor(configurations): centralise home-manager config 2025-07-07 18:11:33 +08:00
b5772e4525
refactor(machine/root): centralise root drive cfg 2025-07-07 18:10:32 +08:00
fe91044c8b
refactor(nixos): move persisted ssh host keys to ssh module 2025-07-07 17:47:51 +08:00
4ff7b8e18f
feat(nixos): add user password secrets to sops
This commit adds the user password secrets to sops.
It leverages the `userListToAttrs` lib function.
2025-07-07 17:42:31 +08:00
782a4324a8
feat(lib): add userListToAttrs function 2025-07-07 17:42:31 +08:00
85f2cee212
feat(nixos): add sops module for secrets
Adds .sops.yaml file and sops module to nixos to manage secrets.
2025-07-07 17:42:31 +08:00
d7b8edd054
feat(nix): add sops-nix to flake inputs 2025-07-07 17:42:31 +08:00
5d24a11990
feat(lib): add admin user using custom lib function 2025-07-07 17:42:31 +08:00
da6fa1b9df
refactor(nix): rename lib.nix to meta.nix and add flake.root option 2025-07-07 17:42:31 +08:00
0c2b6b57d9
refactor(lib): remove references to top level lib 2025-07-07 17:42:31 +08:00
9403daff02
refactor(nix): move unfree packages module to options 2025-07-07 17:42:31 +08:00
8c2b1dfc6e
feat(nixos): move persist options to system and users modules 2025-07-07 17:42:31 +08:00
6d43b0db3b
feat(nixos): make persist options 2025-07-07 17:42:31 +08:00
4e74db3938
refactor(lib): add lib output to flake
This is needed so we can use subattributes of flake.lib
2025-07-07 17:42:31 +08:00
1dc3f4bf44
fix(nix): remove flattenAttrs
unfortunately modules don't like to be merged
2025-07-07 17:42:31 +08:00
9abcb6c85b
feat(nixos): add impermanence module for ephemeral roots 2025-07-07 17:42:31 +08:00
714c3b8940
feat(nixos): add disko module for declarative partitioning 2025-07-07 17:42:31 +08:00
06a3f024c5
feat(nixos): add gpu module for nvidia config 2025-07-07 17:42:30 +08:00
5a94f19922
feat(nix): add unfree-packages module 2025-07-07 17:42:30 +08:00
12b7a4b7e0
feat(debug): enable flake-parts debug 2025-07-07 17:42:30 +08:00
0b2f2100cc
feat(nixos): add platform module for different architectures 2025-07-07 17:42:30 +08:00
27161d6b13
refactor: rename modules/flake to flake-parts, hosts to configurations 2025-07-07 17:42:30 +08:00
f78770d4f1
feat(git): add git module, set user config 2025-07-07 17:42:30 +08:00
a71cbb544a
feat(hm): add git config to rafiq home, use forAllUsers' 2025-07-07 17:42:30 +08:00
46f631aab1
feat(shell): enable shell in home-manager module 2025-07-07 17:42:30 +08:00
0ca6436522
feat(users): add shell module, simplify users module 2025-07-07 17:42:30 +08:00
a3ed4c608d
feat(users): use forAllUsers' in nixos module 2025-07-07 17:42:30 +08:00
07413c4ac0
feat(nix): add forAllUsers' and docstrings to lib
Adds forAllUsers' function and docstrings to nix lib.
2025-07-07 17:42:30 +08:00
46cf93f69b
feat(nix): add system module, pass config to lib
This commit introduces a system module for NixOS and Home Manager,
and passes the configuration to the lib file.
2025-07-07 17:42:30 +08:00
b7358cd825
feat(hm): add sharedModules, move configurations.nix to hosts.nix 2025-07-07 17:42:30 +08:00
bd347b9889
refactor: move readme to docs dir, update nix file 2025-07-07 17:42:30 +08:00
c26c432890
feat(nixos): pass hostName to nixosSystem, move hm modules 2025-07-07 17:42:30 +08:00
f7873d54d3
refactor(nixos): simplify configurations.nix and lib
This commit refactors configurations.nix and lib/default.nix by removing the
extractConfigurations function and related code from lib/default.nix,
and moving the NixOS system building logic directly into configurations.nix.
It also changes the structure of hosts in manifest.nix to use a
hosts.nixos attribute.
2025-07-07 17:42:30 +08:00
99f984a523
refactor(users): move owner config to users config in manifest 2025-07-07 17:42:30 +08:00
51071f4107
build(flake): bump inputs 2025-07-07 17:42:30 +08:00
72f9fad9eb
feat(git): add .gitignore and pre-commit config to gitignore 2025-07-07 17:42:30 +08:00
52322afe1c
chore: remove pre-commit config symlink 2025-07-07 17:42:30 +08:00
fc477267ed
docs(readme): add acknowledgements and git links 2025-07-07 17:42:30 +08:00
95fea9184e
refactor(configurations): add default nixos module 2025-07-07 17:42:30 +08:00
aef828b713
feat(nixos): add owner config to manifest and users module 2025-07-07 17:42:30 +08:00
f670889e29
build(flake): add home-manager and example config 2025-07-07 17:42:30 +08:00
1fc8230bfc
refactor: move flake-parts modules to nix/modules/flake 2025-07-07 17:42:30 +08:00
0ea17b9fd8
refactor: rename nixos.nix to configurations.nix 2025-07-07 17:42:30 +08:00
c49beb7c57
refactor: rename hostSpec to manifest and update references 2025-07-07 17:42:30 +08:00
2dd8d0f73d
feat(readme): add structure section and update README.md 2025-07-07 17:42:30 +08:00
e884735f25
refactor: rename modules directory to nix 2025-07-07 17:42:30 +08:00
5501c39e31
feat(lib/mkSystem): add profile suppoet
This commit adds the mkSystem function to simplify nixosSystem
creation and merge profile configs.
2025-07-07 17:42:30 +08:00
90899b5d37
refactor(nixos): move nixosSystem config to lib
Moves the nixosSystem configuration logic to a library function for reuse.
2025-07-07 17:42:30 +08:00
c9636b0bfa
feat(nixos): pass flakeConfig to nixosSystem specialArgs 2025-07-07 17:42:30 +08:00
88318c2e39
feat(lib): add flattenAttrs helper 2025-07-07 17:42:30 +08:00