better use of options
This commit is contained in:
parent
6cf1fb0554
commit
fc4faa4a1a
5 changed files with 15 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
minimalHome = false;
|
full = false;
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
minimalHome = true;
|
full = true;
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
minimalHome = false;
|
full = false;
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
{ config, ... }: let
|
{ config, ... }: {
|
||||||
imp = if config.minimalHome then [
|
|
||||||
./utils
|
|
||||||
] else [
|
|
||||||
./niri-setup
|
|
||||||
./programs
|
|
||||||
./themes
|
|
||||||
./utils
|
|
||||||
];
|
|
||||||
in {
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.twoneis = {
|
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 = {
|
home = {
|
||||||
username = "twoneis";
|
username = "twoneis";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
options = with 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";
|
withAudio = mkEnableOption "Enable support for audio";
|
||||||
withBluetooth = mkEnableOption "Enable bluetooth";
|
withBluetooth = mkEnableOption "Enable bluetooth";
|
||||||
|
|
Loading…
Add table
Reference in a new issue