docs: add README.md

This commit is contained in:
dachxy 2025-01-03 13:59:16 +08:00
parent fe1d9adfa8
commit 1c2b263904
19 changed files with 241 additions and 73 deletions

View file

@ -2,11 +2,12 @@
{
boot.loader.systemd-boot.enable = true;
# Enable F keys in some wireless keyboard (Ex. neo65)
boot.extraModprobeConfig = ''
options hid_apple fnmode=2
'';
boot.initrd.systemd.enable = true;
boot.initrd.kernelModules = [ "i915" ];
boot.swraid.enable = true;
}

View file

@ -1,7 +1,18 @@
{ lib, system, inputs, nix-version, ... }:
{
lib,
system,
inputs,
nix-version,
...
}:
let
cursor-size = "24";
username = "danny";
git-config = {
username = "DACHXY";
email = "danny10132024@gmail.com";
};
in
{
imports = [
@ -19,8 +30,18 @@ in
system.stateVersion = nix-version;
home-manager = {
backupFileExtension = "hm-backup";
extraSpecialArgs = { inherit inputs system nix-version cursor-size; };
users."danny" = { imports = [ ../../../home ]; };
extraSpecialArgs = {
inherit
inputs
system
nix-version
cursor-size
git-config
username
;
};
users."${username}" = {
imports = [ ../../../home ];
};
};
}