Put every variables in top of the file for easy copy to another config

Former-commit-id: 0bd55fdc10
This commit is contained in:
Hadi
2024-10-09 15:12:50 +02:00
parent 3bebb475d7
commit 492d257fa5
27 changed files with 298 additions and 301 deletions

View File

@@ -1,16 +1,20 @@
{ pkgs, config, ... }: {
{ pkgs, config, ... }:
let
hostname = config.var.hostname;
keyboardLayout = config.var.keyboardLayout;
in {
networking.hostName = config.var.hostname;
networking.hostName = hostname;
services = {
xserver = {
enable = true;
xkb.layout = config.var.keyboardLayout;
xkb.layout = keyboardLayout;
xkb.variant = "";
};
gnome.gnome-keyring.enable = true;
};
console.keyMap = config.var.keyboardLayout;
console.keyMap = keyboardLayout;
environment.variables = {
XDG_DATA_HOME = "$HOME/.local/share";