dotfiles/default.nix

21 lines
570 B
Nix
Raw Normal View History

2017-01-31 18:40:41 +01:00
{pkgs ? import <nixpkgs> {}, ...}:
2016-09-17 15:09:53 +02:00
let
2016-09-17 15:21:02 +02:00
inherit (pkgs) lib;
2016-09-17 15:09:53 +02:00
bin = pkgs.callPackage ./bin/default.nix {};
2017-01-02 20:35:34 +01:00
i3 = with_lock: compton_name: pkgs.callPackage ./i3/i3.nix {
inherit (bin) screenshot_public;
2016-09-17 15:21:02 +02:00
inherit with_lock;
2017-01-02 20:35:34 +01:00
inherit compton_name;
2016-09-17 15:21:02 +02:00
};
2017-01-02 20:31:36 +01:00
xres = dpi: pkgs.callPackage ./x/default.nix { inherit dpi; };
2016-09-17 15:21:02 +02:00
in lib.mapAttrs (k: paths:
pkgs.symlinkJoin { inherit paths; name = "dotfiles-${k}"; }
) {
2017-01-02 20:35:34 +01:00
ascanius = [(i3 true "default") (xres 109)];
woodhouse = [(i3 false "default") (xres 44)];
2016-09-17 15:09:53 +02:00
pennyworth = [];
frumar = [];
2017-01-02 20:35:34 +01:00
jarvis = [(i3 true "intel") (xres 192)];
2016-09-17 15:09:53 +02:00
}