init new host

Signed-off-by: pph <pph@pph.pph>
This commit is contained in:
pph
2026-02-05 19:57:56 +01:00
parent 5736c8ccf2
commit 87778bd3fa
7 changed files with 247 additions and 0 deletions

42
hosts/pph/variables.nix Normal file
View File

@@ -0,0 +1,42 @@
{
config,
lib,
...
}: {
imports = [
# Choose your theme here:
../../themes/rose-pine.nix
];
config.var = {
hostname = "pph";
username = "hadrien";
configDirectory =
"/home/"
+ config.var.username
+ "/.config/nixos"; # The path of the nixos configuration directory
keyboardLayout = "fr";
location = "Paris";
timeZone = "Europe/Paris";
defaultLocale = "en_US.UTF-8";
extraLocale = "fr_FR.UTF-8";
git = {
username = "pph";
email = "pph@pph.pph";
};
autoUpgrade = false;
autoGarbageCollector = true;
};
# DON'T TOUCH THIS
options = {
var = lib.mkOption {
type = lib.types.attrs;
default = {};
};
};
}