nix-home/common.nix

26 lines
771 B
Nix
Raw Normal View History

2023-03-25 10:40:36 +00:00
let
# Default shell
defaultShell = { lib, pkgs, config, ... }: with lib; {
environment.shells = with pkgs; [ bash fish ];
users.users = mkMerge [
2023-03-31 14:49:02 +00:00
{ nki.shell = pkgs.bash; }
2023-03-25 10:40:36 +00:00
# (mkIf (builtins.hasAttr "natsukagami" config.users.users) { natsukagami.shell = pkgs.fish; })
];
};
in
# Common stuff
{ lib, pkgs, config, ... }:
with lib; {
2023-04-02 15:35:59 +00:00
imports = [
defaultShell
./modules/common/linux
./modules/my-tinc
];
# swaync disable notifications on screencast
2023-03-25 10:40:36 +00:00
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'';
};
2023-03-25 10:40:36 +00:00
}