-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (45 loc) · 1.73 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
43
44
45
46
47
48
49
50
51
{
description = "My home manager configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
nixpkg-unstable.url = "nixpkgs/nixos-unstable";
nixpkgs-prev.url = "nixpkgs/nixos-24.05";
# Also update versions in nix/install.sh and Makefile
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nixpkg-unstable, nixpkgs-prev, ... }:
let results = let
lib = nixpkgs.lib;
lic = import ./lic.nix;
# https://github.com/NixOS/nix/issues/3978#issuecomment-1676001388
# Do not want multiple lock files, therefore not as part of "inputs"
gcm-flake = import ./gcm/flake.nix;
gcm-helper = gcm-flake.outputs {
self = gcm-flake.outputs;
inherit nixpkgs;
};
system = builtins.currentSystem;
pkgs = import nixpkgs { inherit system; overlays = [ gcm-helper.overlay ]; };
pkgs-unstable = import nixpkg-unstable { inherit system; };
pkgs-prev = import nixpkgs-prev { inherit system; };
in rec {
homeConfigurations = {
full = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit pkgs-unstable; inherit pkgs-prev; profile="full";};
modules = [ ./home.nix ];
};
minimal = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit pkgs-unstable; inherit pkgs-prev; profile="minimal";};
modules = [ ./home.nix ];
};
};
licenses = rec {
badDeps = (lic.keepBadDeps homeConfigurations.full.config.home.packages);
};
}; in assert results.licenses.badDeps == []; results;
}