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;
|
||||||
|
|
@ -398,7 +400,7 @@ in
|
||||||
productive = {
|
productive = {
|
||||||
inheritParentConfig = true;
|
inheritParentConfig = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
environment.etc."specialisation".text = "productive";
|
environment.etc."specialisation".text = "productive";
|
||||||
environment.systemPackages = basePackages;
|
environment.systemPackages = basePackages;
|
||||||
programs.steam.enable = lib.mkOverride 99 false;
|
programs.steam.enable = lib.mkOverride 99 false;
|
||||||
}
|
}
|
||||||
|
|
@ -413,7 +415,7 @@ in
|
||||||
no_yt = {
|
no_yt = {
|
||||||
inheritParentConfig = true;
|
inheritParentConfig = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
environment.etc."specialisation".text = "no_yt";
|
environment.etc."specialisation".text = "no_yt";
|
||||||
environment.systemPackages = basePackages ++ unproductivePackages;
|
environment.systemPackages = basePackages ++ unproductivePackages;
|
||||||
}
|
}
|
||||||
// blocky_config (
|
// blocky_config (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue