diff options
author | Mikael Voss <mvs@nyantec.com> | 2024-07-24 10:24:37 +0200 |
---|---|---|
committer | Mikael Voss <mvs@nyantec.com> | 2024-07-24 10:27:06 +0200 |
commit | dd9c9846655068e0dc7f2c9865972101ddd95c55 (patch) | |
tree | a8e8b9d5231a0b36a4807019990400e016b382be | |
parent | 191c2a6b0bfd5ac6cadafe81d5c410e47817117a (diff) | |
download | en_EU-dd9c9846655068e0dc7f2c9865972101ddd95c55.tar.zst |
Add rudimentary Nix flake
-rw-r--r-- | flake.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a712b3e --- /dev/null +++ b/flake.nix @@ -0,0 +1,18 @@ +{ + description = "Custom locale"; + outputs = { self, ... }: { + overlays.default = final: prev: { + glibcLocales = prev.glibcLocales.overrideAttrs (base: { + postPatch = base.postPatch + '' + cp ${prev.lib.escapeShellArg ./en_EU} localedata/locales/en_EU + echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED + ''; + }); + }; + + nixosModules.default = { lib, ... }: { + nixpkgs.overlays = [ self.overlays.default ]; + i18n.defaultLocale = lib.mkDefault "en_EU.UTF-8"; + }; + }; +} |