Migrated from import based to config based
This commit is contained in:
34
modules/system/applications/common.nix
Normal file
34
modules/system/applications/common.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.applications.common;
|
||||
in {
|
||||
options = {
|
||||
settings.applications.common.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable common applications
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
usbutils
|
||||
tree
|
||||
fastfetch
|
||||
btop
|
||||
git
|
||||
yazi
|
||||
|
||||
just
|
||||
];
|
||||
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user