nixos/modules/common/default.nix

38 lines
792 B
Nix
Raw Normal View History

{ config, lib, pkgs, ...}:
{
2024-05-18 17:32:15 -04:00
imports = [
2024-05-18 17:59:38 -04:00
./applications
2024-05-18 21:07:28 -04:00
./programming
2024-05-18 17:32:15 -04:00
./utilities
];
2024-05-18 17:09:59 -04:00
options = {
user = lib.mkOption {
type = lib.types.str;
description = "Primary user of the system";
};
2024-05-18 17:12:52 -04:00
fullName = lib.mkOption {
type = lib.types.str;
description = "Puny Hooman readable name of the user";
};
2024-05-18 18:11:13 -04:00
gui = {
enable = lib.mkEnableOption {
description = "Enable graphics.";
default = false;
};
2024-05-18 17:59:38 -04:00
};
2024-05-18 17:09:59 -04:00
};
config =
let
stateVersion = "23.11";
in
{
environment.systemPackages = with pkgs; [
vim
wget
curl
];
2024-05-18 17:41:13 -04:00
home-manager.users.${config.user}.home.stateVersion = stateVersion;
home-manager.users.root.home.stateVersion = stateVersion;
};
}