nix/hosts/nixos-laptop/flake.nix
2023-08-15 16:46:16 +09:00

29 lines
868 B
Nix

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