refactor(infinidoge): inherit from lib
This commit is contained in:
parent
adf130936f
commit
acd97a7b1a
1 changed files with 6 additions and 5 deletions
|
@ -1,15 +1,16 @@
|
||||||
{ config, self, lib, pkgs, suites, profiles, inputs, ... }:
|
{ config, self, lib, pkgs, suites, profiles, inputs, ... }:
|
||||||
let
|
let
|
||||||
|
inherit (lib) flatten optional mkIf;
|
||||||
ifGraphical = lib.optionals config.info.graphical;
|
ifGraphical = lib.optionals config.info.graphical;
|
||||||
ifGraphical' = lib.optional config.info.graphical;
|
ifGraphical' = lib.optional config.info.graphical;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = lib.flatten [
|
imports = flatten [
|
||||||
(with suites; [ develop ])
|
(with suites; [ develop ])
|
||||||
];
|
];
|
||||||
|
|
||||||
home = { config, main, suites, profiles, ... }: {
|
home = { config, main, suites, profiles, ... }: {
|
||||||
imports = lib.flatten [
|
imports = flatten [
|
||||||
(with suites; [
|
(with suites; [
|
||||||
base
|
base
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ in
|
||||||
firefox.enable = main.info.graphical;
|
firefox.enable = main.info.graphical;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; lib.flatten [
|
home.packages = with pkgs; flatten [
|
||||||
ncdu
|
ncdu
|
||||||
|
|
||||||
keepassxc
|
keepassxc
|
||||||
|
@ -51,7 +52,7 @@ in
|
||||||
|
|
||||||
discord-canary
|
discord-canary
|
||||||
|
|
||||||
(lib.optional main.modules.hardware.form.desktop qbittorrent)
|
(optional main.modules.hardware.form.desktop qbittorrent)
|
||||||
])
|
])
|
||||||
|
|
||||||
arduino
|
arduino
|
||||||
|
@ -97,7 +98,7 @@ in
|
||||||
user = {
|
user = {
|
||||||
name = "infinidoge";
|
name = "infinidoge";
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
passwordFile = lib.mkIf config.modules.secrets.enable config.secrets.infinidoge-password;
|
passwordFile = mkIf config.modules.secrets.enable config.secrets.infinidoge-password;
|
||||||
description = "Infinidoge, primary user of the system";
|
description = "Infinidoge, primary user of the system";
|
||||||
group = "users";
|
group = "users";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue