mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 10:40:43 +00:00
Use roles properly
Originally, I was including all role configurations for all hosts, and controlling which get applied in the role configs with a check in each file. This is a very repetetive and annoying approach. Instead, now the role directory is included manually from the hosts config for devices which meet that role, removing the role options.
This commit is contained in:
parent
c6c3ecb1e9
commit
00016063fe
27 changed files with 375 additions and 610 deletions
|
@ -1,26 +1,15 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
devType = osConfig.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
in {
|
||||
config = mkIf (builtins.elem devType acceptedTypes) {
|
||||
home.packages = with pkgs; [
|
||||
libnotify # send desktop notifications
|
||||
imagemagick # create/edit images
|
||||
trash-cli # interface to freedesktop trashcan
|
||||
bitwarden-cli # pw manager
|
||||
slides # terminal based presentation tool
|
||||
brightnessctl # brightness control
|
||||
pulsemixer # manage audio (TUI)
|
||||
nix-tree # interactively browse nix store
|
||||
glow # render markdown
|
||||
ffmpeg # record, convert and stream audio and video
|
||||
];
|
||||
};
|
||||
{pkgs, ...}: {
|
||||
# TODO: Only apply this to workstations
|
||||
home.packages = with pkgs; [
|
||||
libnotify # send desktop notifications
|
||||
imagemagick # create/edit images
|
||||
trash-cli # interface to freedesktop trashcan
|
||||
bitwarden-cli # pw manager
|
||||
slides # terminal based presentation tool
|
||||
brightnessctl # brightness control
|
||||
pulsemixer # manage audio (TUI)
|
||||
nix-tree # interactively browse nix store
|
||||
glow # render markdown
|
||||
ffmpeg # record, convert and stream audio and video
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue