nix/hosts/nixos-laptop/flake.nix

30 lines
834 B
Nix
Raw Normal View History

2023-08-15 09:35:34 +02:00
{
# INFORMATION
# When building for a system, remember to change the hostname variable below
description = "nixos-laptop flake";
inputs = {
2023-08-15 09:37:40 +02:00
# Hardware support
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2023-08-15 09:35:34 +02:00
};
2023-08-15 09:37:40 +02:00
outputs = { nixos-hardware, ... }@inputs: {
2023-08-15 09:35:34 +02:00
# NixOS Configuration files:
nixosConfigurations = {
# Declare a generic configuration using the $hostname variable:
2023-08-15 09:37:40 +02:00
${hostname} = unstable-nixpkgs.lib.nixosSystem {
2023-08-15 09:35:34 +02:00
inherit system;
specialArgs = {
inherit hostname;
};
modules = [
# Configuration Imports
./nixos/configuration.nix
# Flake Imports
nixos-hardware.nixosModules.lenovo-thinkpad-p1
]; # modules
}; # lib.nixosSystem - ${hostname}
}; # nixosConfiguration
};
}