haskell, switch to lix

This commit is contained in:
Maciej Jur 2024-07-31 18:50:29 +02:00
parent b7de76fe52
commit 90e6b3bf9b
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
5 changed files with 6 additions and 19 deletions

View file

@ -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;

View file

@ -4,7 +4,7 @@
imports = [
./modules/xdg.nix
./modules/gaming.nix
./modules/ghci
./modules/haskell
./modules/lean.nix
./modules/ocaml.nix
./modules/js.nix

View file

@ -2,8 +2,10 @@
{
home.packages = with pkgs; [
cabal-install
ghc
haskell-language-server
haskellPackages.cabal-gild
];
home.file.".ghci".source = ./.ghci;

View file

@ -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;