breakin' things
This commit is contained in:
parent
9d7b325011
commit
131854f383
2 changed files with 45 additions and 2 deletions
|
@ -57,8 +57,8 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
# Configuration Imports
|
# Configuration Imports
|
||||||
./configuration.nix # Common NixOS Configuration
|
./configuration.nix # Common NixOS Configuration
|
||||||
./hosts/${hostname}/nixos/configuration.nix # Hardware-specific Configuration
|
./hosts/${hostname}/flake.nix # Hardware-specific Configuration
|
||||||
|
|
||||||
# Flake Imports
|
# Flake Imports
|
||||||
sops-nix.nixosModules.sops # Handle secrets
|
sops-nix.nixosModules.sops # Handle secrets
|
||||||
|
|
43
hosts/nixos-laptop/flake.nix
Normal file
43
hosts/nixos-laptop/flake.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
# 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
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue