From 625fb1c2f7867c76b17ea1a14fc38227562539c0 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 29 May 2020 12:29:33 +0300 Subject: [PATCH] feat: added deno and a few aliases --- modules/applications/postgres.nix | 9 +++++-- modules/applications/shells/aliases.nix | 8 +++++- modules/dev/javascript.nix | 1 + modules/overlay.nix | 1 + modules/xserver.nix | 2 ++ nix/sources.json | 36 ++++++++++++------------- 6 files changed, 36 insertions(+), 21 deletions(-) diff --git a/modules/applications/postgres.nix b/modules/applications/postgres.nix index c98b42f..232ea16 100644 --- a/modules/applications/postgres.nix +++ b/modules/applications/postgres.nix @@ -13,9 +13,14 @@ ''; initialScript = pkgs.writeText "backend-initScript" '' - CREATE ROLE adrielus WITH LOGIN PASSWORD '\' CREATEDB; + CREATE ROLE adrielus WITH + LOGIN + SUPERUSER + INHERIT + CREATEDB + CREATEROLE + REPLICATION; - # lunarbox db CREATE DATABASE lunarbox; GRANT ALL PRIVILEGES ON DATABASE lunarbox TO adrielus; ''; diff --git a/modules/applications/shells/aliases.nix b/modules/applications/shells/aliases.nix index 58746f6..b65bc9b 100644 --- a/modules/applications/shells/aliases.nix +++ b/modules/applications/shells/aliases.nix @@ -1 +1,7 @@ -{ ls = "exa -l"; } +{ + ls = "exa -l"; + sl = "sl -e"; + + # Render git repo using gource + "git render" = "gource -f -s 1 -c 4 --key"; +} diff --git a/modules/dev/javascript.nix b/modules/dev/javascript.nix index 2a727e9..8d87743 100644 --- a/modules/dev/javascript.nix +++ b/modules/dev/javascript.nix @@ -7,6 +7,7 @@ in { with nodePackages; with fromNpm; [ node + deno node2nix pnpm diff --git a/modules/overlay.nix b/modules/overlay.nix index e914c50..5f2b06f 100644 --- a/modules/overlay.nix +++ b/modules/overlay.nix @@ -20,6 +20,7 @@ in { # unstable stuff brave = unstable.brave; vscodium = unstable.vscodium; + deno = unstable.deno; }) ]; diff --git a/modules/xserver.nix b/modules/xserver.nix index e33aa73..46d3e97 100644 --- a/modules/xserver.nix +++ b/modules/xserver.nix @@ -19,5 +19,7 @@ }; }; + services.fractalart.enable = true; + hardware.opengl.enable = true; } diff --git a/nix/sources.json b/nix/sources.json index 827d38d..7d65577 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "", "owner": "nix-community", "repo": "NUR", - "rev": "3b3eebbdfd77c92980a2575b0a7f44415e5c29e8", - "sha256": "1wpvchdgr3fn3m4wjywff6d427ykn6hjm6rmbq23fnjapf2vljbx", + "rev": "445eb76b526a0aca365018c10e73c22cf3b1ae42", + "sha256": "1jw7g8kd4g5y771z0kxckznlja9gi4msnivhd2fysn510f1h665n", "type": "tarball", - "url": "https://github.com/nix-community/NUR/archive/3b3eebbdfd77c92980a2575b0a7f44415e5c29e8.tar.gz", + "url": "https://github.com/nix-community/NUR/archive/445eb76b526a0aca365018c10e73c22cf3b1ae42.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "agnoster": { @@ -41,10 +41,10 @@ "homepage": "", "owner": "xzfc", "repo": "cached-nix-shell", - "rev": "9bd1649452280c20b4978bc0122208e2c6cd46f0", - "sha256": "1wn5srs27l3csidlhyavgfc99hxs5nwii6m8dgizkyqkjcrwp85p", + "rev": "4db8af0c653620e192c59d7d8ed227e4ffd8f54c", + "sha256": "1ni671wr2lrvyz6myaz3v4llrjvq4jc1ygw1m7rvnadzyf3va3lw", "type": "tarball", - "url": "https://github.com/xzfc/cached-nix-shell/archive/9bd1649452280c20b4978bc0122208e2c6cd46f0.tar.gz", + "url": "https://github.com/xzfc/cached-nix-shell/archive/4db8af0c653620e192c59d7d8ed227e4ffd8f54c.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "easy-purescript-nix": { @@ -53,10 +53,10 @@ "homepage": "", "owner": "justinwoo", "repo": "easy-purescript-nix", - "rev": "d4879bfd2b595d7fbd37da1a7bea5d0361975eb3", - "sha256": "0kzwg3mwziwx378kvbzhayy65abvk1axi12zvf2f92cs53iridwh", + "rev": "0ba91d9aa9f7421f6bfe4895677159a8a999bf20", + "sha256": "1baq7mmd3vjas87f0gzlq83n2l1h3dlqajjqr7fgaazpa9xgzs7q", "type": "tarball", - "url": "https://github.com/justinwoo/easy-purescript-nix/archive/d4879bfd2b595d7fbd37da1a7bea5d0361975eb3.tar.gz", + "url": "https://github.com/justinwoo/easy-purescript-nix/archive/0ba91d9aa9f7421f6bfe4895677159a8a999bf20.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "home-manager": { @@ -65,10 +65,10 @@ "homepage": "https://rycee.gitlab.io/home-manager/", "owner": "rycee", "repo": "home-manager", - "rev": "a378bccd609c159fa8d421233b9c5eae04f02042", - "sha256": "1cfh0aj60qriadvn5xvsp24p1xr06g68m3pfvzwahv2bd2cg261r", + "rev": "96fcf3b017d813fac300ecb821b6db6b7b5d0c40", + "sha256": "0m7b8cazlcci3bi1j99cpgq10qp6mjml6v11jlfabh05kpyswqkk", "type": "tarball", - "url": "https://github.com/rycee/home-manager/archive/a378bccd609c159fa8d421233b9c5eae04f02042.tar.gz", + "url": "https://github.com/rycee/home-manager/archive/96fcf3b017d813fac300ecb821b6db6b7b5d0c40.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "niv": { @@ -89,10 +89,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", "repo": "nixpkgs-channels", - "rev": "5adf2a6c11646898742b0c08f7e94101620ba707", - "sha256": "0wf7pwma2qyfak39b242mcq8z7cdj65sds7hcjxchy0448shapzi", + "rev": "e985ffea2d640bb6fe7d5ef7aa968b2b7d107f47", + "sha256": "01nmwqixbkvnp9y0rkblwik6g0wk95pr9j3wrh1ar72cif47n06l", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs-channels/archive/5adf2a6c11646898742b0c08f7e94101620ba707.tar.gz", + "url": "https://github.com/NixOS/nixpkgs-channels/archive/e985ffea2d640bb6fe7d5ef7aa968b2b7d107f47.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixpkgs-unstable": { @@ -101,10 +101,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "nixos", "repo": "nixpkgs-channels", - "rev": "683c68232e91f76386db979c461d8fbe2a018782", - "sha256": "1fn7q540bk7nhvf6pnlljgfk51qwh2xpvvz30a1d4sd0l7z64mvc", + "rev": "46f975f81e0f71ba0d2b2bb8fe4006a9aa4c6c5c", + "sha256": "11f8jli3lhc4hzfy7fjwpks3f3p2vpnkz8lrkcsr4aglrd0n3mjv", "type": "tarball", - "url": "https://github.com/nixos/nixpkgs-channels/archive/683c68232e91f76386db979c461d8fbe2a018782.tar.gz", + "url": "https://github.com/nixos/nixpkgs-channels/archive/46f975f81e0f71ba0d2b2bb8fe4006a9aa4c6c5c.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "snack": {