From b462e4ed6eb99c23dd26d8ab48f6b9b7d7f86b33 Mon Sep 17 00:00:00 2001 From: Aode Date: Wed, 15 Feb 2023 11:11:28 -0600 Subject: [PATCH] Allow specify user description in flake --- flake.nix | 4 ++-- user.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a57a617..fd08309 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; }) ]; }; }; diff --git a/user.nix b/user.nix index e9e6fc2..d1ceb24 100644 --- a/user.nix +++ b/user.nix @@ -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; [