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
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
unrar
|
unrar
|
||||||
p7zip
|
p7zip
|
||||||
nvd
|
nvd
|
||||||
obsidian
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ in {
|
||||||
|
|
||||||
# Infrastructure
|
# Infrastructure
|
||||||
docker-compose
|
docker-compose
|
||||||
|
jq
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
jetbrains.idea
|
jetbrains.idea
|
||||||
|
|
|
||||||
|
|
@ -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
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, ... }: {
|
||||||
den.aspects.core.nixos = { pkgs, ... }: {
|
den.aspects.services.nixos = {
|
||||||
services = {
|
services = {
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
|
|
@ -14,10 +14,10 @@
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
extraConfig.pipewire."92-low-latency" = {
|
extraConfig.pipewire."92-low-latency" = {
|
||||||
"content.properties" = {
|
"content.properties" = {
|
||||||
"default.clock.rate" = 48000;
|
"default.clock.rate" = 48000;
|
||||||
"default.clock.quantum" = 256;
|
"default.clock.quantum" = 256;
|
||||||
"default.clock.min-quantum" = 256;
|
"default.clock.min-quantum" = 256;
|
||||||
"default.clock.max-quantum" = 256;
|
"default.clock.max-quantum" = 256;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig.pipewire-pulse."92-low-latency" = {
|
extraConfig.pipewire-pulse."92-low-latency" = {
|
||||||
|
|
@ -25,9 +25,9 @@
|
||||||
{
|
{
|
||||||
name = "libpipewire-module-protocol-pulse";
|
name = "libpipewire-module-protocol-pulse";
|
||||||
args = {
|
args = {
|
||||||
pulse.min.req = "256/48000";
|
pulse.min.req = "256/48000";
|
||||||
pulse.default.req = "256/48000";
|
pulse.default.req = "256/48000";
|
||||||
pulse.max.req = "256/48000";
|
pulse.max.req = "256/48000";
|
||||||
pulse.min.quantum = "256/48000";
|
pulse.min.quantum = "256/48000";
|
||||||
pulse.max.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, ... }: {
|
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" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue