School: remove most of the role
This commit is contained in:
parent
19985c86da
commit
28a3bf2509
11 changed files with 0 additions and 196 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./services
|
||||
./programs
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./virtualbox.nix
|
||||
./jetbrains.nix
|
||||
./vscode.nix
|
||||
./helix.nix
|
||||
./unity.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dia
|
||||
];
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home-manager.users.toast = {
|
||||
programs.helix = {
|
||||
extraPackages = with pkgs; [
|
||||
nodePackages.typescript-language-server
|
||||
omnisharp-roslyn
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{pkgs, ...}:
|
||||
with pkgs; {
|
||||
environment.systemPackages = with jetbrains; [
|
||||
idea-ultimate
|
||||
scenebuilder
|
||||
datagrip
|
||||
];
|
||||
|
||||
home-manager.users.toast = {
|
||||
/*
|
||||
If you use programs.java.enable intellij picks up the jdk package directly, which is not ideal
|
||||
This adds the jdks I want to use to a directory intellij expects jdks to be
|
||||
*/
|
||||
home.file.".jdks/jdk8".source = "${pkgs.jdk8}/lib/openjdk";
|
||||
home.file.".jdks/jdk17".source = let
|
||||
jdk17 = pkgs.jdk17.override {enableJavaFX = true;};
|
||||
in "${jdk17}/lib/openjdk";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home-manager.users.toast = {
|
||||
home.packages = with pkgs; [
|
||||
unityhub
|
||||
jetbrains.rider
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{...}: {
|
||||
# Need to use visual studio 2019 :(
|
||||
virtualisation.virtualbox.host = {
|
||||
enable = true;
|
||||
};
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d '/%h/VirtualBox VMs'"
|
||||
"h '/%h/VirtualBox VMs' - - - - C "
|
||||
];
|
||||
}
|
||||
];
|
||||
users.users.toast.extraGroups = ["vboxusers"];
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
flakeSelf,
|
||||
...
|
||||
}: let
|
||||
inputs = flakeSelf.inputs;
|
||||
in {
|
||||
home-manager.users.toast.programs.vscode = {
|
||||
# The redhat xml extension needs an fhs environment
|
||||
package = lib.mkForce pkgs.vscodium-fhs;
|
||||
extensions = with inputs.vscode-extensions.extensions.x86_64-linux; [
|
||||
open-vsx.redhat.vscode-xml
|
||||
open-vsx.tomoki1207.pdf
|
||||
open-vsx.ms-vscode.live-server
|
||||
open-vsx.ecmel.vscode-html-css
|
||||
open-vsx.angular.ng-template
|
||||
];
|
||||
userSettings = {
|
||||
redhat.telemetry.enabled = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
./mysql.nix
|
||||
./xampp.nix
|
||||
./mongodb.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.mongodb = {
|
||||
enable = true;
|
||||
package = pkgs.mongodb-5_0;
|
||||
user = "toast";
|
||||
};
|
||||
|
||||
# Don't autostart MySQL
|
||||
systemd.services.mongodb.wantedBy = lib.mkForce [];
|
||||
|
||||
# Allow regular users to start/stop mongodb
|
||||
# https://stackoverflow.com/questions/61480914/using-policykit-to-allow-non-root-users-to-start-and-stop-a-service
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
action.id == "org.freedesktop.systemd1.manage-units" &&
|
||||
action.lookup("unit") == "mongodb.service" &&
|
||||
subject.user == "${config.services.mongodb.user}"
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mongosh
|
||||
];
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mysql80;
|
||||
user = "toast";
|
||||
group = "users";
|
||||
};
|
||||
|
||||
# Don't autostart MySQL
|
||||
systemd.services.mysql.wantedBy = lib.mkForce [];
|
||||
|
||||
# Allow regular users to start/stop mysql
|
||||
# https://stackoverflow.com/questions/61480914/using-policykit-to-allow-non-root-users-to-start-and-stop-a-service
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
action.id == "org.freedesktop.systemd1.manage-units" &&
|
||||
action.lookup("unit") == "mysql.service" &&
|
||||
subject.user == "${config.services.mysql.user}"
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mysql-workbench
|
||||
mycli
|
||||
];
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
{pkgs, ...}: let
|
||||
booDark = pkgs.fetchzip {
|
||||
url = "https://github.com/adorade/boodark/releases/download/v1.1.1/boodark-v1.1.1.zip";
|
||||
hash = "sha256-GE/FtFlU6A4I9sRyjMhQIidGpDLD99Wzzngz3QI/rSo=";
|
||||
};
|
||||
in {
|
||||
# I tried setting up httpd + php in class but I just gave up
|
||||
virtualisation.oci-containers = {
|
||||
containers."xampp" = {
|
||||
autoStart = false;
|
||||
image = "tomsik68/xampp";
|
||||
#user = "${toString users.users.atfc.uid}:${toString users.groups.minecraft.gid}";
|
||||
volumes = [
|
||||
"xampp-mysql:/opt/lampp/var/mysql"
|
||||
# No dark mode installed by default :(
|
||||
"${booDark}:/opt/lampp/phpmyadmin/themes/booDark"
|
||||
];
|
||||
ports = ["41061:22" "41062:80"];
|
||||
};
|
||||
};
|
||||
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
action.id == "org.freedesktop.systemd1.manage-units" &&
|
||||
action.lookup("unit") == "podman-xampp.service" &&
|
||||
subject.user == "toast"
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue