Allow specify user description in flake

This commit is contained in:
Aode 2023-02-15 11:11:28 -06:00
parent 53219073a6
commit b462e4ed6e
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@
./firestar ./firestar
./fonts.nix ./fonts.nix
./packages.nix ./packages.nix
./user.nix (import ./user.nix { name = "Aode"; })
]; ];
}; };
nixosConfigurations.graystripe = nixpkgs.lib.nixosSystem { nixosConfigurations.graystripe = nixpkgs.lib.nixosSystem {
@ -23,7 +23,7 @@
./fonts.nix ./fonts.nix
./graystripe ./graystripe
./packages.nix ./packages.nix
./user.nix (import ./user.nix { name = "Tavi"; })
]; ];
}; };
}; };

View file

@ -1,10 +1,12 @@
{ name }:
{ pkgs, ... }: { pkgs, ... }:
{ {
# Define a user account. Don't forget to set a password with `passwd`. # Define a user account. Don't forget to set a password with `passwd`.
users.users.asonix = { users.users.asonix = {
isNormalUser = true; isNormalUser = true;
description = "Aode"; description = name;
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [ packages = with pkgs; [