nixos-config/darwin/maud/default.nix

89 lines
1.7 KiB
Nix

{
pkgs,
lib,
inputs,
config,
...
}:
{
environment.systemPackages = with pkgs; [
_7zz
git
htop
jq
nix-output-monitor
openssh
ripgrep
wormhole-rs
];
environment.variables.EDITOR = "nvim";
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
inputs.nix-index-database.hmModules.nix-index
];
programs.nix-index-database.comma.enable = true;
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";
services.nix-daemon.enable = true;
nix.settings = {
sandbox = true;
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";
}