dotfiles/nixos/boxes/macmini/default.nix

53 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
pkgs,
inputs,
lib,
nixpkgs-nixos-unstable-and-unfree,
...
}: {
environment.systemPackages = with pkgs; [vim nixfmt];
2022-03-10 12:21:27 +00:00
2022-12-19 09:09:08 +00:00
imports = [../../git ../../mercurial];
2022-03-10 12:21:27 +00:00
services.nix-daemon.enable = true;
nix = {
useDaemon = true;
gc.automatic = true;
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
2022-03-10 12:47:31 +00:00
fonts.enableFontDir = true;
2022-03-11 10:27:49 +00:00
fonts.fonts = with pkgs; [
(fetchzip {
name = "berkeley-mono-fonts";
url = "file:///" + ../../fonts.zip;
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "sha256-y+j3iHGXJP1pdylLJTlxbhyQ1oFAwini3o3ljLzOsoM=";
})
fira-code
font-awesome
iosevka
material-icons
nerdfonts
noto-fonts-emoji
powerline-fonts
source-code-pro
weather-icons
];
2022-03-10 12:47:31 +00:00
2022-03-10 12:21:27 +00:00
programs.zsh.enable = true; # default shell on catalina
system.stateVersion = 4;
2022-12-19 09:09:08 +00:00
home-manager.users.cyryl = {...}: {
imports = [];
home.packages = [];
2022-03-10 12:21:27 +00:00
};
}