mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
refactor: Use haumea for filesystem-based module system for flake outputs
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
config,
|
||||
username,
|
||||
myvars,
|
||||
...
|
||||
}: let
|
||||
homeDir = config.users.users."${username}".home;
|
||||
homeDir = config.users.users."${myvars.username}".home;
|
||||
in {
|
||||
# https://github.com/LnL7/nix-darwin/blob/master/modules/programs/gnupg.nix
|
||||
# try `pkill gpg-agent` if you have issues(such as `no pinentry`)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{username, ...}: {
|
||||
{myvars, ...}: {
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users."${username}" = {
|
||||
home = "/Users/${username}";
|
||||
users.users."${myvars.username}" = {
|
||||
home = "/Users/${myvars.username}";
|
||||
|
||||
# set user's default shell back to zsh
|
||||
# `chsh -s /bin/zsh`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
config,
|
||||
username,
|
||||
myvars,
|
||||
...
|
||||
}: {
|
||||
services.skhd = {
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
# custom log path for debugging
|
||||
launchd.user.agents.skhd.serviceConfig = let
|
||||
homeDir = config.users.users."${username}".home;
|
||||
homeDir = config.users.users."${myvars.username}".home;
|
||||
in {
|
||||
StandardErrorPath = "${homeDir}/Library/Logs/skhd.stderr.log";
|
||||
StandardOutPath = "${homeDir}/Library/Logs/skhd.stdout.log";
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
myvars,
|
||||
pkgs-unstable,
|
||||
...
|
||||
}: let
|
||||
homeDir = config.users.users."${username}".home;
|
||||
homeDir = config.users.users."${myvars.username}".home;
|
||||
in {
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/darwin/yabai/default.nix
|
||||
services.yabai = {
|
||||
|
||||
Reference in New Issue
Block a user