enable more options for pipewire
This commit is contained in:
parent
5cf6554f0e
commit
8febe20c80
17
flake.nix
17
flake.nix
|
@ -16,7 +16,8 @@
|
||||||
# my stuff
|
# my stuff
|
||||||
dhist.url = "github:lelgenio/dhist";
|
dhist.url = "github:lelgenio/dhist";
|
||||||
};
|
};
|
||||||
outputs = { nixpkgs, nixpkgs-unstable, home-manager, alacritty-sixel, ranger-sixel, nur, dhist, ... }:
|
outputs = { nixpkgs, nixpkgs-unstable, home-manager, alacritty-sixel
|
||||||
|
, ranger-sixel, nur, dhist, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -45,19 +46,21 @@
|
||||||
_diffr = import ./diffr.nix { inherit config pkgs lib; };
|
_diffr = import ./diffr.nix { inherit config pkgs lib; };
|
||||||
kak-pager = import ./kak-pager.nix { inherit config pkgs lib; };
|
kak-pager = import ./kak-pager.nix { inherit config pkgs lib; };
|
||||||
terminal = import ./terminal.nix { inherit config pkgs lib; };
|
terminal = import ./terminal.nix { inherit config pkgs lib; };
|
||||||
alacritty = (old-pkgs.alacritty.overrideAttrs (old-alacritty: rec {
|
alacritty = (old-pkgs.alacritty.overrideAttrs
|
||||||
|
(old-alacritty: rec {
|
||||||
src = alacritty-sixel;
|
src = alacritty-sixel;
|
||||||
cargoDeps = old-alacritty.cargoDeps.overrideAttrs (old-pkgs.lib.const {
|
cargoDeps = old-alacritty.cargoDeps.overrideAttrs
|
||||||
|
(old-pkgs.lib.const {
|
||||||
inherit src;
|
inherit src;
|
||||||
outputHash = "sha256-aNatd4LC4lv0bDpVfUONdtEn9OPahVBZ9ch14pWWCnM=";
|
outputHash =
|
||||||
|
"sha256-aNatd4LC4lv0bDpVfUONdtEn9OPahVBZ9ch14pWWCnM=";
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
ranger = (old-pkgs.ranger.overridePythonAttrs (old-ranger: rec {
|
ranger = (old-pkgs.ranger.overridePythonAttrs (old-ranger: rec {
|
||||||
src = ranger-sixel;
|
src = ranger-sixel;
|
||||||
checkInputs = [];
|
checkInputs = [ ];
|
||||||
propagatedBuildInputs = with pkgs.python3Packages;
|
propagatedBuildInputs = with pkgs.python3Packages;
|
||||||
old-ranger.propagatedBuildInputs ++
|
old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ];
|
||||||
[ astroid pylint pytest ];
|
|
||||||
}));
|
}));
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -118,13 +118,19 @@ in {
|
||||||
};
|
};
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
# Enable sound with pipewire.
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
## Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
# hardware.pulseaudio.enable = true;
|
# hardware.pulseaudio.enable = true;
|
||||||
security.rtkit.enable = true;
|
services.pipewire = {
|
||||||
services.pipewire.enable = true;
|
enable = true;
|
||||||
# services.pipewire.media-session.enable = true;
|
wireplumber.enable = true;
|
||||||
services.pipewire.pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
jack.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;
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
|
|
@ -75,7 +75,9 @@
|
||||||
fileSystems."/swap" = {
|
fileSystems."/swap" = {
|
||||||
device = "/dev/disk/by-label/BTRFS_ROOT";
|
device = "/dev/disk/by-label/BTRFS_ROOT";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=swap" ]; # Note these options effect the entire BTRFS filesystem and not just this volume, with the exception of `"subvol=swap"`, the other options are repeated in my other `fileSystem` mounts
|
options = [
|
||||||
|
"subvol=swap"
|
||||||
|
]; # Note these options effect the entire BTRFS filesystem and not just this volume, with the exception of `"subvol=swap"`, the other options are repeated in my other `fileSystem` mounts
|
||||||
};
|
};
|
||||||
swapDevices = [{
|
swapDevices = [{
|
||||||
device = "/swap/swapfile";
|
device = "/swap/swapfile";
|
||||||
|
|
Loading…
Reference in a new issue