Started working on darwin integration

This commit is contained in:
Andrea Ciceri 2021-10-05 20:20:51 +02:00
parent ce354185e8
commit 64342dd5c2
No known key found for this signature in database
GPG key ID: AAFD2423608B645B
5 changed files with 66 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.zsh = {
enable = true;
@ -55,5 +55,8 @@
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
};
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
initExtra = if pkgs.system == "x86_64-darwin"
then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi"
else "";
};
}