fix audio

This commit is contained in:
Mira 2024-07-15 19:07:30 -04:00
parent f411e2a52e
commit 7f6dac8e34
3 changed files with 44 additions and 22 deletions

View file

@ -79,8 +79,8 @@
# services.printing.enable = true; # services.printing.enable = true;
# Enable sound. # Enable sound.
sound.enable = true; # sound.enable = true;
hardware.pulseaudio.enable = true; # hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
@ -233,6 +233,14 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services = { services = {
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
openssh = { openssh = {
enable = true; enable = true;
settings = { settings = {

26
flake.lock generated
View file

@ -186,16 +186,14 @@
}, },
"nix-darwin": { "nix-darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs-darwin"
]
}, },
"locked": { "locked": {
"lastModified": 1719845423, "lastModified": 1720845312,
"narHash": "sha256-ZLHDmWAsHQQKnmfyhYSHJDlt8Wfjv6SQhl2qek42O7A=", "narHash": "sha256-yPhAsJTpyoIPQZJGC8Fw8W2lAXyhLoTn+HP20bmfkfk=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "ec12b88104d6c117871fad55e931addac4626756", "rev": "5ce8503cf402cf76b203eba4b7e402bea8e44abc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -269,6 +267,20 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1718149104,
"narHash": "sha256-Ds1QpobBX2yoUDx9ZruqVGJ/uQPgcXoYuobBguyKEh8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e913ae340076bbb73d9f4d3d065c2bca7caafb16",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1720954236, "lastModified": 1720954236,
"narHash": "sha256-1mEKHp4m9brvfQ0rjCca8P1WHpymK3TOr3v34ydv9bs=", "narHash": "sha256-1mEKHp4m9brvfQ0rjCca8P1WHpymK3TOr3v34ydv9bs=",
@ -289,7 +301,7 @@
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-nightly-overlay": "neovim-nightly-overlay",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nixos-unstable": "nixos-unstable", "nixos-unstable": "nixos-unstable",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"nixpkgs-darwin": "nixpkgs-darwin", "nixpkgs-darwin": "nixpkgs-darwin",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }

View file

@ -3,20 +3,20 @@
description = "flake for mira::{auxin, leptin, gastrin}"; description = "flake for mira::{auxin, leptin, gastrin}";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixos-unstable = { nixos-unstable = {
url = "github:NixOS/nixpkgs/nixos-unstable"; url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nixpkgs.follows = "nixos-unstable"; # inputs.nixpkgs.follows = "nixos-unstable";
}; };
nixpkgs-unstable = { nixpkgs-unstable = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable"; url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.nixpkgs.follows = "nixpkgs-unstable"; # inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nix-darwin = { nix-darwin = {
url = "github:LnL7/nix-darwin"; url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-darwin"; # inputs.nixpkgs.follows = "nixpkgs-darwin";
}; };
}; };
@ -27,10 +27,9 @@
nix-darwin, nix-darwin,
nixpkgs-unstable, nixpkgs-unstable,
... ...
}@inputs: } @ inputs: let
let overlays = [inputs.neovim-nightly-overlay.overlays.default]; overlays = [inputs.neovim-nightly-overlay.overlays.default];
in in {
{
nixosConfigurations = { nixosConfigurations = {
auxin = nixpkgs-unstable.lib.nixosSystem { auxin = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
@ -40,16 +39,19 @@
}; };
}; };
darwinConfigurations = { darwinConfigurations = {
leptin = nix-darwin.lib.darwinSystem { leptin = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
./leptin/configuration.nix ./leptin/configuration.nix
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
]; ];
specialArgs = { inherit nixpkgs-darwin; inherit nix-darwin; inherit inputs; inherit nixpkgs-unstable; }; specialArgs = {
inherit nixpkgs-darwin;
inherit nix-darwin;
inherit inputs;
inherit nixpkgs-unstable;
};
}; };
}; };
}; };
} }