minor changes

This commit is contained in:
NullBite 2024-02-16 17:53:57 +01:00
parent 34d654d434
commit fcf9992b3e
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
5 changed files with 26 additions and 2 deletions

View File

@ -53,6 +53,7 @@
android-tools android-udev-rules; android-tools android-udev-rules;
}) })
inputs.hyprwm-contrib.overlays.default inputs.hyprwm-contrib.overlays.default
inputs.rust-overlay.overlays.default
]; ];
### Configuration ### Configuration

View File

@ -7,7 +7,7 @@ in
enable = lib.mkEnableOption "communication package set"; enable = lib.mkEnableOption "communication package set";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; lib.optionals config.nixfiles.graphical [ home.packages = with pkgs; lib.optionals config.nixfiles.meta.graphical [
( if config.nixfiles.meta.wayland then element-desktop-wayland else element-desktop ) ( if config.nixfiles.meta.wayland then element-desktop-wayland else element-desktop )
telegram-desktop telegram-desktop
signal-desktop signal-desktop

View File

@ -9,7 +9,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
neovim neovim
rg ripgrep
fd fd
bat bat

View File

@ -2,5 +2,6 @@
{ {
imports = [ imports = [
./base.nix ./base.nix
./pc.nix
]; ];
} }

22
home/profile/pc.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs, config, osConfig ? {}, lib, ...}:
let
cfg = config.nixfiles.profile.pc;
default = osConfig ? nixfiles && osConfig.nixfiles.profile.pc.enable;
in
{
options.nixfiles.profile.pc.enable = lib.mkOption {
description = "Whether to enable the personal computer profile";
type = lib.types.bool;
inherit default;
example = true;
};
config = lib.mkIf cfg.enable {
nixfiles = {
profile.base.enable = true;
packageSets = {
communication.enable = true;
dev.enable = true;
};
};
};
}