summaryrefslogtreecommitdiffstats
path: root/build.nix
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2018-10-23 20:59:12 -0700
committerCole Mickens <cole.mickens@gmail.com>2018-10-23 20:59:12 -0700
commit2b8831f55d86e822556f45a9b450baecf9e4fa11 (patch)
tree42e39b4d711cfd1871dbeaacb1af406c6256578c /build.nix
parenta7ff2b8cb22a806ddf35928af4333ee991083fef (diff)
all working except waybar and redshift-wayland
Diffstat (limited to 'build.nix')
-rw-r--r--build.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/build.nix b/build.nix
new file mode 100644
index 0000000..133995a
--- /dev/null
+++ b/build.nix
@@ -0,0 +1,18 @@
+let
+ # import nixos-unstable
+ # this is for visibility so you can see what versions of nixpkgs are prebuilt
+
+ #nixpkgs = (import ./nixpkgs); # TODO: remove this when nixos-unstable advances and has `sway-beta`
+
+ nixpkgs =
+ if builtins.pathExists /etc/nixpkgs
+ then /etc/nixpkgs
+ else (import ./nixpkgs);
+
+ pkgs = import nixpkgs {
+ overlays = [ (import ./default.nix) ];
+ };
+
+in
+ with pkgs; [ swaypkgs ]
+