♻️ [shared] Moved files to base shared directory
This commit is contained in:
@ -7,14 +7,9 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = with lib.custom; [
|
imports = with lib.custom; [
|
||||||
(relativeToRoot "shared/desktop/modules/nix-helper.nix")
|
(relativeToBase "modules")
|
||||||
(relativeToRoot "shared/desktop/modules/nixos.nix")
|
|
||||||
(relativeToRoot "shared/desktop/modules/shell.nix")
|
|
||||||
(relativeToRoot "shared/desktop/modules/security/sops.nix")
|
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./development.nix
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./networking.nix
|
|
||||||
./security
|
./security
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
{ pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(lib.custom.relativeToRoot "shared/modules/development/formatters.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
just
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
{ systemConfig, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
hostName = systemConfig.hostName;
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
openssh.enable = true;
|
|
||||||
tailscale.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,3 +1,10 @@
|
|||||||
{
|
{
|
||||||
imports = [ ./networking.nix ];
|
imports = [
|
||||||
|
./development
|
||||||
|
./networking.nix
|
||||||
|
./nix-helper.nix
|
||||||
|
./nixos.nix
|
||||||
|
./security
|
||||||
|
./shell.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
13
shared/base/modules/development/default.nix
Normal file
13
shared/base/modules/development/default.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./formatters.nix
|
||||||
|
./nix.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
just
|
||||||
|
];
|
||||||
|
}
|
@ -8,19 +8,12 @@
|
|||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
hostName = systemConfig.hostName;
|
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;
|
programs.ssh.enableAskPassword = false;
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services = {
|
||||||
|
openssh.enable = true;
|
||||||
|
tailscale.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
8
shared/base/modules/security/default.nix
Normal file
8
shared/base/modules/security/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./sops.nix
|
||||||
|
./ssh.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.gnupg.agent.enable = true;
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = with lib.custom; [
|
||||||
(lib.custom.relativeToBase "modules")
|
(relativeToBase "modules")
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./development
|
./development
|
||||||
./electron.nix
|
./electron.nix
|
||||||
@ -14,13 +14,10 @@
|
|||||||
./locale.nix
|
./locale.nix
|
||||||
./mail.nix
|
./mail.nix
|
||||||
./media.nix
|
./media.nix
|
||||||
./nixos.nix
|
|
||||||
./nix-helper.nix
|
|
||||||
./office.nix
|
./office.nix
|
||||||
./hyprland
|
./hyprland
|
||||||
./sddm.nix
|
./sddm.nix
|
||||||
./security
|
./security
|
||||||
./shell.nix
|
|
||||||
./social.nix
|
./social.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
./qt.nix
|
./qt.nix
|
||||||
|
@ -4,17 +4,12 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./dotnet.nix
|
./dotnet.nix
|
||||||
./formatters.nix
|
|
||||||
./nix.nix
|
|
||||||
./node.nix
|
./node.nix
|
||||||
./ollama.nix
|
./ollama.nix
|
||||||
./rust.nix
|
./rust.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Tools
|
|
||||||
git
|
|
||||||
just
|
|
||||||
unstable.libpq # Required for PostgreSQL
|
unstable.libpq # Required for PostgreSQL
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
{ pkgs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
systemConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment = {
|
environment = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
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; [
|
systemPackages = with pkgs.kdePackages; [
|
||||||
qtwayland
|
qtwayland
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./sops.nix
|
|
||||||
./ssh.nix
|
|
||||||
./yubikey.nix
|
./yubikey.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnupg.agent.enable = true;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user