This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ modulesPath, pkgs, ... }: { | |
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ]; | |
ec2.hvm = true; | |
nix.settings.auto-optimise-store = true; | |
nix.gc = { | |
automatic = true; | |
dates = "daily"; | |
options = "--delete-older-than 2d"; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Lucid | |
main :: IO () | |
main = putStrLn "Hello, Haskell!" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: { | |
# for reasons unkown this line causes an infinite loop | |
lens = haskellPackages.callHackage "lens" "4.16.1" | |
project = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: { | |
# for reasons unkown this line causes an infinite loop | |
lens = haskellPackages.callHackage "lens" "4.16.1" | |
project = |