mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
parent
f45c7000d5
commit
9068ff292c
1 changed files with 11 additions and 0 deletions
|
@ -158,6 +158,17 @@ in {
|
|||
home.packages = [ pkgs.offlineimap ];
|
||||
|
||||
xdg.configFile."offlineimap/get_settings.py".text = cfg.pythonFile;
|
||||
xdg.configFile."offlineimap/get_settings.pyc".source = "${
|
||||
pkgs.runCommandLocal "get_settings-compile" {
|
||||
nativeBuildInputs = [ pkgs.python2 ];
|
||||
pythonFile = cfg.pythonFile;
|
||||
passAsFile = [ "pythonFile" ];
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
cp $pythonFilePath $out/bin/get_settings.py
|
||||
python2 -m py_compile $out/bin/get_settings.py
|
||||
''
|
||||
}/bin/get_settings.pyc";
|
||||
|
||||
xdg.configFile."offlineimap/config".text = ''
|
||||
# Generated by Home Manager.
|
||||
|
|
Loading…
Reference in a new issue