-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
75 lines (69 loc) · 2.21 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs_old.url = "github:nixos/nixpkgs/1042fd8b148a9105f3c0aca3a6177fd1d9360ba5";
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
nixpkgs_old,
firefox-addons,
home-manager,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}.extend (import ./spotify-overlay.nix);
ghostty = inputs.ghostty.packages.${system}.default;
pkgs_old = import nixpkgs_old {
inherit system;
};
pkgs_firefox-addons = firefox-addons.packages.${system};
in {
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
modules = [./configuration.nix];
};
homeConfigurations."jouni" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs_old;
inherit pkgs_firefox-addons;
inherit ghostty;
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [./jouni.nix];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
homeConfigurations."sunnari" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs.extend inputs.nixgl.overlay;
extraSpecialArgs = {
inherit pkgs_old;
inherit pkgs_firefox-addons;
inherit ghostty;
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [./sunnari.nix];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
legacyPackages.${system}.foo = pkgs.callPackage ./android-apply.nix {android-config = import ./android-config.nix;};
};
}