replace int with string for env variable

This commit is contained in:
Andreas Zweili 2022-08-07 15:52:38 +02:00
parent e9cc3d7bdb
commit a9a0b5bb94
3 changed files with 14 additions and 1 deletions

View File

@ -87,7 +87,7 @@
environment.variables = {
EDITOR = "vim";
HIGHLIGHT_STYLE = "solarized-light";
NIXPKGS_ALLOW_UNFREE = 1;
NIXPKGS_ALLOW_UNFREE = "1";
};
security.sudo = {

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
let
remove-special-characters = pkgs.writeShellScriptBin "${builtins.readFile ./remove_special_characters.sh}";
in
{
environment.systemPackages = [ remove-special-characters ];
}

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
find . -print | while read file
do
file_clean=${file//[ ()&\'\,]/_}
mv "$file" "$file_clean"
done