nix-config/hosts/poppy/default.nix

37 lines
790 B
Nix

{ pkgs, ... }:
{
networking.hostName = "poppy";
# Allow unfree packages (some macOS-ported tools need it)
nixpkgs.config.allowUnfree = true;
system.primaryUser = "mikl";
# nix settings
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
users.users.michaotic = {
home = "/Users/michaotic";
shell = pkgs.zsh;
};
environment.systemPackages = [
pkgs.vim
];
system.stateVersion = 7;
# Home-manager configuration specific to poppy
home-manager.users.michaotic = {
imports = [ ../../home/kitty.nix ];
programs.zsh.shellAliases = {
switch = "darwin-rebuild switch --flake .#poppy";
update = "nix flake update && darwin-rebuild switch --flake .#poppy";
cleanup = "nix-collect-garbage -d";
};
};
}