Added clojure devenv template and more stuff

This commit is contained in:
marc
2023-08-06 17:35:41 +02:00
parent e9bfdcc27e
commit 10f4940ae1
5 changed files with 41 additions and 2 deletions

View File

@@ -89,7 +89,6 @@
(setq pipenv-with-projectile t)
(setenv "PIPENV_MAX_DEPTH" "10"))
;; -----------------------------------------------------------------------------
;; Org
;; -----------------------------------------------------------------------------

View File

@@ -52,6 +52,9 @@
(package! base16-theme)
(package! parinfer)
;; Env
(package! inheritenv)
;; Editor
(package! dot-mode)

View File

@@ -0,0 +1,28 @@
{
description = "Development flake for this clojure project";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
projectDependencies = with pkgs; [
];
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
# Core clojure dependencies
clojure
leiningen
# IDE tools
clojure-lsp
# Development tools
] ++ projectDependencies;
};
});
}

View File

@@ -3,7 +3,7 @@
with lib;
let
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
wallpaper = ../../data/wallpapers/globus.jpg;
wallpaper = ../../data/wallpapers/rosa.jpg;
in
{
imports = [
@@ -55,6 +55,7 @@ in
};
system.gpg.enable = true;
system.pass.enable = true;
system.sshfs.enable = true;
# - Desktop ----------------------------------
desktop = {
@@ -80,5 +81,6 @@ in
};
# - Extra / Temporary --------------------------
programs.dconf.enable = true; # Inkscape crashes
fonts.fonts = [];
}

View File

@@ -22,6 +22,13 @@
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
"/mnt/vatnajokull" = {
device = "vatnajokull:/mnt/raid1";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
};
};
swapDevices = [