feat: use user and theme attributes

main
mandlm 2024-07-10 08:17:30 +02:00
parent 428b91c3d5
commit 27b66ec830
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
6 changed files with 19 additions and 15 deletions

View File

@ -25,7 +25,9 @@
];
extraSpecialArgs = {
username = "mandlm";
user = "mandlm";
userName = "Michael Mandl";
userEmail = "mandlm@molez.net";
theme = "dark";
};
};
@ -37,7 +39,9 @@
];
extraSpecialArgs = {
username = "mmandl";
user = "mmandl";
userName = "Michael Mandl";
userEmail = "michael.mandl@horsch.com";
theme = "dark";
};
};

View File

@ -1,7 +1,7 @@
{ ... }:
{ theme, ... }:
let
theme_name = "Solarized (dark)";
theme_name = "Solarized (${theme})";
in
{
programs = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, userName, userEmail, ... }:
{
programs = {
@ -7,8 +7,8 @@
git = {
enable = true;
userName = "Michael Mandl";
userEmail = "michael.mandl@horsch.com";
inherit userName;
inherit userEmail;
signing = {
key = "088ED38F036C7AF2";

View File

@ -1,8 +1,8 @@
{ pkgs, ... }:
{ pkgs, user, ... }:
{
home.username = "mmandl";
home.homeDirectory = "/home/mmandl";
home.username = user;
home.homeDirectory = "/home/${user}";
home.stateVersion = "24.05"; # Please read the comment before changing.

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, theme, ... }:
let
pkg_src = pkgs;
in
@ -160,7 +160,7 @@ in
${builtins.readFile ./telescope.lua }
${builtins.readFile ./themes.lua }
vim.opt.background = 'dark'
vim.opt.background = '${theme}'
${builtins.readFile ./project-nvim.lua }
${builtins.readFile ./dap.lua }

View File

@ -1,8 +1,8 @@
{ pkgs, username, ... }:
{ pkgs, user, ... }:
{
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.username = user;
home.homeDirectory = "/home/${user}";
home.stateVersion = "24.05"; # Please read the comment before changing.