diff --git a/.gitignore b/.gitignore index d83c8b9..8962c97 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,10 @@ dotfiles/nvim/spell/*.spl dotfiles/nvim/spell/*.sug dotfiles/nvim/lazy-lock.json dotfiles/hypr/wallpaper +hosts/*/hardware-configuration.nix +result +result-* +.direnv/ +*.swp +.DS_Store +inkscape/*.backup/ diff --git a/README.md b/README.md index 0f8f0c2..315c230 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,19 @@ +> [!IMPORTANT] +> Ne pas oublier de copier hardware-configuration depuis `/etc/nixos`, et créer un fichier dans `home/personal.nix` comme suit : +```nix +{ + username = "myUserName"; + email = "myGitEmail"; + fullName = "myGitFullname"; + homeDirectory = "/home/myUserName"; +} +``` + # How to use ## Raccourcis utiles ``` +Lancer start-hyprland dans le tty au démarrage + ALT Q : ouvre le terminal ALT N : ouvre neovim ALT W : ouvre le sélecteurs de programmes diff --git a/dotfiles/dots.zip b/dotfiles/dots.zip new file mode 100644 index 0000000..9e919a1 Binary files /dev/null and b/dotfiles/dots.zip differ diff --git a/home/afoucaultc/home-laptop.nix b/home/afoucaultc/home-laptop.nix index c719826..b65e46e 100644 --- a/home/afoucaultc/home-laptop.nix +++ b/home/afoucaultc/home-laptop.nix @@ -1,7 +1,10 @@ { ... }: +let + personal = import ../../personal.nix; +in { - home.username = "afoucaultc"; - home.homeDirectory = "/home/afoucaultc"; + home.username = personal.username; + home.homeDirectory = personal.homeDirectory; home.stateVersion = "26.05"; imports = [ # fichier individuel dans packages = programs.xyz existant diff --git a/home/afoucaultc/home.nix b/home/afoucaultc/home.nix index f8e93b0..9fa6d74 100644 --- a/home/afoucaultc/home.nix +++ b/home/afoucaultc/home.nix @@ -1,7 +1,10 @@ { ... }: +let + personal = import ../../personal.nix; +in { - home.username = "afoucaultc"; - home.homeDirectory = "/home/afoucaultc"; + home.username = personal.username; + home.homeDirectory = personal.homeDirectory; home.stateVersion = "26.05"; imports = [ # fichier individuel dans packages = programs.xyz existant diff --git a/home/afoucaultc/packages/git.nix b/home/afoucaultc/packages/git.nix index 022d1d3..3957fd0 100644 --- a/home/afoucaultc/packages/git.nix +++ b/home/afoucaultc/packages/git.nix @@ -1,10 +1,11 @@ { ... }: +let + personal = import ../../personal.nix; +in { programs.git = { enable = true; - settings.user.name = "afoucaultc"; - settings.user.email = "antoine.fo.ca@proton.me"; - #userName = "afoucaultc"; - #userEmail = "antoine.fo.ca@proton.me"; + settings.user.name = personal.username; + settings.user.email = personal.email; }; } diff --git a/home/personal.nix b/home/personal.nix new file mode 100644 index 0000000..4681952 --- /dev/null +++ b/home/personal.nix @@ -0,0 +1,6 @@ +{ + username = "afoucaultc"; + email = "antoine.fo.ca@proton.me"; + fullName = "Antoine Foucault"; + homeDirectory = "/home/afoucaultc/"; +}