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
|
2023-03-23 09:59:44 +00:00
|
|
|
# Common stuff
|
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
with lib; {
|
2023-04-02 15:35:59 +00:00
|
|
|
imports = [
|
2024-01-19 13:46:36 +00:00
|
|
|
# defaultShell
|
2024-08-16 12:36:11 +00:00
|
|
|
./modules/services/nix-cache
|
2023-04-02 15:35:59 +00:00
|
|
|
];
|
2023-03-25 10:40:36 +00:00
|
|
|
|
2023-04-18 11:03:19 +00:00
|
|
|
## Packages
|
|
|
|
# Nix options
|
|
|
|
# Always have flakes enabled!
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes repl-flake
|
|
|
|
'';
|
2023-03-23 09:59:44 +00:00
|
|
|
}
|