refactor and cleanup
This commit is contained in:
parent
0b4382253f
commit
71f5c6dd61
9 changed files with 35 additions and 48 deletions
|
|
@ -8,6 +8,7 @@ in {
|
|||
kitty
|
||||
claude-code
|
||||
mpv
|
||||
obsidian
|
||||
];
|
||||
|
||||
# Symlinks in ~/.jdks/ - path scanned by IntelliJ on Linux by default
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
wallpaper = "${config.home.homeDirectory}/repos/nixos/wallpapers/astronaut.png";
|
||||
wallpaper = "${../../wallpapers/astronaut.png}";
|
||||
in {
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
|
|
@ -69,7 +69,6 @@ in {
|
|||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
swww-daemon &
|
||||
sleep 0.5
|
||||
swww img "${wallpaper}" --transition-type none
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
unrar
|
||||
p7zip
|
||||
nvd
|
||||
obsidian
|
||||
];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,10 @@ in {
|
|||
includes = [
|
||||
den.provides.hostname
|
||||
den.aspects.core
|
||||
den.aspects.services
|
||||
den.aspects.wayland
|
||||
den.aspects.niri
|
||||
den.aspects.portable
|
||||
den.aspects.notebook-specific
|
||||
den.aspects.dev
|
||||
den.aspects.creative
|
||||
|
|
@ -42,8 +44,10 @@ in {
|
|||
includes = [
|
||||
den.provides.hostname
|
||||
den.aspects.core
|
||||
den.aspects.services
|
||||
den.aspects.wayland
|
||||
den.aspects.niri
|
||||
den.aspects.portable
|
||||
den.aspects.work-specific
|
||||
den.aspects.secrets
|
||||
den.aspects.dev
|
||||
|
|
@ -57,6 +61,7 @@ in {
|
|||
includes = [
|
||||
den.provides.hostname
|
||||
den.aspects.core
|
||||
den.aspects.services
|
||||
den.aspects.wayland
|
||||
den.aspects.niri
|
||||
den.aspects.desktop-specific
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ in {
|
|||
|
||||
# Infrastructure
|
||||
docker-compose
|
||||
jq
|
||||
|
||||
# IDE
|
||||
jetbrains.idea
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ den, inputs, lib, ... }: {
|
||||
{ den, inputs, ... }: {
|
||||
den.aspects.notebook-specific.nixos = { pkgs, ... }: {
|
||||
imports = [
|
||||
./_hardware/notebook-hardware.nix
|
||||
|
|
@ -11,24 +11,7 @@
|
|||
enable32Bit = true;
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = lib.mkForce true;
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [];
|
||||
allowedUDPPorts = [];
|
||||
};
|
||||
|
||||
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 = {
|
||||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
||||
|
|
|
|||
17
modules/portable.nix
Normal file
17
modules/portable.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{ den, ... }: {
|
||||
den.aspects.core.nixos = { pkgs, ... }: {
|
||||
den.aspects.services.nixos = {
|
||||
services = {
|
||||
libinput.enable = true;
|
||||
fstrim.enable = true;
|
||||
|
|
@ -14,10 +14,10 @@
|
|||
jack.enable = true;
|
||||
extraConfig.pipewire."92-low-latency" = {
|
||||
"content.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.quantum" = 256;
|
||||
"default.clock.min-quantum" = 256;
|
||||
"default.clock.max-quantum" = 256;
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.quantum" = 256;
|
||||
"default.clock.min-quantum" = 256;
|
||||
"default.clock.max-quantum" = 256;
|
||||
};
|
||||
};
|
||||
extraConfig.pipewire-pulse."92-low-latency" = {
|
||||
|
|
@ -25,9 +25,9 @@
|
|||
{
|
||||
name = "libpipewire-module-protocol-pulse";
|
||||
args = {
|
||||
pulse.min.req = "256/48000";
|
||||
pulse.min.req = "256/48000";
|
||||
pulse.default.req = "256/48000";
|
||||
pulse.max.req = "256/48000";
|
||||
pulse.max.req = "256/48000";
|
||||
pulse.min.quantum = "256/48000";
|
||||
pulse.max.quantum = "256/48000";
|
||||
};
|
||||
|
|
@ -36,5 +36,5 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ den, inputs, lib, config, ... }: {
|
||||
{ den, inputs, ... }: {
|
||||
den.aspects.work-specific.nixos = { pkgs, config, ... }: {
|
||||
imports = [
|
||||
./_hardware/work-hardware.nix
|
||||
|
|
@ -41,24 +41,6 @@
|
|||
__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 = {
|
||||
initrd.kernelModules = [ "amdgpu" ];
|
||||
kernelModules = [ "kvm-amd" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue