Commit Graph

11 Commits

Author SHA1 Message Date
f282aa2066
config: make platforms as a list for users and images
The `images` output attribute is now similar to packages as an attribute
set of packages with their platforms as the first level.
2023-07-30 07:11:53 +08:00
305c54996f
lib/images: change mkUser to mkHome 2023-07-24 15:22:19 +08:00
f8f3f6990b
lib/images: refactor unneeded code 2023-07-16 15:31:19 +08:00
2e0a35a6cd
lib/images: add pkgs attribute for mkUser
The nixpkgs is now assumed from the outside. This allows for the config
to have more control with the nixpkgs to be imported with the
home-manager configuration.
2023-07-14 20:01:30 +08:00
92a2f81a2b
lib/private: replace nixpkgs-channel to pkgs
The nixpkgs import should be easier to control from the flake
definition.
2023-07-14 13:19:09 +08:00
d524444ae0
modules: manually import the modules
This allows for an easier separation of the private modules compared to
the old `importModules` function. It is also easier to use.
2023-07-14 13:14:14 +08:00
a91a9fe110
config: improve home-manager user creation
Now with configurable home-manager channel! Also, I've improved some
usage of the metadata to be used from `users.toml`.
2023-06-29 13:50:26 +08:00
03ca6722e9
chore: reformat codebase 2023-06-22 11:12:43 +08:00
9ef86934ea
lib/images: make system attribute as a requirement 2023-06-22 11:11:14 +08:00
241e2080f2
config: make configurable nixpkgs channel for images
Now we can finally easily declare the nixpkgs channel for individual
images. This is nice once I've expanded the images for other purposes
such as physical hosts (for homelabbing).

Unfortunately, this is where I realized that stable channels are not
exactly "Debian-stable" and the best way to handle security is to have
an update cadence that is relatively quick.
2023-06-22 11:01:41 +08:00
f033756d6f
config: modularize image creation functions
Additionally, I have also made a declarative version of the project
cluster with a neat little file at `images.toml`. This is way better for
individually referring to hosts from the host directory compared to the
old way.
2023-06-20 19:57:00 +08:00