Merge pull request #60223 from Ma27/write-i3cfg-to-etc

nixos/window-managers/i3: write config file to `/etc/i3/config`
This commit is contained in:
Matthieu Coudron 2019-04-27 18:46:57 +09:00 committed by GitHub
commit 03fb00d565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,12 +60,15 @@ in
${cfg.extraSessionCommands}
${cfg.package}/bin/i3 ${optionalString (cfg.configFile != null)
"-c \"${cfg.configFile}\""
"-c /etc/i3/config"
} &
waitPID=$!
'';
}];
environment.systemPackages = [ cfg.package ] ++ cfg.extraPackages;
environment.etc."i3/config" = mkIf (cfg.configFile != null) {
source = cfg.configFile;
};
};
imports = [