flake-parts #1

Merged
lucy merged 41 commits from flake-parts into main 2026-10-19 22:40:55 +00:00
5 changed files with 29 additions and 2 deletions
Showing only changes of commit 3fbbe84dca - Show all commits

add boot module

lucy 2026-10-18 12:32:12 +02:00

View file

@ -3,6 +3,8 @@
modules = with self.nixosModules; [
user
packages
agenix
boot
/etc/nixos/hardware-configuration.nix
];
};

View file

@ -1,5 +1,8 @@
{ ... }: {
flake.nixosModules = {
{inputs, ... }: {
flake.nixosModules.agenix = {config, ...}: {
imports = [
inputs.agenix.nixosModules.default
];
age = {
enable = true;
identityPaths = [ "/var/lib/misc/key.age" ];

View file

@ -0,0 +1,22 @@
{ ... }: {
flake.nixosModules.boot = {
options = {
dualBoot = lib.mkOption {
type = lib.types.bool;
default = false;
description = "wether to enable windows boot entry to limine or not";
};
};
boot.loader = {
efi.canTouchEfiVariables = true;
limine = {
enable = true;
extraEntries = lib.mkIf dualBoot ''
/Windows 11
protocol: efi_boot_entry
entry: Windows Boot Manager
'';
};
};
};
}