Add some simple variables

This commit is contained in:
larstvei 2025-08-23 16:28:52 +02:00
parent 67c3453177
commit 0a348dcc7b
2 changed files with 14 additions and 8 deletions

View File

@ -1,26 +1,27 @@
{ pkgs, emacs-larstvei, ... }:
let
v = import ./variables.nix;
in
{
imports = [
../../system
../../system/darwin
];
system.primaryUser = "larstvei";
system.primaryUser = v.username;
networking.hostName = "larstvei-macbookpro";
networking.hostName = v.hostName;
users.users = {
larstvei = {
home = "/Users/larstvei";
shell = pkgs.fish;
};
users.users.${v.username} = {
home = v.userHome;
shell = pkgs.fish;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit emacs-larstvei; };
users.larstvei.imports = [ ../../home ];
users.${v.username}.imports = [ ../../home ];
};
homebrew = {

View File

@ -0,0 +1,5 @@
{
username = "larstvei";
userHome = "/Users/larstvei";
hostName = "larstvei-macbookpro";
}