Flake lock file updates: • Updated input 'agenix': 'github:ryantm/agenix/42d371d861a227149dc9a7e03350c9ab8b8ddd68' (2023-01-09) → 'github:ryantm/agenix/49798e535ebc07fec82256b283d35be36d8c6c9a' (2023-01-29) • Updated input 'home-manager': 'github:nix-community/home-manager/89a8ba0b5b43b3350ff2e3ef37b66736b2ef8706' (2022-12-28) → 'github:nix-community/home-manager/65c47ced082e3353113614f77b1bc18822dc731f' (2023-01-23) • Updated input 'myNixpkgs': 'github:NixOS/nixpkgs/cdead16a444a3e5de7bc9b0af8e198b11bb01804' (2023-01-20) → 'github:NixOS/nixpkgs/f413457e0dd7a42adefdbcea4391dd9751509025' (2023-01-30) • Updated input 'nix-doom-emacs': 'github:nix-community/nix-doom-emacs/cac2195c172b084562f028542cd2332ef6d6f27c' (2023-01-20) → 'github:nix-community/nix-doom-emacs/e92e5b6021b1ad4290e051111010ba51921507cd' (2023-01-27) • Updated input 'nix-doom-emacs/emacs-overlay': 'github:nix-community/emacs-overlay/fa7dedfa5e1171a76ff78a1260064e1b20ec93bb' (2023-01-19) → 'github:nix-community/emacs-overlay/acff9f41c4962704acb8008e5ff5b90a43cf7758' (2023-01-26) • Updated input 'nix-doom-emacs/revealjs': 'github:hakimel/reveal.js/6510916b9f55a8f3110030bcdd1aee1b7fb77b6f' (2023-01-18) → 'github:hakimel/reveal.js/b1a9842b2f4544a2fda546383db38cc7a81f6b74' (2023-01-25) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/7bd6b87b3712e68007823e8dd5c37ee9b114fee3' (2023-01-15) → 'github:NixOS/nixos-hardware/b7ac0a56029e4f9e6743b9993037a5aaafd57103' (2023-01-24)
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.nixosModules.age ] ++ 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
|
|
];
|
|
};
|
|
}
|