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,10 +1,12 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
let username = config.var.username;
in {
programs.zsh.enable = true;
users = {
defaultUserShell = pkgs.zsh;
users.${config.var.username} = {
users.${username} = {
isNormalUser = true;
description = "${config.var.username} account";
description = "${username} account";
extraGroups = [ "networkmanager" "wheel" ];
};
};