mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-21 03:36:32 +05:30
31 lines
547 B
Nix
31 lines
547 B
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
hostName = "alpha";
|
|
userName = "tux";
|
|
userEmail = "t@tux.rs";
|
|
system = "x86_64-linux";
|
|
unstable = true;
|
|
nixpkgs = if unstable then inputs.nixpkgs else inputs.nixpkgs-stable;
|
|
in
|
|
{
|
|
flake.nixosConfigurations."${hostName}" = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit
|
|
hostName
|
|
userName
|
|
userEmail
|
|
system
|
|
;
|
|
};
|
|
modules = [
|
|
config.flake.modules.nixos.core
|
|
config.flake.modules.nixos.${hostName}
|
|
];
|
|
};
|
|
}
|