Move shell to fish
This commit is contained in:
parent
1c20f77772
commit
cea4219bff
14
common.nix
14
common.nix
|
@ -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
|
# Common stuff
|
||||||
{ lib, pkgs, config, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
with lib; {
|
with lib; {
|
||||||
|
imports = [ defaultShell ];
|
||||||
# swaync disable notifications on screencast
|
# 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_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'';
|
exec_after = ''which swaync-client && swaync-client --inhibitor-remove "xdg-desktop-portal-wlr" || true'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,6 +154,11 @@
|
||||||
set -q PERL_LOCAL_LIB_ROOT; or set -x PERL_LOCAL_LIB_ROOT ${config.home.homeDirectory}/perl5;
|
set -q PERL_LOCAL_LIB_ROOT; or set -x PERL_LOCAL_LIB_ROOT ${config.home.homeDirectory}/perl5;
|
||||||
set -x PERL_MB_OPT --install_base\ \"${config.home.homeDirectory}/perl5\";
|
set -x PERL_MB_OPT --install_base\ \"${config.home.homeDirectory}/perl5\";
|
||||||
set -x PERL_MM_OPT INSTALL_BASE=${config.home.homeDirectory}/perl5;
|
set -x PERL_MM_OPT INSTALL_BASE=${config.home.homeDirectory}/perl5;
|
||||||
|
|
||||||
|
# Sway!
|
||||||
|
if status --is-login; and which sway >/dev/null; and test -z $DISPLAY; and test (tty) = "/dev/tty1"
|
||||||
|
read -P "Press enter to start sway..."; and exec sway
|
||||||
|
end
|
||||||
'';
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -288,10 +288,10 @@ in
|
||||||
focus.mouseWarping = true;
|
focus.mouseWarping = true;
|
||||||
focus.newWindow = "urgent";
|
focus.newWindow = "urgent";
|
||||||
# Gaps
|
# Gaps
|
||||||
gaps.outer = 3;
|
gaps.outer = 4;
|
||||||
gaps.inner = 4;
|
gaps.inner = 4;
|
||||||
gaps.smartBorders = "off"; # until swayfx fixes clipping bug
|
gaps.smartBorders = "off"; # until swayfx fixes clipping bug
|
||||||
gaps.smartGaps = true;
|
gaps.smartGaps = false;
|
||||||
|
|
||||||
### Bars
|
### Bars
|
||||||
# Let systemd manage it
|
# Let systemd manage it
|
||||||
|
|
|
@ -89,12 +89,6 @@
|
||||||
# keyMap = "us";
|
# keyMap = "us";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# Enable sway on login.
|
|
||||||
environment.loginShellInit = ''
|
|
||||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|
||||||
exec sway
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
# services.xserver.layout = "jp";
|
# services.xserver.layout = "jp";
|
||||||
# services.xserver.xkbOptions = "";
|
# services.xserver.xkbOptions = "";
|
||||||
|
|
Loading…
Reference in a new issue