feat: use user and theme attributes
This commit is contained in:
parent
428b91c3d5
commit
27b66ec830
6 changed files with 19 additions and 15 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ ... }:
|
||||
{ theme, ... }:
|
||||
|
||||
let
|
||||
theme_name = "Solarized (dark)";
|
||||
theme_name = "Solarized (${theme})";
|
||||
in
|
||||
{
|
||||
programs = {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue