init
This commit is contained in:
31
modules/home.nix
Normal file
31
modules/home.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ config, pkgs, lazyvim, lib, inputs, ... }:
|
||||
let
|
||||
lazyvim-config = pkgs.runCommand "lazyvim-config" {} ''
|
||||
cp -r ${inputs.lazyvim} $out
|
||||
rm -rf $out/.git
|
||||
'';
|
||||
in {
|
||||
|
||||
# Dein Benutzername und Home‑Verzeichnis
|
||||
home.username = "peter";
|
||||
home.homeDirectory = "/home/peter";
|
||||
|
||||
# Pakete, die nur für diesen Benutzer installiert werden
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
||||
# Beispiel: Git‑Konfiguration
|
||||
programs.git.settings.user = {
|
||||
enable = true;
|
||||
userName = "peter";
|
||||
userEmail = "peter@email";
|
||||
};
|
||||
|
||||
home.file.".config/nvim" = {
|
||||
source = lazyvim-config;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
# Wichtig: State‑Version (an deine NixOS‑Version anpassen)
|
||||
# home.stateVersion = "23.11";
|
||||
}
|
||||
Reference in New Issue
Block a user