Move shell to fish

This commit is contained in:
Natsu Kagami 2023-03-25 11:40:36 +01:00
parent 1c20f77772
commit cea4219bff
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
4 changed files with 20 additions and 9 deletions

View file

@ -1,9 +1,21 @@
let
# Default shell
defaultShell = { lib, pkgs, config, ... }: with lib; {
environment.shells = with pkgs; [ bash fish ];
users.users = mkMerge [
{ nki.shell = pkgs.fish; }
# (mkIf (builtins.hasAttr "natsukagami" config.users.users) { natsukagami.shell = pkgs.fish; })
];
};
in
# Common stuff
{ lib, pkgs, config, ... }:
with lib; {
imports = [ defaultShell ];
# swaync disable notifications on screencast
xdg.portal.wlr.settings.screencast = {
config.xdg.portal.wlr.settings.screencast = {
exec_before = ''which swaync-client && swaync-client --inhibitor-add "xdg-desktop-portal-wlr" || true'';
exec_after = ''which swaync-client && swaync-client --inhibitor-remove "xdg-desktop-portal-wlr" || true'';
};
}