refactor and cleanup

This commit is contained in:
Zoty 2026-06-23 15:08:09 -03:00
parent 0b4382253f
commit 71f5c6dd61
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
9 changed files with 35 additions and 48 deletions

View file

@ -8,6 +8,7 @@ in {
kitty kitty
claude-code claude-code
mpv mpv
obsidian
]; ];
# Symlinks in ~/.jdks/ - path scanned by IntelliJ on Linux by default # Symlinks in ~/.jdks/ - path scanned by IntelliJ on Linux by default

View file

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
wallpaper = "${config.home.homeDirectory}/repos/nixos/wallpapers/astronaut.png"; wallpaper = "${../../wallpapers/astronaut.png}";
in { in {
services.swayidle = { services.swayidle = {
enable = true; enable = true;
@ -69,7 +69,6 @@ in {
text = '' text = ''
#!/usr/bin/env bash #!/usr/bin/env bash
swww-daemon & swww-daemon &
sleep 0.5
swww img "${wallpaper}" --transition-type none swww img "${wallpaper}" --transition-type none
''; '';
}; };

View file

@ -34,7 +34,6 @@
unrar unrar
p7zip p7zip
nvd nvd
obsidian
]; ];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -26,8 +26,10 @@ in {
includes = [ includes = [
den.provides.hostname den.provides.hostname
den.aspects.core den.aspects.core
den.aspects.services
den.aspects.wayland den.aspects.wayland
den.aspects.niri den.aspects.niri
den.aspects.portable
den.aspects.notebook-specific den.aspects.notebook-specific
den.aspects.dev den.aspects.dev
den.aspects.creative den.aspects.creative
@ -42,8 +44,10 @@ in {
includes = [ includes = [
den.provides.hostname den.provides.hostname
den.aspects.core den.aspects.core
den.aspects.services
den.aspects.wayland den.aspects.wayland
den.aspects.niri den.aspects.niri
den.aspects.portable
den.aspects.work-specific den.aspects.work-specific
den.aspects.secrets den.aspects.secrets
den.aspects.dev den.aspects.dev
@ -57,6 +61,7 @@ in {
includes = [ includes = [
den.provides.hostname den.provides.hostname
den.aspects.core den.aspects.core
den.aspects.services
den.aspects.wayland den.aspects.wayland
den.aspects.niri den.aspects.niri
den.aspects.desktop-specific den.aspects.desktop-specific

View file

@ -24,6 +24,7 @@ in {
# Infrastructure # Infrastructure
docker-compose docker-compose
jq
# IDE # IDE
jetbrains.idea jetbrains.idea

View file

@ -1,4 +1,4 @@
{ den, inputs, lib, ... }: { { den, inputs, ... }: {
den.aspects.notebook-specific.nixos = { pkgs, ... }: { den.aspects.notebook-specific.nixos = { pkgs, ... }: {
imports = [ imports = [
./_hardware/notebook-hardware.nix ./_hardware/notebook-hardware.nix
@ -11,24 +11,7 @@
enable32Bit = true; enable32Bit = true;
}; };
security.sudo.wheelNeedsPassword = lib.mkForce true;
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
services.thermald.enable = true; services.thermald.enable = true;
powerManagement.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
};
};
boot = { boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];

17
modules/portable.nix Normal file
View file

@ -0,0 +1,17 @@
{ den, lib, ... }: {
den.aspects.portable.nixos = {
security.sudo.wheelNeedsPassword = lib.mkForce true;
networking.firewall.enable = true;
powerManagement.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
};
};
};
}

View file

@ -1,5 +1,5 @@
{ den, ... }: { { den, ... }: {
den.aspects.core.nixos = { pkgs, ... }: { den.aspects.services.nixos = {
services = { services = {
libinput.enable = true; libinput.enable = true;
fstrim.enable = true; fstrim.enable = true;

View file

@ -1,4 +1,4 @@
{ den, inputs, lib, config, ... }: { { den, inputs, ... }: {
den.aspects.work-specific.nixos = { pkgs, config, ... }: { den.aspects.work-specific.nixos = { pkgs, config, ... }: {
imports = [ imports = [
./_hardware/work-hardware.nix ./_hardware/work-hardware.nix
@ -41,24 +41,6 @@
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia";
}; };
security.sudo.wheelNeedsPassword = lib.mkForce true;
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
powerManagement.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
};
};
boot = { boot = {
initrd.kernelModules = [ "amdgpu" ]; initrd.kernelModules = [ "amdgpu" ];
kernelModules = [ "kvm-amd" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ]; kernelModules = [ "kvm-amd" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];