old
 1{
 2  config,
 3  pkgs,
 4  myvars,
 5  ...
 6}: {
 7  # add user's shell into /etc/shells
 8  environment.shells = with pkgs; [
 9    bashInteractive
10    fish
11    nushell
12  ];
13  # set user's default shell system-wide
14  users.defaultUserShell = pkgs.bashInteractive;
15
16  # fix for `sudo xxx` in kitty/wezterm/foot and other modern terminal emulators
17  security.sudo.keepTerminfo = true;
18
19  environment.variables = {
20    # fix https://github.com/NixOS/nixpkgs/issues/238025
21    TZ = "${config.time.timeZone}";
22  };
23
24  services = {
25    gvfs.enable = true; # Mount, trash, and other functionalities
26    tumbler.enable = true; # Thumbnail support for images
27  };
28
29  services.sunshine = {
30    enable = true;
31    autoStart = false;
32    openFirewall = true;
33    capSysAdmin = true;
34  };
35
36  programs.nh.flake = "/home/${myvars.username}/nix-config";
37}