ricing and config changes
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
description = "System nixOS flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
# nixpkgs.url = "github:NixOS/nixpkgs/master";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote";
|
||||
@@ -16,6 +15,11 @@
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
chaotic = {
|
||||
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
@@ -30,29 +34,26 @@
|
||||
let
|
||||
username = "primary";
|
||||
system = "x86_64-linux";
|
||||
hostnames = [
|
||||
"mreow"
|
||||
"yarn"
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
# desktop
|
||||
nixosConfigurations.yarn = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
hostname = "yarn";
|
||||
inherit inputs username;
|
||||
};
|
||||
modules = [
|
||||
./system-yarn.nix
|
||||
];
|
||||
};
|
||||
|
||||
# laptop
|
||||
nixosConfigurations.mreow = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
hostname = "mreow";
|
||||
inherit inputs username;
|
||||
};
|
||||
modules = [
|
||||
./system-mreow.nix
|
||||
];
|
||||
};
|
||||
nixosConfigurations = nixpkgs.lib.foldl' (
|
||||
config: hostname:
|
||||
config
|
||||
// {
|
||||
"${hostname}" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs username hostname;
|
||||
};
|
||||
modules = [
|
||||
./system-${hostname}.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
) { } hostnames;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user