-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (41 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:ursi/flake-utils";
};
outputs = { self, utils, ... }@inputs:
utils.apply-systems
{
inherit inputs;
make-pkgs = system: import inputs.nixpkgs {
inherit system;
#config.contentAddressedByDefault = true;
};
}
({ pkgs, ... }@ctx:
let
nixProfile = pkgs.writeText "nix-profile" ''
export NIX_PATH="nixpkgs=flake:${inputs.nixpkgs}"
'';
in
{
packages.default = pkgs.buildEnv {
name = "klarkc-dotfiles_profile";
paths = with pkgs; [
(pkgs.runCommand "profile" { } ''
mkdir -p $out/etc/profile.d
cp ${nixProfile} $out/etc/profile.d/nix.sh
'')
nil
marksman
lorri
direnv
node2nix
nix-output-monitor
nix-tree
nixos-rebuild
attic-client #attic
];
};
});
}