nix-home/common.nix

25 lines
552 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
];
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
'';
}