Flake lock file updates: • Updated input 'devshell': 'github:numtide/devshell/c8ce8ed81726079c398f5f29c4b68a7d6a3c2fa2' (2022-10-23) → 'github:numtide/devshell/96a9dd12b8a447840cc246e17a47b81a4268bba7' (2022-10-31) • Updated input 'flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817' (2022-10-29) • Updated input 'helix/nixCargoIntegration': 'github:yusdacra/nix-cargo-integration/b89e3d7b0f7e2d0301891586456267435fc54aaa' (2022-11-02) → 'github:yusdacra/nix-cargo-integration/9eb74345b30cd2e536d9dac9d4435d3c475605c7' (2022-06-28) • Updated input 'helix/nixCargoIntegration/devshell': 'github:numtide/devshell/96a9dd12b8a447840cc246e17a47b81a4268bba7' (2022-10-31) → 'github:numtide/devshell/899ca4629020592a13a46783587f6e674179d1db' (2022-06-23) • Updated input 'helix/nixCargoIntegration/dream2nix': 'github:nix-community/dream2nix/4b3a139c506582f40ce733eb4a91988242e17358' (2022-10-31) → 'github:nix-community/dream2nix/4e75e665ec3a1cddae5266bed0dd72fce0b74a23' (2022-06-23) • Removed input 'helix/nixCargoIntegration/dream2nix/all-cabal-json' • Updated input 'helix/nixCargoIntegration/dream2nix/crane': 'github:ipetkov/crane/d9f394e4e20e97c2a60c3ad82c2b6ef99be19e24' (2022-08-30) → 'github:ipetkov/crane/db5482bf225acc3160899124a1df5a617cfa27b5' (2022-06-05) • Removed input 'helix/nixCargoIntegration/dream2nix/ghc-utils' • Added input 'helix/nixCargoIntegration/dream2nix/node2nix': follows 'helix/nixCargoIntegration/nixpkgs' • Updated input 'helix/nixpkgs': 'github:nixos/nixpkgs/d40fea9aeb8840fea0d377baa4b38e39b9582458' (2022-10-31) → 'github:nixos/nixpkgs/0d68d7c857fe301d49cdcd56130e0beea4ecd5aa' (2022-06-19) • Updated input 'helix/rust-overlay': 'github:oxalica/rust-overlay/8f81faec35508647ced65c44fd3e8648a5518afb' (2022-10-31) → 'github:oxalica/rust-overlay/8159585609a772b041cce6019d5c21d240709244' (2022-06-21) • Updated input 'helix/rust-overlay/flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4' (2021-11-15) • Updated input 'home-manager': 'github:nix-community/home-manager/b81e128fc053ab3159d7b464d9b7dedc9d6a6891' (2022-10-17) → 'github:nix-community/home-manager/f0ecd4b1db5e15103e955b18cb94bea4296e5c45' (2022-11-01) • Updated input 'myNixpkgs': 'github:NixOS/nixpkgs/c132d0837dfb9035701dcd8fc91786c605c855c3' (2022-10-27) → 'github:NixOS/nixpkgs/b3a8f7ed267e0a7ed100eb7d716c9137ff120fe3' (2022-11-01) • Updated input 'nix-doom-emacs': 'github:nix-community/nix-doom-emacs/17673891a41c747d485b9407cb3b50b3156395ee' (2022-10-25) → 'github:nix-community/nix-doom-emacs/e9a0c496d813c79857e38511708eefc80ea1f4fe' (2022-10-29) • Updated input 'nix-doom-emacs/emacs-overlay': 'github:nix-community/emacs-overlay/b8e24cec99ff68f8a875b6f842a10b6b2ab398d3' (2022-10-20) → 'github:nix-community/emacs-overlay/b3f81bcbda84bf2ef957cfff6cf89aedbdfa2be9' (2022-10-27) • Updated input 'nix-doom-emacs/org': 'github:emacs-straight/org-mode/98cae03b7d9a612334d5ea461e73ac0b37b0285d' (2022-10-20) → 'github:emacs-straight/org-mode/48b237d9e21a4edf528d4bd1ed99d1f3757e4931' (2022-10-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/419dcc0ec767803182ed01a326f134230578bf60' (2022-10-27) → 'github:NixOS/nixos-hardware/18934557eeba8fa2e575b0fd4ab95186e2e3bde3' (2022-11-01) • Updated input 'nvd/flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817' (2022-10-29)
86 lines
2 KiB
Nix
86 lines
2 KiB
Nix
{ self
|
|
, agenix
|
|
, nixpkgs
|
|
, home-manager
|
|
, homePage
|
|
, nixos-hardware
|
|
, nvd
|
|
, scripts
|
|
, recipemd
|
|
, helix
|
|
, ...
|
|
}@inputs:
|
|
let
|
|
getDefaultPkgs = system: flakes: nixpkgs.lib.mapAttrs (_: value: nixpkgs.lib.getAttr system value.defaultPackage) flakes;
|
|
|
|
nixosSystem = { system ? "x86_64-linux", extraModules ? [ ] }: nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
|
|
modules = (nixpkgs.lib.attrValues self.nixosModules) ++ [ agenix.nixosModule ] ++ extraModules;
|
|
};
|
|
in
|
|
{
|
|
gorgon = nixosSystem rec {
|
|
system = "x86_64-linux";
|
|
|
|
extraModules = [
|
|
{
|
|
nixpkgs.overlays = nixpkgs.lib.attrValues self.overlays;
|
|
dadada.pkgs = (getDefaultPkgs system {
|
|
inherit scripts nvd recipemd;
|
|
}) // self.packages.${system};
|
|
|
|
# Add flakes to registry and nix path.
|
|
dadada.inputs = inputs // { dadada = self; };
|
|
}
|
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t14s-amd-gen1
|
|
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.sharedModules = (nixpkgs.lib.attrValues self.hmModules) ++ [
|
|
{ dadada.home.helix.package = helix.packages.${system}.helix; }
|
|
{ manual.manpages.enable = false; }
|
|
];
|
|
home-manager.users.dadada = import ../home/home;
|
|
}
|
|
|
|
./modules/profiles/laptop.nix
|
|
./gorgon/configuration.nix
|
|
];
|
|
};
|
|
|
|
ifrit = nixosSystem {
|
|
extraModules = [
|
|
./modules/profiles/server.nix
|
|
./ifrit/configuration.nix
|
|
./ifrit/hardware-configuration.nix
|
|
];
|
|
};
|
|
|
|
surgat = nixosSystem rec {
|
|
system = "x86_64-linux";
|
|
extraModules = [
|
|
{
|
|
dadada.homePage.package = homePage.defaultPackage.${system};
|
|
}
|
|
./modules/profiles/server.nix
|
|
./surgat/configuration.nix
|
|
];
|
|
};
|
|
|
|
pruflas = nixosSystem {
|
|
extraModules = [
|
|
./modules/profiles/laptop.nix
|
|
./pruflas/configuration.nix
|
|
];
|
|
};
|
|
|
|
agares = nixosSystem {
|
|
extraModules = [
|
|
./agares/configuration.nix
|
|
];
|
|
};
|
|
}
|