Files
nixos/flake.nix
T

66 lines
1.9 KiB
Nix
Raw Normal View History

2022-04-17 22:29:13 -05:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
description = "Greg's machines!";
inputs = {
2023-05-29 02:42:37 +00:00
nixstable.url = "github:nixos/nixpkgs/nixos-23.05";
2022-04-29 10:58:31 -05:00
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
2022-04-17 22:29:13 -05:00
agenix.url = "github:ryantm/agenix";
2023-03-06 23:31:58 -06:00
flake-utils.url = "github:numtide/flake-utils";
2023-05-11 09:32:05 -05:00
hm = {
2023-05-09 12:01:29 -05:00
url = "github:nix-community/home-manager/master";
2023-05-11 09:32:05 -05:00
inputs.nixpkgs.follows = "nixstable";
2022-04-18 11:38:06 -05:00
};
2022-09-06 11:41:09 -05:00
darwin = {
url = "github:lnl7/nix-darwin/master";
2022-09-07 20:01:51 -05:00
inputs.nixpkgs.follows = "nixunstable";
2022-09-06 11:41:09 -05:00
};
2022-12-28 15:39:44 -06:00
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixunstable";
};
2022-08-02 01:50:50 -05:00
nurpkgs.url = "github:nix-community/NUR";
2022-11-01 08:35:06 -05:00
ffmac.url = "github:bandithedoge/nixpkgs-firefox-darwin";
2022-04-17 22:29:13 -05:00
};
2023-05-11 09:32:05 -05:00
outputs = {nixstable, nixunstable, agenix, hm, nurpkgs, self, wsl, flake-utils, darwin, ...}@inputs:
2022-04-17 22:29:13 -05:00
let
2023-05-03 04:53:37 +00:00
pkg-sets = (
final: prev: {
unstable = import inputs.nixunstable { system = final.system; };
}
);
2022-05-04 13:52:38 -05:00
local_overlay = import ./overlays;
2022-09-09 14:19:12 -05:00
overlays = [
2022-10-17 10:46:50 -05:00
agenix.overlay
2023-05-03 04:53:37 +00:00
pkg-sets
2022-09-09 14:19:12 -05:00
local_overlay
nurpkgs.overlay
2022-11-01 08:35:06 -05:00
inputs.ffmac.overlay
2022-09-06 11:41:09 -05:00
];
2023-05-09 12:01:29 -05:00
2022-04-17 22:29:13 -05:00
in {
2023-05-11 09:32:05 -05:00
nixosConfigurations = (import ./hosts { inherit nixstable nixunstable overlays wsl agenix; });
2022-04-21 12:42:42 +00:00
2023-05-11 09:32:05 -05:00
darwinConfigurations = (import ./darwin { inherit agenix darwin nixstable nixunstable overlays; });
2022-09-06 11:41:09 -05:00
2023-03-06 23:31:58 -06:00
defaultPackage = flake-utils.lib.eachDefaultSystemMap (system: inputs.self.homeConfigurations.gui."${system}".activationPackage);
2022-08-02 01:50:50 -05:00
homeConfigurations = (
import ./home {
2023-05-11 09:32:05 -05:00
inherit nixunstable agenix hm overlays flake-utils;
2022-10-17 10:46:50 -05:00
nixpkgs = nixunstable;
2022-08-02 01:50:50 -05:00
}
);
2022-08-02 01:57:50 -05:00
2023-05-11 09:32:05 -05:00
overlays = { default = local_overlay; };
2022-10-24 22:45:06 -05:00
modules = (import ./modules-all {}) //
(import ./modules-linux {}) //
(import ./modules-darwin {});
2023-06-01 10:54:46 -05:00
packages = (import ./overlays/packages.nix { inherit nixunstable flake-utils; });
2022-04-17 22:29:13 -05:00
};
}