92 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2023-12-01 12:54:30 +01:00
{ config, pkgs, ... }: {
2023-11-04 02:28:27 +01:00
imports = [ ];
users.users.sora = {
home = "/Users/sora";
shell = pkgs.zsh;
};
networking = {
computerName = "asgard";
hostName = "asgard";
};
fonts = {
fontDir.enable = true;
fonts = with pkgs; [ ibm-plex openmoji-color material-design-icons ];
};
environment = {
shells = with pkgs; [ zsh ];
variables = {
EDITOR = "nvim";
VISUAL = "vscodium";
};
systemPackages = with pkgs; [
git
ranger
fd
ripgrep
];
};
programs = { zsh.enable = true; };
services = { nix-daemon.enable = true; };
homebrew = {
enable = true;
onActivation = {
autoUpdate = false;
upgrade = false;
cleanup = "zap";
};
brews = [ "wireguard-tools" ];
casks = [ ];
};
nix = {
package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
settings = {
auto-optimise-store = true;
builders-use-substitutes = true;
substituters = [ "https://cache.nixos.org" ];
trusted-public-keys =
[ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
};
system = {
defaults = {
NSGlobalDomain = {
KeyRepeat = 1;
NSAutomaticCapitalizationEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
};
dock = {
autohide = true;
orientation = "bottom";
showhidden = true;
tilesize = 40;
};
finder = { QuitMenuItem = false; };
trackpad = {
Clicking = true;
TrackpadRightClick = true;
};
};
activationScripts.postActivation.text = "sudo chsh -s ${pkgs.zsh}/bin/zsh";
stateVersion = 4;
};
}