Allow specify user description in flake
This commit is contained in:
parent
53219073a6
commit
b462e4ed6e
2 changed files with 5 additions and 3 deletions
|
@ -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"; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
4
user.nix
4
user.nix
|
@ -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; [
|
||||||
|
|
Loading…
Reference in a new issue