mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 04:40:13 +00:00
Add some simple variables
This commit is contained in:
parent
67c3453177
commit
0a348dcc7b
@ -1,26 +1,27 @@
|
|||||||
{ pkgs, emacs-larstvei, ... }:
|
{ pkgs, emacs-larstvei, ... }:
|
||||||
|
let
|
||||||
|
v = import ./variables.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../system
|
../../system
|
||||||
../../system/darwin
|
../../system/darwin
|
||||||
];
|
];
|
||||||
|
|
||||||
system.primaryUser = "larstvei";
|
system.primaryUser = v.username;
|
||||||
|
|
||||||
networking.hostName = "larstvei-macbookpro";
|
networking.hostName = v.hostName;
|
||||||
|
|
||||||
users.users = {
|
users.users.${v.username} = {
|
||||||
larstvei = {
|
home = v.userHome;
|
||||||
home = "/Users/larstvei";
|
shell = pkgs.fish;
|
||||||
shell = pkgs.fish;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit emacs-larstvei; };
|
extraSpecialArgs = { inherit emacs-larstvei; };
|
||||||
users.larstvei.imports = [ ../../home ];
|
users.${v.username}.imports = [ ../../home ];
|
||||||
};
|
};
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
|
5
hosts/macbook/variables.nix
Normal file
5
hosts/macbook/variables.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
username = "larstvei";
|
||||||
|
userHome = "/Users/larstvei";
|
||||||
|
hostName = "larstvei-macbookpro";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user