mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
49592d7f01
I also fixed the long-time occuring error when using the newest version of the channel (or the unstable one). It turns out to be a simple type error with the `my.user' attribute. (To be honest the error messages are quite horrible.) On another note, I also accidentally bricked my NixOS setup after a garbage collection and a horrible update. The breakage includes not being able to use any of the builtin tools of Nix (e.g., nix, nix-env, nixos-rebuild) due to a shared library error that has been garbage collected. Which means I have to reinstall it. (I seem to have a talent for breaking things, if only I'm paid for it.)
32 lines
790 B
Nix
Executable File
32 lines
790 B
Nix
Executable File
# Eh... I don't really do math but hey, I occasionally create visual aids sometimes.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.modules.dev.math;
|
|
in
|
|
{
|
|
options.modules.dev.math =
|
|
let mkEnableOption = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
}; in {
|
|
enable = mkEnableOption;
|
|
r.enable = mkEnableOption;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
my.packages = with pkgs; [
|
|
gnuplot # I came for the plots.
|
|
julia # A statistics-focused languaged named after a character in an iconic fighting game.
|
|
octave # Matlab's hipster brother.
|
|
] ++
|
|
|
|
(if cfg.r.enable then [
|
|
R # Rated G for accessibility.
|
|
rstudio # It's not that kind of studio.
|
|
] else []);
|
|
};
|
|
}
|