summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2024-05-06 13:42:55 +0200
committerHannes Schulze <haschu0103@outlook.de>2024-05-06 14:33:54 +0200
commit37d5ef75306c45ca95550f4af40d9750c5b9cb88 (patch)
tree7125c8e8445eeecb86097bc99bb2d1febfb7e2a5 /flake.nix
initial commit
yup, i definitely wrote all of this in a single commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..f344ca7
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,33 @@
+{
+ description = "A simple bar, launcher, control center, and notification daemon.";
+
+ inputs = {
+ nixpkgs = {
+ url = "github:nixos/nixpkgs/nixos-unstable";
+ };
+ flake-utils = {
+ url = "github:numtide/flake-utils";
+ };
+ };
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ foobar = (pkgs.callPackage ./nix/package.nix {});
+ in
+ {
+ packages = {
+ inherit foobar;
+ default = foobar;
+ };
+
+ devShells = {
+ algoks = pkgs.mkShell {
+ name = "foobar";
+ packages = [ pkgs.libnotify ]; # for testing the notification daemon
+ inputsFrom = foobar;
+ };
+ };
+ });
+}