Add audio packages, enable home-manager stuff

This commit is contained in:
Patrick Menking 2024-09-17 10:08:46 -04:00
parent 0fe8811b69
commit 86c1af2c53
4 changed files with 46 additions and 13 deletions

View file

@ -17,17 +17,22 @@
users = {
enable = lib.mkEnableOption "enables users";
crow.enable = lib.mkEnableOption "enable crow";
crow = {
enable = lib.mkEnableOption "enable crow";
home.enable = lib.mkEnableOption "enable home configuration";
};
};
};
config = {
system.stateVersion = "24.05";
time.timeZone = "America/New_York";
users = {
enable = lib.mkDefault true;
crow.enable = lib.mkDefault true;
};
users = {
enable = lib.mkDefault true;
crow.enable = lib.mkDefault true;
};
packages = {
enable = lib.mkDefault true;
core.enable = lib.mkDefault true;

17
modules/home/crow.nix Normal file
View file

@ -0,0 +1,17 @@
{pkgs, ...}: let
username = "crow";
homeDirectory = "/home/${username}";
configHome = "${homeDirectory}/.config";
in {
home = {
inherit username homeDirectory;
stateVersion = system.stateVersion;
};
xdg = {
inherit configHome;
enable = true;
}
programs = {};
}

9
modules/home/default.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, ... }: {
imports = [
(
if config.users.crow.home.enable then
./crow.nix
);
# ++ ( to add more, just move the ;
];
}

View file

@ -11,13 +11,22 @@
curl
foot
tmux
pulseaudio
] else []
)
++ (
if config.packages.gui.enable
then [
# Note taking
# Writing
logseq
hunspellDicts.en-us
libreoffice
hunspell
# Audio
pavucontrol
pulsemixer
noisetorch
# Communication
mattermost-desktop
@ -38,13 +47,6 @@
# Utilities
grim
hyfetch
wofi
waybar
swaynotificationcenter
udiskie
swayidle
hyprlock
pulseaudio
gimp
] else []
)