feat: redesign the project structure

This commit is contained in:
ryan4yin
2023-05-26 19:25:44 +08:00
parent ab11958597
commit f971ec030d
124 changed files with 711 additions and 540 deletions

View File

@@ -1,5 +1,27 @@
{ pkgs, lib, ... }:
{
# # enable flakes globally
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# Use this instead of services.nix-daemon.enable if you
# don't wan't the daemon service to be managed for you.
# nix.useDaemon = true;
nix.package = pkgs.nix;
programs.nix-index.enable = true;
# Add ability to used TouchID for sudo authentication
security.pam.enableSudoTouchIdAuth = true;
# Keyboard
system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToEscape = true;
# Set your time zone.
time.timeZone = "Asia/Shanghai";
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true;
@@ -8,9 +30,6 @@
# `home-manager` currently has issues adding them to `~/Applications`
# Issue: https://github.com/nix-community/home-manager/issues/1341
environment.systemPackages = with pkgs; [
alacritty
jq
bat
];
# Fonts