Started migration towards flake-parts
Plus shit ton many changes I still had to commit
This commit is contained in:
parent
261b763848
commit
f05ee0a658
18 changed files with 752 additions and 460 deletions
52
flake.nix
52
flake.nix
|
@ -2,57 +2,53 @@
|
|||
description = "A complete, declarative, and reproducible configuration of my entire Nix fleet";
|
||||
|
||||
inputs = {
|
||||
nixpkgsUnstable.url = "github:NixOS/nixpkgs";
|
||||
nixpkgsStable.url = "github:NixOS/nixpkgs/nixos-22.05";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgsStable.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
nixosHardware.url = "github:NixOS/nixos-hardware";
|
||||
homeManager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
||||
};
|
||||
nur.url = "github:nix-community/NUR";
|
||||
preCommitHooks.url = "github:cachix/pre-commit-hooks.nix";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
comma.url = "github:nix-community/comma";
|
||||
rock5b.url = "github:aciceri/rock5b-nixos";
|
||||
ccrEmacs.url = "github:aciceri/emacs";
|
||||
helix.url = "github:helix-editor/helix";
|
||||
nil.url = "github:oxalica/nil";
|
||||
nom.url = "github:maralorn/nix-output-monitor";
|
||||
treefmt-nix = {
|
||||
url = "github:numtide/treefmt-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
||||
};
|
||||
};
|
||||
outputs = {self, ...} @ inputs: let
|
||||
utils = import ./utils inputs;
|
||||
inherit
|
||||
(utils)
|
||||
checkFormatting
|
||||
formatApp
|
||||
formatter
|
||||
lib
|
||||
mkDevShell
|
||||
mkVmApps
|
||||
nixosConfigurations
|
||||
;
|
||||
in {
|
||||
inherit nixosConfigurations;
|
||||
|
||||
apps = lib.foldr lib.recursiveUpdate {} [
|
||||
(mkVmApps self.nixosConfigurations)
|
||||
formatApp
|
||||
];
|
||||
|
||||
checks = checkFormatting ./.;
|
||||
|
||||
devShells = mkDevShell;
|
||||
|
||||
inherit formatter;
|
||||
};
|
||||
outputs = inputs @ {flake-parts, ...}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
# ./modules
|
||||
# ./hmModules
|
||||
./hosts
|
||||
./packages
|
||||
./shell
|
||||
./formatting
|
||||
];
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
};
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://aciceri-fleet.cachix.org"
|
||||
"https://aciceri-emacs.cachix.org"
|
||||
"https://rock5b-nixos.cachix.org"
|
||||
"https://helix.cachix.org"
|
||||
];
|
||||
extra-trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI="
|
||||
"aciceri-emacs.cachix.org-1:kxDGDFWV6LUj41tb8xmPRBI56UJSZOVveN49LZDUKdA="
|
||||
"rock5b-nixos.cachix.org-1:bXHDewFS0d8pT90A+/YZan/3SjcyuPZ/QRgRSuhSPnA="
|
||||
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue