forked from pub-solar/os
Benjamin Bädorf
c2bc749beb
Adds a `config.pub-solar.audio.spotify` option that when enabled installs and configures `spotifyd` as a systemd daemon and `spotify-tui` as the terminal-based UI. After enabling, run `spt` in the terminal to open the UI.
32 lines
860 B
Nix
32 lines
860 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
psCfg = config.pub-solar;
|
|
in
|
|
{
|
|
imports = [
|
|
./home.nix
|
|
];
|
|
|
|
users = {
|
|
mutableUsers = false;
|
|
|
|
users = with pkgs; pkgs.lib.setAttrByPath [ psCfg.user.name ] {
|
|
# Indicates whether this is an account for a “real” user.
|
|
# This automatically sets group to users, createHome to true,
|
|
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
|
|
isNormalUser = true;
|
|
description = psCfg.user.description;
|
|
extraGroups = [
|
|
"wheel"
|
|
"input"
|
|
"networkmanager"
|
|
"lp"
|
|
"scanner"
|
|
];
|
|
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
|
|
shell = pkgs.zsh;
|
|
openssh.authorizedKeys.keyFiles = if psCfg.user.publicKeys != null then psCfg.user.publicKeys else [ ];
|
|
};
|
|
};
|
|
}
|