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 = {
|
2023-06-30 12:34:49 +02:00
|
|
|
# NixOS packages
|
2023-06-30 12:17:13 +02:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
2023-06-30 12:34:49 +02:00
|
|
|
|
|
|
|
# Manage dotfiles in a home directory
|
2023-06-30 16:19:13 +02:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
2023-06-30 12:17:13 +02:00
|
|
|
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 = [
|
2023-06-30 12:34:49 +02:00
|
|
|
./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 16:16:54 +02:00
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
2023-06-30 12:17:13 +02:00
|
|
|
];
|
|
|
|
};
|
2023-06-30 11:41:45 +02:00
|
|
|
};
|
|
|
|
};
|
2023-06-30 12:34:49 +02:00
|
|
|
}
|