summaryrefslogtreecommitdiff
path: root/parts/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-21 18:11:53 -0400
committerseth <[email protected]>2023-05-21 18:11:53 -0400
commitd1878f3e55371affe603459c540954c631d6462f (patch)
treecd7fbdef347569aa7ed57237d96539b1500dd774 /parts/default.nix
parent913f1bf789e4ad9d7bae13e13d318620cea6761b (diff)
feat: start using flake-parts + add nixos module
Diffstat (limited to 'parts/default.nix')
-rw-r--r--parts/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/parts/default.nix b/parts/default.nix
new file mode 100644
index 0000000..ecace0f
--- /dev/null
+++ b/parts/default.nix
@@ -0,0 +1,22 @@
+_: {
+ imports = [
+ ./deployment.nix
+ ./dev.nix
+ ./packages.nix
+ ./toolchain.nix
+ ];
+
+ systems = [
+ "x86_64-linux"
+ "x86_64-darwin"
+ "aarch64-linux"
+ "aarch64-darwin"
+ ];
+
+ perSystem = _: {
+ _module.args.src = builtins.path {
+ name = "teawiebot-src";
+ path = ../.;
+ };
+ };
+}