58 lines
1.5 KiB
Nix
Executable file
58 lines
1.5 KiB
Nix
Executable file
{
|
|
description = "System flake with automatic hostname detection";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
stylix.url = "github:danth/stylix";
|
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }@inputs: let
|
|
system = "x86_64-linux";
|
|
hostname = builtins.getEnv "HOSTNAME";
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
"${hostname}" = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
# ./common.nix
|
|
./${hostname}/configuration.nix
|
|
# ./${hostname}/hardware-configuration.nix
|
|
inputs.stylix.nixosModules.stylix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
/*
|
|
{
|
|
description = "System flake";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
stylix.url = "github:danth/stylix";
|
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
outputs = { self, nixpkgs, ... }@inputs: {
|
|
nixosConfigurations = {
|
|
mecca = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs;}; modules = [
|
|
./laptop/mecca/configuration.nix
|
|
inputs.stylix.nixosModules.stylix
|
|
];
|
|
};
|
|
syntheticnexus = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./laptop/syntheticnexus/configuration.nix
|
|
inputs.stylix.nixosModules.stylix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
*/
|