diff options
Diffstat (limited to 'system-profiles')
| -rw-r--r-- | system-profiles/default-locale.nix | 1 | ||||
| -rw-r--r-- | system-profiles/initrd-all-crypto-modules.nix | 14 | ||||
| -rw-r--r-- | system-profiles/tmpfs-root.nix | 29 |
3 files changed, 28 insertions, 16 deletions
diff --git a/system-profiles/default-locale.nix b/system-profiles/default-locale.nix index de2db1d7..cc103c9e 100644 --- a/system-profiles/default-locale.nix +++ b/system-profiles/default-locale.nix | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | i18n.defaultLocale = "en_DK.UTF-8"; | 6 | i18n.defaultLocale = "en_DK.UTF-8"; |
| 7 | console.keyMap = lib.mkDefault "dvorak-programmer"; | 7 | console.keyMap = lib.mkDefault "dvorak-programmer"; |
| 8 | time.timeZone = lib.mkDefault "Europe/Berlin"; | 8 | time.timeZone = lib.mkDefault "Europe/Berlin"; |
| 9 | services.kmscon.extraOptions = "--xkb-layout=us --xkb-variant=dvp --no-mouse"; | ||
| 9 | } | 10 | } |
| 10 | ] ++ (lib.optional (options ? i18n.extraLocales) { | 11 | ] ++ (lib.optional (options ? i18n.extraLocales) { |
| 11 | i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ]; | 12 | i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ]; |
diff --git a/system-profiles/initrd-all-crypto-modules.nix b/system-profiles/initrd-all-crypto-modules.nix index da6c781e..84f2129a 100644 --- a/system-profiles/initrd-all-crypto-modules.nix +++ b/system-profiles/initrd-all-crypto-modules.nix | |||
| @@ -14,11 +14,11 @@ in { | |||
| 14 | boot.initrd.luks.cryptoModules = moduleList ++ [ | 14 | boot.initrd.luks.cryptoModules = moduleList ++ [ |
| 15 | "encrypted_keys" "trusted" "rng" | 15 | "encrypted_keys" "trusted" "rng" |
| 16 | ]; | 16 | ]; |
| 17 | boot.kernelPatches = [ | 17 | # boot.kernelPatches = [ |
| 18 | { | 18 | # { |
| 19 | name = "encrypted_key"; | 19 | # name = "encrypted_keys"; |
| 20 | patch = null; | 20 | # patch = null; |
| 21 | structuredExtraConfig.ENCRYPTED_KEYS = lib.kernel.yes; | 21 | # structuredExtraConfig.ENCRYPTED_KEYS = lib.kernel.yes; |
| 22 | } | 22 | # } |
| 23 | ]; | 23 | # ]; |
| 24 | } | 24 | } |
diff --git a/system-profiles/tmpfs-root.nix b/system-profiles/tmpfs-root.nix index 23939c2e..5a04a166 100644 --- a/system-profiles/tmpfs-root.nix +++ b/system-profiles/tmpfs-root.nix | |||
| @@ -1,14 +1,25 @@ | |||
| 1 | { ... }: { | 1 | { options, lib, ... }: { |
| 2 | config = { | 2 | config = lib.foldr lib.recursiveUpdate {} ([ |
| 3 | # system.etc.overlay.enable = true; | 3 | { |
| 4 | 4 | security.sudo.extraConfig = '' | |
| 5 | Defaults lecture = never | ||
| 6 | ''; | ||
| 7 | } | ||
| 8 | ] | ||
| 9 | ++ (lib.optional (options ? disko) { | ||
| 10 | disko.devices.nodev = { | ||
| 11 | "/" = { | ||
| 12 | fsType = "tmpfs"; | ||
| 13 | mountOptions = [ | ||
| 14 | "mode=0755" | ||
| 15 | ]; | ||
| 16 | }; | ||
| 17 | }; | ||
| 18 | }) | ||
| 19 | ++ (lib.optional (!(options ? disko)) { | ||
| 5 | fileSystems."/" = { | 20 | fileSystems."/" = { |
| 6 | fsType = "tmpfs"; | 21 | fsType = "tmpfs"; |
| 7 | options = [ "mode=0755" ]; | 22 | options = [ "mode=0755" ]; |
| 8 | }; | 23 | }; |
| 9 | 24 | })); | |
| 10 | security.sudo.extraConfig = '' | ||
| 11 | Defaults lecture = never | ||
| 12 | ''; | ||
| 13 | }; | ||
| 14 | } | 25 | } |
