Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: Rework hardcoded username

+5 -3
+3 -2
modules/home/cli/git/default.nix
··· 5 5 }: let 6 6 namespace = ["my" "modules" "cli" "git"]; 7 7 cfg = lib.getAttrFromPath namespace config; 8 + inherit (lib.lpchaim.shared) defaults; 8 9 in { 9 10 options = lib.setAttrByPath namespace { 10 11 enable = lib.mkEnableOption "git"; ··· 21 22 push.autoSetupRemote = true; 22 23 pull.rebase = false; 23 24 }; 24 - userEmail = "lpchaim@gmail.com"; 25 - userName = "Lucas Chaim"; 25 + userEmail = defaults.name.email; 26 + userName = defaults.name.full; 26 27 }; 27 28 lazygit.enable = lib.mkIf cfg.lazygit.enable true; 28 29 };
+2 -1
systems/x86_64-linux/desktop/default.nix
··· 1 1 {lib, ...}: let 2 2 inherit (lib.lpchaim.nixos) getTraitModules; 3 + inherit (lib.lpchaim.shared.defaults) name; 3 4 inherit (lib.lpchaim.storage.btrfs) mkStorage; 4 5 in { 5 6 imports = ··· 25 26 my.networking.tailscale.trusted = true; 26 27 my.security.secureboot.enable = true; 27 28 28 - fileSystems."/run/media/lpchaim/storage" = { 29 + fileSystems."/run/media/${name.user}/storage" = { 29 30 device = "/dev/disk/by-id/ata-ADATA_SU630_2J0220042661-part1"; 30 31 fsType = "ntfs3"; 31 32 options = [