nix/laptop/flake.nix
2023-06-30 23:09:41 +09:00

42 lines
No EOL
989 B
Nix

{
description = "Laptop System Config";
inputs = {
# NixOS packages
nixpkgs.url = "nixpkgs/nixos-23.05";
# Manage dotfiles in a home directory
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Secureboot Configuration
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, lanzaboote, ... }:
let
# Secureboot Configuration
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
lanzaboote.nixosModules.lanzaboote
./configuration.nix
];
};
};
};
}