haskell, switch to lix
This commit is contained in:
parent
b7de76fe52
commit
90e6b3bf9b
|
@ -30,6 +30,7 @@ in
|
||||||
|
|
||||||
# Nix package installer settings
|
# Nix package installer settings
|
||||||
nix = {
|
nix = {
|
||||||
|
package = pkgs.lix;
|
||||||
settings = {
|
settings = {
|
||||||
# Collapse duplicates into a single hard-link during build
|
# Collapse duplicates into a single hard-link during build
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./modules/xdg.nix
|
./modules/xdg.nix
|
||||||
./modules/gaming.nix
|
./modules/gaming.nix
|
||||||
./modules/ghci
|
./modules/haskell
|
||||||
./modules/lean.nix
|
./modules/lean.nix
|
||||||
./modules/ocaml.nix
|
./modules/ocaml.nix
|
||||||
./modules/js.nix
|
./modules/js.nix
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
cabal-install
|
||||||
ghc
|
ghc
|
||||||
haskell-language-server
|
haskell-language-server
|
||||||
|
haskellPackages.cabal-gild
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file.".ghci".source = ./.ghci;
|
home.file.".ghci".source = ./.ghci;
|
|
@ -1,23 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.alsa-utils ];
|
hardware.alsa.enablePersistence = true;
|
||||||
|
|
||||||
# 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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue