IN PROGRESS COMMIT. does not currently build.

Attempting to make nixos config that incorperates a non-nixos HM config.
This commit is contained in:
Gabe Venberg 2024-04-03 17:50:53 -05:00
parent be670ea374
commit fe1ed3e1be
14 changed files with 237 additions and 172 deletions

View file

@ -0,0 +1,21 @@
{
config,
pkgs,
lib,
...
}: {
home.stateVersion = "23.11"; # Please read the comment before changing.
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# enable flakes
nix =
lib.mkIf config.targets.genericLinux.enable
{
package = pkgs.nix;
settings.experimental-features = ["nix-command" "flakes"];
settings.max-jobs = "auto";
gc.automatic = true;
};
}

View file

@ -0,0 +1,9 @@
{
config,
pkgs,
...
}: {
# Enable networking
networking.networkmanager.enable = true;
users.users.${config.host.user}.extraGroups = ["networkmanager"];
}

16
modules/both/sound.nix Normal file
View file

@ -0,0 +1,16 @@
{
config,
pkgs,
...
}: {
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}