nix:use variables

This commit is contained in:
js0ny 2025-11-02 20:24:17 +00:00
parent cf221c7c4b
commit dfcbd50294
14 changed files with 121 additions and 10 deletions

View file

@ -1,7 +1,15 @@
# ~/.config/nixcfgs/users/js0ny/default.nix
{pkgs, ...}: let
{
pkgs,
config,
...
}: let
username = "js0ny";
in {
imports = [
../../modules/home/options.nix
./config.nix
];
home.username = username;
home.homeDirectory =
if pkgs.stdenv.isDarwin
@ -12,5 +20,7 @@ in {
home-manager
];
home.sessionVariables.TERMINAL = config.currentUser.defaultTerminal;
home.stateVersion = "25.05";
}