nix/laptop/flake.nix

42 lines
989 B
Nix
Raw Normal View History

2023-06-30 11:41:45 +02:00
{
2023-06-30 12:17:13 +02:00
description = "Laptop System Config";
2023-06-30 11:46:47 +02:00
inputs = {
# NixOS packages
2023-06-30 12:17:13 +02:00
nixpkgs.url = "nixpkgs/nixos-23.05";
# Manage dotfiles in a home directory
2023-06-30 12:17:13 +02:00
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-06-30 12:57:39 +02:00
# Secureboot Configuration
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
2023-06-30 11:46:47 +02:00
};
2023-06-30 12:57:39 +02:00
outputs = { nixpkgs, home-manager, lanzaboote, ... }:
2023-06-30 12:17:13 +02:00
let
2023-06-30 12:57:39 +02:00
# Secureboot Configuration
2023-06-30 12:17:13 +02:00
system = "x86_64-linux";
pkgs = import nixpkgs {
# Tells Flake what OS version we are using
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
nixos-p1 = lib.nixosSystem {
inherit system;
modules = [
./hardware-configuration.nix
2023-06-30 12:57:39 +02:00
lanzaboote.nixosModules.lanzaboote
2023-06-30 16:09:41 +02:00
./configuration.nix
2023-06-30 12:17:13 +02:00
];
};
2023-06-30 11:41:45 +02:00
};
};
}