From 17c76064b6dff8c6d20e03e9bb82178d95db8e58 Mon Sep 17 00:00:00 2001 From: lucy Date: Sun, 18 Oct 2026 12:43:23 +0200 Subject: [PATCH] add boilerplate --- modules/default.nix | 9 ++++++++- modules/system/core/boot.nix | 8 ++++---- modules/system/core/system.nix | 26 ++++++++++++++++++++++++++ result | 1 + 4 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 modules/system/core/system.nix create mode 120000 result diff --git a/modules/default.nix b/modules/default.nix index be24619..fcab9a6 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,4 +1,10 @@ -{ self, inputs, ... }: { +{ + self, + inputs, + config, + ... +}: +{ flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem { modules = with self.nixosModules; [ user @@ -7,5 +13,6 @@ boot /etc/nixos/hardware-configuration.nix ]; + config.dualBoot = true; }; } diff --git a/modules/system/core/boot.nix b/modules/system/core/boot.nix index 9f14319..35e0e3d 100644 --- a/modules/system/core/boot.nix +++ b/modules/system/core/boot.nix @@ -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 diff --git a/modules/system/core/system.nix b/modules/system/core/system.nix new file mode 100644 index 0000000..61a7993 --- /dev/null +++ b/modules/system/core/system.nix @@ -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" + ]; + }; +} diff --git a/result b/result new file mode 120000 index 0000000..73b6688 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/dv2b9jwqaymcsdiw2sp81h3xqfnlkac7-nixos-system-nixos-26.05.20261015.26f4107 \ No newline at end of file