summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-17 12:13:37 -0400
committerseth <[email protected]>2024-10-17 12:13:37 -0400
commitb5e262b160a132d4d7dafe5bf3bb20298b8afb11 (patch)
treef60f3e01ad648ff51772d7e980ca738ce2c64b41 /flake.nix
parentac8a610195ad7c086c4ed1e9da24b0485f72ec1e (diff)
home/riff: init module
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8d078c3..de9dd91 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,6 +24,18 @@
forAllSystems = lib.genAttrs systems;
forTier1Systems = lib.genAttrs tier1Systems;
nixpkgsFor = nixpkgs.legacyPackages;
+
+ mkModule =
+ {
+ name,
+ type,
+ imports,
+ }:
+ {
+ __file = "${self.outPath}/flake.nix#${type}Modules.${name}";
+ inherit imports;
+ };
+
in
{
checks = forTier1Systems (
@@ -53,6 +65,14 @@
pkgs' // { default = pkgs'.treefetch or pkgs.emptyFile; }
);
+ homeModules = {
+ riff = mkModule {
+ name = "riff";
+ type = "home";
+ imports = [ ./modules/home/riff.nix ];
+ };
+ };
+
formatter = forTier1Systems (system: nixpkgsFor.${system}.nixfmt-rfc-style);
templates =