Add Matlab Compat

master
David Crompton 2023-07-28 10:02:26 -04:00
parent ec64e16dfc
commit 2effa9fbdc
5 changed files with 54 additions and 5 deletions

View File

@ -1,5 +1,42 @@
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"nix-matlab": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1690470066,
"narHash": "sha256-/z/TDmKE6wKRiyi/qwp3SG6jmFBIg2EvjrF2GldAmOs=",
"owner": "doronbehar",
"repo": "nix-matlab",
"rev": "8b48ad6bf6843f7c2fb9aae6032aa9b8267f7830",
"type": "gitlab"
},
"original": {
"owner": "doronbehar",
"repo": "nix-matlab",
"type": "gitlab"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1690470004,
@ -34,6 +71,7 @@
},
"root": {
"inputs": {
"nix-matlab": "nix-matlab",
"nixpkgs": "nixpkgs",
"sops-nix": "sops-nix"
}

View File

@ -8,10 +8,16 @@
# Follow the system nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
};
nix-matlab = {
url = "gitlab:doronbehar/nix-matlab";
# Follow the system nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sops-nix }: {
outputs = { self, nixpkgs, sops-nix, nix-matlab }@attrs: {
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./machines/kcnhub/configuration.nix
sops-nix.nixosModules.sops

View File

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{

View File

@ -2,5 +2,6 @@
imports = [
./packages/office.nix
./packages/terminal.nix
./packages/matlab.nix
];
}

View File

@ -0,0 +1,8 @@
{ config, lib, pkgs, nix-matlab, ... }: {
environment.systemPackages = with nix-matlab.packages.x86_64-linux; [
matlab
matlab-shell
matlab-mlint
matlab-mex
];
}