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:38:51 +02:00
|
|
|
outputs = { hostname, 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:38:51 +02:00
|
|
|
"nixos-laptop" = 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
|
2023-08-15 09:38:51 +02:00
|
|
|
}; # lib.nixosSystem - "nixos-laptop"
|
2023-08-15 09:35:34 +02:00
|
|
|
}; # nixosConfiguration
|
2023-08-15 09:46:16 +02:00
|
|
|
}; # outputs
|
|
|
|
} # flake
|