feat: darwin configuration, LnL7/nix-darwin#310 patch

This commit is contained in:
Kat Inskip 2022-07-11 10:43:50 -07:00
parent 6e1080ad2c
commit 2e98ec90e0
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
20 changed files with 183 additions and 82 deletions

View file

@ -36,7 +36,7 @@
"listrowsfirst"
]; in
''
${if lib.hasSuffix "linux" pkgs.stdenv.system then ''
${if pkgs.hostPlatform.isLinux then ''
eval $(dircolors)
'' else ''
''}
@ -72,7 +72,7 @@
dmesg = "dmesg -HP";
hg = "history 0 | rg";
}
(lib.mkIf (lib.hasSuffix "linux" pkgs.stdenv.system) {
(lib.mkIf pkgs.hostPlatform.isLinux {
sys = "systemctl";
sysu = "systemctl --user";
walls = "journalctl _SYSTEMD_INVOCATION_ID=$(systemctl show -p InvocationID --value konawall.service --user) -o json | jq -r '.MESSAGE'";