Format everything with alejandra
This commit is contained in:
parent
82bbd7ce87
commit
7888103b1e
100 changed files with 2827 additions and 2756 deletions
|
|
@ -1,8 +1,6 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./services
|
||||
./programs
|
||||
];
|
||||
{...}: {
|
||||
imports = [
|
||||
./services
|
||||
./programs
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./virtualbox.nix
|
||||
./idea.nix
|
||||
./vscode.nix
|
||||
./helix.nix
|
||||
./unity.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dia
|
||||
];
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./virtualbox.nix
|
||||
./idea.nix
|
||||
./vscode.nix
|
||||
./helix.nix
|
||||
./unity.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dia
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.toast = {
|
||||
programs.helix = {
|
||||
extraPackages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -1,33 +1,35 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
with pkgs;
|
||||
{
|
||||
environment.systemPackages = with jetbrains; [
|
||||
idea-ultimate
|
||||
];
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with pkgs; {
|
||||
environment.systemPackages = with jetbrains; [
|
||||
idea-ultimate
|
||||
];
|
||||
|
||||
home-manager.users.toast = {
|
||||
# Install plugins
|
||||
home.file = {
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/catppuccin.jar".source = fetchurl {
|
||||
url = "https://github.com/catppuccin/jetbrains/releases/download/v3.2.3/Catppuccin.Theme-3.2.3.jar";
|
||||
hash = "sha256-v5BZ2UKEBA/0DHKGwmprmuu0RcJCDsxzWmCdnX9aXpE=";
|
||||
};
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/rainbow-brackets".source = fetchzip {
|
||||
url = "https://github.com/izhangzhihao/intellij-rainbow-brackets/releases/download/latest/intellij-rainbow-brackets-2023.3.9-233.zip";
|
||||
hash = "sha256-faMDP6kU21WOHVjY5Aj4/Glqymo1iUCTuUJdHsq1N/s=";
|
||||
};
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/catppuccin-icons.jar".source = fetchurl {
|
||||
url = "https://github.com/catppuccin/jetbrains-icons/releases/download/v1.1.1/Catppuccin.Icons-1.1.1.jar";
|
||||
hash = "sha256-Bn0Yn0RlNmJQCSC0MJQrKjeERzfHhupWnyYm0YjXFwY=";
|
||||
};
|
||||
};
|
||||
home-manager.users.toast = {
|
||||
# Install plugins
|
||||
home.file = {
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/catppuccin.jar".source = fetchurl {
|
||||
url = "https://github.com/catppuccin/jetbrains/releases/download/v3.2.3/Catppuccin.Theme-3.2.3.jar";
|
||||
hash = "sha256-v5BZ2UKEBA/0DHKGwmprmuu0RcJCDsxzWmCdnX9aXpE=";
|
||||
};
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/rainbow-brackets".source = fetchzip {
|
||||
url = "https://github.com/izhangzhihao/intellij-rainbow-brackets/releases/download/latest/intellij-rainbow-brackets-2023.3.9-233.zip";
|
||||
hash = "sha256-faMDP6kU21WOHVjY5Aj4/Glqymo1iUCTuUJdHsq1N/s=";
|
||||
};
|
||||
".local/share/JetBrains/IntelliJIdea2023.3/catppuccin-icons.jar".source = fetchurl {
|
||||
url = "https://github.com/catppuccin/jetbrains-icons/releases/download/v1.1.1/Catppuccin.Icons-1.1.1.jar";
|
||||
hash = "sha256-Bn0Yn0RlNmJQCSC0MJQrKjeERzfHhupWnyYm0YjXFwY=";
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
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 = "${pkgs.jdk17}/lib/openjdk";
|
||||
};
|
||||
/*
|
||||
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 = "${pkgs.jdk17}/lib/openjdk";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.toast = {
|
||||
home.packages = [(
|
||||
pkgs.unityhub
|
||||
)];
|
||||
home.packages = [
|
||||
(
|
||||
pkgs.unityhub
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
# 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" ];
|
||||
{config, ...}: {
|
||||
# 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,18 +1,24 @@
|
|||
{ config, 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;
|
||||
};
|
||||
};
|
||||
config,
|
||||
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,10 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
./mysql.nix
|
||||
./xampp.nix
|
||||
./mongodb.nix
|
||||
];
|
||||
{...}: {
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
./mysql.nix
|
||||
./xampp.nix
|
||||
./mongodb.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +1,34 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.mongodb = {
|
||||
enable = true;
|
||||
package = pkgs.mongodb-4_4;
|
||||
user = "toast";
|
||||
};
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.mongodb = {
|
||||
enable = true;
|
||||
package = pkgs.mongodb-4_4;
|
||||
user = "toast";
|
||||
};
|
||||
|
||||
# Don't autostart MySQL
|
||||
systemd.services.mongodb.wantedBy = lib.mkForce [];
|
||||
# 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;
|
||||
}
|
||||
})
|
||||
'';
|
||||
# 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
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
mongosh
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,33 +1,36 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mysql80;
|
||||
user = "toast";
|
||||
group = "users";
|
||||
};
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mysql80;
|
||||
user = "toast";
|
||||
group = "users";
|
||||
};
|
||||
|
||||
# Don't autostart MySQL
|
||||
systemd.services.mysql.wantedBy = lib.mkForce [];
|
||||
# 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;
|
||||
}
|
||||
})
|
||||
'';
|
||||
# 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
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
mysql-workbench
|
||||
mycli
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.syncthing.settings.folders = {
|
||||
"school-things" = {
|
||||
label = "School things";
|
||||
id = "z6alc-nfoqr";
|
||||
devices = [ "steamdeck" "server" "pc" "winmax2" ];
|
||||
path = "~/Documents/School things";
|
||||
};
|
||||
};
|
||||
{config, ...}: {
|
||||
services.syncthing.settings.folders = {
|
||||
"school-things" = {
|
||||
label = "School things";
|
||||
id = "z6alc-nfoqr";
|
||||
devices = ["steamdeck" "server" "pc" "winmax2"];
|
||||
path = "~/Documents/School things";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +1,38 @@
|
|||
{ config, 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" ];
|
||||
};
|
||||
};
|
||||
config,
|
||||
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;
|
||||
}
|
||||
})
|
||||
'';
|
||||
}
|
||||
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