nix-home/common.nix

27 lines
625 B
Nix
Raw Permalink 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 = [
2024-01-19 13:46:36 +00:00
# defaultShell
2024-08-16 12:36:11 +00:00
./modules/services/nix-cache
./modules/services/nix-build-farm
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
'';
}