44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
|
{
|
||
|
# INFORMATION
|
||
|
# When building for a system, remember to change the hostname variable below
|
||
|
description = "nixos-laptop flake";
|
||
|
|
||
|
inputs = {
|
||
|
# Encrypted secrets in Nix configuration files
|
||
|
# https://github.com/Mic92/sops-nix
|
||
|
sops-nix.url = "github:Mic92/sops-nix";
|
||
|
};
|
||
|
|
||
|
outputs = {
|
||
|
unstable-nixpkgs,
|
||
|
home-manager,
|
||
|
lanzaboote,
|
||
|
nur,
|
||
|
sops-nix,
|
||
|
nixos-hardware,
|
||
|
...
|
||
|
}@inputs:
|
||
|
let
|
||
|
# Variables - Remember to set these
|
||
|
hostname = "nixos-laptop"; # Should probably set this in a minimal configuration.nix?
|
||
|
lib = unstable-nixpkgs.lib;
|
||
|
in {
|
||
|
# NixOS Configuration files:
|
||
|
nixosConfigurations = {
|
||
|
# Declare a generic configuration using the $hostname variable:
|
||
|
${hostname} = lib.nixosSystem {
|
||
|
inherit system;
|
||
|
specialArgs = {
|
||
|
inherit hostname;
|
||
|
};
|
||
|
modules = [
|
||
|
# Configuration Imports
|
||
|
./nixos/configuration.nix
|
||
|
# Flake Imports
|
||
|
nixos-hardware.nixosModules.lenovo-thinkpad-p1
|
||
|
]; # modules
|
||
|
}; # lib.nixosSystem - ${hostname}
|
||
|
}; # nixosConfiguration
|
||
|
};
|
||
|
}
|