mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-05-07 02:16:33 +05:30
24 lines
490 B
Nix
24 lines
490 B
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
hostName = "sirius";
|
|
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; };
|
|
modules = [
|
|
config.flake.modules.nixos.core
|
|
config.flake.modules.nixos.${hostName}
|
|
];
|
|
};
|
|
}
|