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
./fonts.nix
./packages.nix
./user.nix
(import ./user.nix { name = "Aode"; })
];
};
nixosConfigurations.graystripe = nixpkgs.lib.nixosSystem {
@ -23,7 +23,7 @@
./fonts.nix
./graystripe
./packages.nix
./user.nix
(import ./user.nix { name = "Tavi"; })
];
};
};

View file

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