From a3c73877429e9972425ea57adf8e84938bda64fa Mon Sep 17 00:00:00 2001 From: Filip Hoffmann Date: Wed, 1 Jan 2025 18:44:13 +0100 Subject: [PATCH] add a lot of stuff --- flake.nix | 4 +++- user/git.nix | 8 ++++++++ user/home.nix | 1 + user/vscode.nix | 6 +++--- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 user/git.nix diff --git a/flake.nix b/flake.nix index 3f89e08..9a8a881 100644 --- a/flake.nix +++ b/flake.nix @@ -41,9 +41,11 @@ }; userSettings = { username = "folo"; - fullName = "Folo"; + fullName = "Filip Hoffmann"; + email = "folosp2@gmail.com"; groups = ["networkmanager" "wheel"]; browser = "firefox"; # any of firefox, none + }; in { nixosConfigurations = { diff --git a/user/git.nix b/user/git.nix new file mode 100644 index 0000000..2b08e6e --- /dev/null +++ b/user/git.nix @@ -0,0 +1,8 @@ +{userSettings, ...}: { + programs.git = { + enable = true; + userName = userSettings.fullName; + userEmail = userSettings.email; + }; + programs.gh.enable = true; +} diff --git a/user/home.nix b/user/home.nix index 2e12a1e..16a3c3c 100644 --- a/user/home.nix +++ b/user/home.nix @@ -5,6 +5,7 @@ ./${userSettings.browser}.nix ./nixvim.nix ./gleam.nix + ./git.nix ]; # Home Manager needs a bit of information about you and the paths it should # manage. diff --git a/user/vscode.nix b/user/vscode.nix index ac9b84f..8d48031 100644 --- a/user/vscode.nix +++ b/user/vscode.nix @@ -33,10 +33,10 @@ "options" = { "nixos" = { - "expr" = "(builtins.getFlake \"/home/${userSettings.username}/dotfiles/\").nixosConfigurations.${systemSettings.hostname}.options"; + "expr" = "(builtins.getFlake \"/home/${userSettings.username}/nixos2/\").nixosConfigurations.${systemSettings.hostname}.options"; }; "home_manager" = { - "expr" = "(builtins.getFlake \"/home/${userSettings.username}/dotfiles/\").homeConfigurations.\"${userSettings.username}\".options"; + "expr" = "(builtins.getFlake \"/home/${userSettings.username}/nixos2/\").homeConfigurations.\"${userSettings.username}\".options"; }; }; }; @@ -47,7 +47,7 @@ "editor.cursorStyle" = "underline"; "editor.cursorBlinking" = "smooth"; "editor.fontFamily" = "JetBrains Mono"; - "editor.fontigatures" = true; + "editor.fontLigatures" = true; "editor.fontSize" = 15; "terminal.integrated.fontFamily" = "JetBrains Mono"; "terminal.integrated.cursorStyle" = "underline"; -- 2.51.2