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,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";