better use of options

This commit is contained in:
twoneis 2024-06-07 12:56:40 +02:00
parent 6cf1fb0554
commit fc4faa4a1a
5 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
{ ... }: {
minimalHome = false;
full = false;
withAudio = true;
withBluetooth = true;

View file

@ -1,5 +1,5 @@
{ ... }: {
minimalHome = true;
full = true;
withAudio = true;
withBluetooth = true;

View file

@ -1,5 +1,5 @@
{ ... }: {
minimalHome = false;
full = false;
withAudio = true;
withBluetooth = true;

View file

@ -1,18 +1,18 @@
{ config, ... }: let
imp = if config.minimalHome then [
./utils
] else [
./niri-setup
./programs
./themes
./utils
];
in {
{ config, ... }: {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.twoneis = {
imports = imp;
imports = [
./utils
] ++ (if config.withNiri then [
./niri-setup
./themes
] else []) ++ (if config.withGnome then [
./themes
] else []) ++ (if config.full then [
./programs
] else []);
home = {
username = "twoneis";

View file

@ -1,6 +1,6 @@
{ lib, ... }: {
options = with lib; {
minimalHome = mkEnableOption "Minimal home manager configuration with only cli utilities";
full = mkEnableOption "Full home manager configuration with all programs";
withAudio = mkEnableOption "Enable support for audio";
withBluetooth = mkEnableOption "Enable bluetooth";