haskell, switch to lix
This commit is contained in:
parent
b7de76fe52
commit
90e6b3bf9b
|
@ -30,6 +30,7 @@ in
|
|||
|
||||
# Nix package installer settings
|
||||
nix = {
|
||||
package = pkgs.lix;
|
||||
settings = {
|
||||
# Collapse duplicates into a single hard-link during build
|
||||
auto-optimise-store = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
imports = [
|
||||
./modules/xdg.nix
|
||||
./modules/gaming.nix
|
||||
./modules/ghci
|
||||
./modules/haskell
|
||||
./modules/lean.nix
|
||||
./modules/ocaml.nix
|
||||
./modules/js.nix
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
cabal-install
|
||||
ghc
|
||||
haskell-language-server
|
||||
haskellPackages.cabal-gild
|
||||
];
|
||||
|
||||
home.file.".ghci".source = ./.ghci;
|
|
@ -1,23 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.alsa-utils ];
|
||||
|
||||
# ALSA provides a udev rule for restoring volume settings.
|
||||
services.udev.packages = [ pkgs.alsa-utils ];
|
||||
|
||||
systemd.services.alsa-store =
|
||||
{ description = "Store Sound Card State";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
unitConfig.RequiresMountsFor = "/var/lib/alsa";
|
||||
unitConfig.ConditionVirtualization = "!systemd-nspawn";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${pkgs.coreutils}/bin/mkdir -p /var/lib/alsa";
|
||||
ExecStop = "${pkgs.alsa-utils}/sbin/alsactl store --ignore";
|
||||
};
|
||||
};
|
||||
hardware.alsa.enablePersistence = true;
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue