nixos/modules/common/default.nix

30 lines
639 B
Nix

{ config, lib, pkgs, ...}:
{
imports = [
./utilities
];
options = {
user = lib.mkOption {
type = lib.types.str;
description = "Primary user of the system";
};
fullName = lib.mkOption {
type = lib.types.str;
description = "Puny Hooman readable name of the user";
};
};
config =
let
stateVersion = "23.11";
in
{
environment.systemPackages = with pkgs; [
vim
wget
curl
vscode
];
home-manager.users.${config.user}.home.stateVersion = stateVersion;
home-manager.users.root.home.stateVersion = stateVersion;
};
}