feat: Added stuff
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
./${device.name}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
inputs.arion.nixosModules.arion
|
||||
inputs.command-runner.nixosModules.command-runner
|
||||
# inputs.command-runner.nixosModules.command-runner
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
inputs.musnix.nixosModules.musnix
|
||||
{
|
||||
@@ -37,7 +37,9 @@
|
||||
inherit device;
|
||||
stablePkgs = inputs.nixpkgs-stable.legacyPackages.${device.system};
|
||||
};
|
||||
users.${device.user}.imports = [../home];
|
||||
users.${device.user}.imports = [
|
||||
../home
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
{...}: {
|
||||
services = {
|
||||
caddy.enable = true;
|
||||
caddy = {
|
||||
enable = true;
|
||||
# virtualHosts = {
|
||||
# "home.darksailor.dev".extraConfig = ''
|
||||
# reverse_proxy http://tsuba.lemur-newton.ts.net:8123
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
./caddy.nix
|
||||
./fail2ban.nix
|
||||
./gitea.nix
|
||||
# ./nextcloud.nix
|
||||
|
||||
# ./navidrome.nix
|
||||
# ./home-assistant.nix
|
||||
@@ -16,7 +17,6 @@
|
||||
# ./polaris.nix
|
||||
# ./syncthing.nix
|
||||
# ./vscode.nix
|
||||
# ./nextcloud.nix
|
||||
# ./ldap.nix
|
||||
# ./llama.nix
|
||||
# ./nextcloud.nix
|
||||
|
||||
@@ -8,15 +8,20 @@
|
||||
};
|
||||
services = {
|
||||
nextcloud = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
package = pkgs.nextcloud30;
|
||||
# extraApps = {
|
||||
# inherit (config.services.nextcloud.package.packages.apps) news contacts calendar;
|
||||
# };
|
||||
# extraAppsEnable = true;
|
||||
hostName = "cloud.darksailor.dev";
|
||||
config.adminuser = "servius";
|
||||
config.adminpassFile = config.sops.secrets."nextcloud/adminpass".path;
|
||||
config.dbtype = "sqlite";
|
||||
configureRedis = true;
|
||||
https = true;
|
||||
datadir = "/media/nextcloud";
|
||||
https = false;
|
||||
# datadir = "/media/nextcloud";
|
||||
home = "/media/nextcloud";
|
||||
};
|
||||
caddy = {
|
||||
virtualHosts."cloud.darksailor.dev".extraConfig = ''
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
users.users.servius = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel" "audio" "i2c" "media" "openrazer"];
|
||||
extraGroups = ["wheel" "audio" "i2c" "media" "openrazer" "video"];
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../secrets/id_ed25519.pub
|
||||
../../secrets/id_ios.pub
|
||||
@@ -284,6 +284,7 @@
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
systemPackages = with pkgs; [
|
||||
v4l-utils
|
||||
polychromatic
|
||||
openrazer-daemon
|
||||
cudatoolkit
|
||||
|
||||
@@ -4,24 +4,24 @@
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.command-runner = {
|
||||
enable = true;
|
||||
port = 5599;
|
||||
user = "servius";
|
||||
commands = let
|
||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||
in
|
||||
{
|
||||
"display_on" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on"];
|
||||
"display_off" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off"];
|
||||
"display_toggle" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle"];
|
||||
"display_status" = [hyprctl "-i" "{instance}" "-j" "monitors"];
|
||||
"hyprland_instance" = [hyprctl "-j" "instances"];
|
||||
}
|
||||
// (builtins.foldl' (acc: elem: acc // elem) {} (lib.map (name: {
|
||||
"display_on_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on" name];
|
||||
"display_off_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off" name];
|
||||
"display_toggle_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle" name];
|
||||
}) ["HDMI-A-1" "DP-3" "DP-1"]));
|
||||
};
|
||||
# services.command-runner = {
|
||||
# enable = false;
|
||||
# port = 5599;
|
||||
# user = "servius";
|
||||
# commands = let
|
||||
# hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||
# in
|
||||
# {
|
||||
# "display_on" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on"];
|
||||
# "display_off" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off"];
|
||||
# "display_toggle" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle"];
|
||||
# "display_status" = [hyprctl "-i" "{instance}" "-j" "monitors"];
|
||||
# "hyprland_instance" = [hyprctl "-j" "instances"];
|
||||
# }
|
||||
# // (builtins.foldl' (acc: elem: acc // elem) {} (lib.map (name: {
|
||||
# "display_on_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on" name];
|
||||
# "display_off_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off" name];
|
||||
# "display_toggle_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle" name];
|
||||
# }) ["HDMI-A-1" "DP-3" "DP-1"]));
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user