summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-12-30 17:45:15 -0800
committerCaroline Larimore <caroline@larimo.re>2025-12-30 17:45:15 -0800
commit537806174f58a1ca5b5f6044772d1772b5fb2296 (patch)
tree1cc4a428348341e83920c63cfbf9b17d57e3d29e /flake.nix
parent54dbcdd211e5da854675655fea1942aae36c52f7 (diff)
feat: nixos module
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index d8a6d46..647dcc2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,16 +5,25 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
- outputs = { self, nixpkgs, ... }: let
- pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ outputs = { self, nixpkgs }@inputs: let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
in {
- devShells.x86_64-linux.default = pkgs.mkShell {
+ devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
bashInteractive
gcc
];
};
- packages.x86_64-linux.default = pkgs.callPackage ./package.nix {};
+ packages.${system} = rec {
+ k95aux = pkgs.callPackage ./package.nix {};
+ default = k95aux;
+ };
+
+ nixosModules = rec {
+ k95aux = import ./module.nix inputs;
+ default = k95aux;
+ };
};
}