♻️ [shared] Moved files to base shared directory

This commit is contained in:
2025-05-22 19:36:29 +02:00
parent 7455299dd7
commit 21d07edcf1
18 changed files with 43 additions and 58 deletions

View File

@ -7,14 +7,9 @@
{
imports = with lib.custom; [
(relativeToRoot "shared/desktop/modules/nix-helper.nix")
(relativeToRoot "shared/desktop/modules/nixos.nix")
(relativeToRoot "shared/desktop/modules/shell.nix")
(relativeToRoot "shared/desktop/modules/security/sops.nix")
(relativeToBase "modules")
./boot.nix
./development.nix
./hardware.nix
./networking.nix
./security
];

View File

@ -1,11 +0,0 @@
{ pkgs, lib, ... }:
{
imports = [
(lib.custom.relativeToRoot "shared/modules/development/formatters.nix")
];
environment.systemPackages = with pkgs; [
just
];
}

View File

@ -1,13 +0,0 @@
{ systemConfig, ... }:
{
networking = {
hostName = systemConfig.hostName;
networkmanager.enable = true;
};
services = {
openssh.enable = true;
tailscale.enable = true;
};
}

View File

@ -1,3 +1,10 @@
{
imports = [ ./networking.nix ];
imports = [
./development
./networking.nix
./nix-helper.nix
./nixos.nix
./security
./shell.nix
];
}

View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
imports = [
./formatters.nix
./nix.nix
];
environment.systemPackages = with pkgs; [
git
just
];
}

View File

@ -8,19 +8,12 @@
networking = {
networkmanager.enable = true;
hostName = systemConfig.hostName;
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
programs.ssh.enableAskPassword = false;
services.tailscale.enable = true;
services = {
openssh.enable = true;
tailscale.enable = true;
};
}

View File

@ -0,0 +1,8 @@
{
imports = [
./sops.nix
./ssh.nix
];
programs.gnupg.agent.enable = true;
}

View File

@ -1,8 +1,8 @@
{ lib, ... }:
{
imports = [
(lib.custom.relativeToBase "modules")
imports = with lib.custom; [
(relativeToBase "modules")
./boot.nix
./development
./electron.nix
@ -14,13 +14,10 @@
./locale.nix
./mail.nix
./media.nix
./nixos.nix
./nix-helper.nix
./office.nix
./hyprland
./sddm.nix
./security
./shell.nix
./social.nix
./users.nix
./qt.nix

View File

@ -4,17 +4,12 @@
imports = [
./docker.nix
./dotnet.nix
./formatters.nix
./nix.nix
./node.nix
./ollama.nix
./rust.nix
];
environment.systemPackages = with pkgs; [
# Tools
git
just
unstable.libpq # Required for PostgreSQL
];
}

View File

@ -1,10 +1,15 @@
{ pkgs, ... }:
{
pkgs,
lib,
systemConfig,
...
}:
{
environment = {
sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt6ct";
QT_QPA_PLATFORM = "wayland"; # Enable Wayland for QT
QT_QPA_PLATFORM = lib.mkIf systemConfig.wayland.enable "wayland"; # Enable Wayland for QT
};
systemPackages = with pkgs.kdePackages; [
qtwayland

View File

@ -1,9 +1,5 @@
{
imports = [
./sops.nix
./ssh.nix
./yubikey.nix
];
programs.gnupg.agent.enable = true;
}