feat!(limontozu): add config

This commit is contained in:
reo101 2023-04-17 11:44:54 +03:00
parent 80ec62084d
commit c5c43e9fc5
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
15 changed files with 789 additions and 49 deletions

View file

@ -0,0 +1,81 @@
{ inputs, outputs, lib, pkgs, config, ... }:
{
environment.systemPackages = with pkgs; [ ];
# environment.darwinConfig = builtins.toString ./configuration.nix;
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# nix = {
# # Ensure we can work with flakes
# package = pkgs.nixFlakes;
#
# # This will add each flake input as a registry
# # To make nix3 commands consistent with your flake
# registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
#
# # This will additionally add your inputs to the system's legacy channels
# # Making legacy nix commands consistent as well, awesome!
# nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
#
# settings = {
# # Enable flakes and new 'nix' command
# experimental-features = "nix-command flakes repl-flake";
# # Deduplicate and optimize nix store
# auto-optimise-store = true;
# # Keep outputs and derivations
# keep-outputs = true;
# keep-derivations = true;
# };
# };
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes repl-flake
keep-outputs = true
keep-derivations = true
'';
# NIX_PATH =
# builtins.concatStringsSep
# ":"
# (lib.mapAttrsToList
# (name: input:
# "${name}=${input.url}?rev=${input.locked.rev}")
# inputs);
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
# Fonts
fonts.fontDir.enable = true;
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
reo101 = {
system = {
enable = true;
};
brew = {
enable = true;
};
yabai = {
enable = true;
};
};
# Keyboard
system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToEscape = true;
# Add ability to used TouchID for sudo authentication
security.pam.enableSudoTouchIdAuth = true;
# Used for backwards compatibility, please read the changelog before changing.
# > darwin-rebuild changelog
system.stateVersion = 4;
}

View file

@ -0,0 +1,77 @@
{ inputs, outputs, lib, pkgs, config, ... }:
{
home = {
username = lib.mkForce "pavelatanasov";
homeDirectory = lib.mkForce "/Users/pavelatanasov";
stateVersion = "22.11";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Use this flake's version of nixpkgs
home.sessionVariables = {
NIX_PATH = "nixpkgs=${inputs.nixpkgs}";
};
home.packages = with pkgs; [
# WM
yabai
skhd
# Neovim
neovim
# Dhall
dhall
dhall-lsp-server
# Nix
rnix-lsp
nil
# FMI
vim-fmi-cli
# Zig
zigpkgs.master
inputs.zls-overlay.packages.x86_64-darwin.default
];
reo101 = {
shell = {
enable = true;
direnv = true;
zoxide = true;
};
wezterm = {
enable = true;
};
};
nixpkgs = {
overlays = lib.attrValues outputs.overlays ++ [
inputs.neovim-nightly-overlay.overlay
inputs.zig-overlay.overlays.default
];
config.allowUnfree = true;
};
programs.git = {
enable = true;
userName = "pavelatanasov";
userEmail = "pavel.atanasov@limechain.tech";
# signing = {
# signByDefault = true;
# key = "0x52F3E1D376F692C0";
# };
};
# services.gpg-agent = {
# enable = true;
# defaultCacheTtl = 1800;
# enableSshSupport = true;
# };
}