add boilerplate

This commit is contained in:
lucy 2026-10-18 12:43:23 +02:00
commit 17c76064b6
4 changed files with 39 additions and 5 deletions

View file

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

View file

@ -0,0 +1,26 @@
{ ... }: {
flake.nixosModules.base = {
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
security = {
rtkit.enable = true;
polkit.enable = true; # polkit
polkit.enablePkexecWrapper = true;
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
};
}