nixos-config/darwin/maud/default.nix

77 lines
1.5 KiB
Nix

{
pkgs,
lib,
inputs,
config,
...
}:
{
environment.systemPackages = with pkgs; [
ripgrep
nix-output-monitor
openssh
git
];
services.nix-daemon.enable = true;
programs = {
fish = {
enable = true;
loginShellInit = ''
fish_add_path --move --prepend --path ${
lib.escapeShellArgs (builtins.map (profile: "${profile}/bin") config.environment.profiles)
}
set fish_user_paths $fish_user_paths
'';
};
zsh.enable = true;
};
users.users.artemis = {
name = "artemis";
home = "/Users/artemis";
};
home-manager.users.artemis = {
imports = [
../../home/fish.nix
../../home/git.nix
../../home/ssh
../../home/tmux.nix
];
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.git = {
signing.key = "/Users/artemis/.ssh/id_ecdsa_sk";
extraConfig.gpg.format = "ssh";
};
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
imports = [
inputs.nixvim.nixDarwinModules.nixvim
(import ../../sets/nvim.nix {
inherit lib;
path = [
"programs"
"nixvim"
];
})
];
programs.nixvim.enable = true;
environment.loginShell = "${pkgs.fish}/bin/fish";
nix.settings.experimental-features = "nix-command flakes";
nixpkgs.overlays = [ inputs.lix-module.overlays.default ];
nixpkgs.hostPlatform = "x86_64-darwin";
system.stateVersion = 4;
home-manager.users.artemis.home.stateVersion = "23.11";
}