Nixos label fixing regex, fixes #10
This commit is contained in:
parent
44f24f05ac
commit
6182e09a41
2 changed files with 8 additions and 6 deletions
|
|
@ -1 +1 @@
|
||||||
Added additional config for nh
|
Nixos label fixing regex, fixes #10
|
||||||
|
|
|
||||||
|
|
@ -134,9 +134,11 @@ in
|
||||||
boot.loader.grub.efiSupport = true;
|
boot.loader.grub.efiSupport = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.grub.useOSProber = true;
|
boot.loader.grub.useOSProber = true;
|
||||||
system.nixos.label = builtins.replaceStrings [ "\n" " " ] [ "" "_" ] (
|
system.nixos.label = lib.pipe (builtins.readFile ./commit_text) [
|
||||||
builtins.readFile ./commit_text
|
(lib.strings.trim)
|
||||||
);
|
(lib.strings.split "[^[:alnum:]:_.-]+")
|
||||||
|
(lib.strings.concatMapStrings (s: if lib.isList s then "_" else s))
|
||||||
|
];
|
||||||
|
|
||||||
# Needed for audio to work
|
# Needed for audio to work
|
||||||
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest;
|
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue