• Updated input 'crane': 'github:ipetkov/crane/7d5b46c17d857ee9ddb2e8d88185729a3e5637b6' (2024-02-04) → 'github:ipetkov/crane/9107434eda6991e9388ad87b815dafa337446d16' (2024-02-08) • Updated input 'disko': 'github:nix-community/disko/2e9b88f02ec166b1c3f0a638688f8e4ef444de32' (2024-02-05) → 'github:nix-community/disko/15b52c3c8a718253e66f1b92f595dc47873fdfea' (2024-02-08) • Updated input 'firefox-darwin': 'github:bandithedoge/nixpkgs-firefox-darwin/283699689075fe7d9df68ac1f01e6997ca02701b' (2024-02-07) → 'github:bandithedoge/nixpkgs-firefox-darwin/1dca825a6ef681e44777c5d52f086b68ac35facb' (2024-02-08) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/8cc79aa39bbc6eaedaf286ae655b224c71e02907' (2024-02-06) → 'github:nixos/nixpkgs/c0b7a892fb042ede583bdaecbbdc804acb85eabe' (2024-02-08) • Updated input 'wrapper-manager-hm-compat': 'github:nrabulinski/wrapper-manager-hm-compat/287bdf3c13e4d865ea131cc9433dc991a98ee41a' (2023-10-09) → 'github:nrabulinski/wrapper-manager-hm-compat/2b1a3be94916325496c8eb8a82f1629b3433e793' (2024-02-08) • Added input 'wrapper-manager-hm-compat/wrapper-manager': follows 'wrapper-manager'
145 lines
3.9 KiB
Nix
145 lines
3.9 KiB
Nix
{
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
imports = [
|
|
inputs.hercules-ci-effects.flakeModule
|
|
|
|
./assets
|
|
./hosts
|
|
./modules
|
|
./wrappers
|
|
./effects.nix
|
|
./pkgs
|
|
];
|
|
|
|
perSystem = {
|
|
inputs',
|
|
self',
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
devShells.default = pkgs.mkShellNoCC {
|
|
packages = [
|
|
inputs'.agenix.packages.agenix
|
|
inputs'.attic.packages.attic
|
|
# TODO: Contribute darwin support to nh
|
|
pkgs.nh
|
|
];
|
|
};
|
|
|
|
packages.base-packages = pkgs.symlinkJoin {
|
|
name = "settei-base";
|
|
paths = with self'.packages; [
|
|
helix
|
|
fish
|
|
git-commit-last
|
|
];
|
|
};
|
|
# Re-export it for convenience and for caching
|
|
packages.attic = inputs'.attic.packages.attic;
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
darwin = {
|
|
url = "github:lnl7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.darwin.follows = "darwin";
|
|
inputs.home-manager.follows = "home-manager";
|
|
};
|
|
mailserver = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
wrapper-manager = {
|
|
url = "github:viperML/wrapper-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
wrapper-manager-hm-compat = {
|
|
url = "github:nrabulinski/wrapper-manager-hm-compat";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
inputs.wrapper-manager.follows = "wrapper-manager";
|
|
};
|
|
racket = {
|
|
url = "github:nrabulinski/racket.nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hercules-ci-effects = {
|
|
url = "github:hercules-ci/hercules-ci-effects";
|
|
};
|
|
conduit-src = {
|
|
url = "gitlab:famedly/conduit?ref=next";
|
|
flake = false;
|
|
};
|
|
nvidia-patch = {
|
|
url = "github:arcnmx/nvidia-patch.nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
crane = {
|
|
url = "github:ipetkov/crane";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
firefox-darwin = {
|
|
url = "github:bandithedoge/nixpkgs-firefox-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
niko-nur = {
|
|
url = "github:nrabulinski/nur-packages";
|
|
};
|
|
attic = {
|
|
url = "github:zhaofengli/attic";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.crane.follows = "crane";
|
|
};
|
|
};
|
|
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://hyprland.cachix.org"
|
|
"https://cache.garnix.io"
|
|
"https://nix-community.cachix.org"
|
|
"https://hercules-ci.cachix.org"
|
|
"https://nrabulinski.cachix.org"
|
|
"https://cache.nrab.lol/public"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0="
|
|
"nrabulinski.cachix.org-1:Q5FD7+1c68uH74CQK66UWNzxhanZW8xcg1LFXxGK8ic="
|
|
"public:wIIyvCTlsk39uwKlBFOuVY+BXrPY3lUNAEpDN4H+O0Q="
|
|
];
|
|
};
|
|
}
|