add boilerplate
This commit is contained in:
parent
3fbbe84dca
commit
17c76064b6
4 changed files with 39 additions and 5 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
{ self, inputs, ... }: {
|
{
|
||||||
|
self,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
user
|
user
|
||||||
|
|
@ -7,5 +13,6 @@
|
||||||
boot
|
boot
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
config.dualBoot = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ lib, config, ... }: {
|
||||||
flake.nixosModules.boot = {
|
flake.nixosModules.boot = { config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
dualBoot = lib.mkOption {
|
dualBoot = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
@ -7,11 +7,11 @@
|
||||||
description = "wether to enable windows boot entry to limine or not";
|
description = "wether to enable windows boot entry to limine or not";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.loader = {
|
config.boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
limine = {
|
limine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraEntries = lib.mkIf dualBoot ''
|
extraEntries = lib.mkIf config.dualBoot ''
|
||||||
/Windows 11
|
/Windows 11
|
||||||
protocol: efi_boot_entry
|
protocol: efi_boot_entry
|
||||||
entry: Windows Boot Manager
|
entry: Windows Boot Manager
|
||||||
|
|
|
||||||
26
modules/system/core/system.nix
Normal file
26
modules/system/core/system.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
1
result
Symbolic link
1
result
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/dv2b9jwqaymcsdiw2sp81h3xqfnlkac7-nixos-system-nixos-26.05.20261015.26f4107
|
||||||
Loading…
Reference in a new issue