mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 15:15:39 +01:00
Compare commits
No commits in common. "cc566fed4f4e8ecf6498aa3029d416bd38f38695" and "17acf4b2d8527e204e9ca567d63051503622e0da" have entirely different histories.
cc566fed4f
...
17acf4b2d8
6 changed files with 157 additions and 123 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disko.nix
|
# ./disko.nix
|
||||||
./../../modules/core/default.server.nix
|
./../../modules/core/default.server.nix
|
||||||
# ./../../modules/services/hazel.nix
|
# ./../../modules/services/hazel.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,17 @@
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "mbr";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
ESP = {
|
||||||
size = "1M";
|
type = "EF00";
|
||||||
type = "EF02";
|
size = "500M";
|
||||||
priority = 1;
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
root = {
|
root = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
|
|
|
||||||
|
|
@ -24,21 +24,21 @@
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
# fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
# device = "/dev/disk/by-uuid/864dfbec-81f0-460f-b970-27693a0ad0e6";
|
device = "/dev/disk/by-uuid/864dfbec-81f0-460f-b970-27693a0ad0e6";
|
||||||
# fsType = "ext4";
|
fsType = "ext4";
|
||||||
# };
|
};
|
||||||
|
|
||||||
# fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
# device = "/dev/disk/by-uuid/E141-F5CE";
|
device = "/dev/disk/by-uuid/E141-F5CE";
|
||||||
# fsType = "vfat";
|
fsType = "vfat";
|
||||||
# options = [
|
options = [
|
||||||
# "fmask=0077"
|
"fmask=0077"
|
||||||
# "dmask=0077"
|
"dmask=0077"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
# swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
|
||||||
|
|
@ -5,87 +5,124 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
guiPkgs =
|
||||||
|
if (config.liv.gui == true) then
|
||||||
|
[
|
||||||
|
element-desktop
|
||||||
|
gajim
|
||||||
|
signal-desktop
|
||||||
|
anki-bin
|
||||||
|
obs-studio
|
||||||
|
wdisplays
|
||||||
|
librewolf # main
|
||||||
|
ungoogled-chromium # for things that don't work with librewolf
|
||||||
|
nsxiv
|
||||||
|
imv
|
||||||
|
libreoffice
|
||||||
|
xfce.thunar
|
||||||
|
spotify
|
||||||
|
spotify-player
|
||||||
|
thunderbird
|
||||||
|
lxqt.pavucontrol-qt
|
||||||
|
mpv
|
||||||
|
plasma5Packages.kdeconnect-kde
|
||||||
|
winbox
|
||||||
|
# onthespot-overlay
|
||||||
|
|
||||||
|
# Gaming
|
||||||
|
lunar-client
|
||||||
|
]
|
||||||
|
else
|
||||||
|
[
|
||||||
|
killall
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
# Environment shit
|
with pkgs;
|
||||||
tesseract
|
[
|
||||||
yubikey-touch-detector
|
# Environment shit
|
||||||
wireguard-tools
|
tesseract
|
||||||
openresolv
|
yubikey-touch-detector
|
||||||
xdg-utils
|
wireguard-tools
|
||||||
killall
|
openresolv
|
||||||
libnotify
|
xdg-utils
|
||||||
openssl
|
killall
|
||||||
pamixer
|
libnotify
|
||||||
playerctl
|
openssl
|
||||||
wl-clipboard
|
pamixer
|
||||||
cliphist
|
playerctl
|
||||||
poweralertd
|
wl-clipboard
|
||||||
ffmpeg
|
cliphist
|
||||||
zip
|
poweralertd
|
||||||
unzip
|
ffmpeg
|
||||||
wget
|
zip
|
||||||
xxd
|
unzip
|
||||||
gcc
|
wget
|
||||||
gnumake
|
xxd
|
||||||
python3
|
gcc
|
||||||
|
gnumake
|
||||||
|
python3
|
||||||
|
|
||||||
# CLI shit
|
# CLI shit
|
||||||
termpdfpy
|
termpdfpy
|
||||||
vimv
|
vimv
|
||||||
iamb
|
iamb
|
||||||
pass
|
pass
|
||||||
lm_sensors
|
lm_sensors
|
||||||
neofetch
|
neofetch
|
||||||
hyfetch
|
hyfetch
|
||||||
glow
|
glow
|
||||||
eva
|
eva
|
||||||
exiftool
|
exiftool
|
||||||
translate-shell
|
translate-shell
|
||||||
progress
|
progress
|
||||||
pwgen
|
pwgen
|
||||||
jq
|
jq
|
||||||
tmux
|
tmux
|
||||||
htop
|
htop
|
||||||
eza
|
eza
|
||||||
file
|
file
|
||||||
fzf
|
fzf
|
||||||
lazygit
|
lazygit
|
||||||
gitleaks
|
gitleaks
|
||||||
ripgrep
|
ripgrep
|
||||||
yt-dlp
|
yt-dlp
|
||||||
nodejs_22
|
nodejs_22
|
||||||
yarn
|
yarn
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
wikit
|
wikit
|
||||||
reader
|
reader
|
||||||
nmap
|
nmap
|
||||||
speedtest-go
|
speedtest-go
|
||||||
delta
|
delta
|
||||||
powertop
|
powertop
|
||||||
android-tools
|
android-tools
|
||||||
sshpass
|
sshpass
|
||||||
net-tools
|
net-tools
|
||||||
nmap
|
nmap
|
||||||
|
|
||||||
# Install pip packages
|
# Install pip packages
|
||||||
# python3
|
# python3
|
||||||
# python3Packages.pip
|
# python3Packages.pip
|
||||||
# (writeShellScriptBin "install-pip-packages" '' # This script does not run, yet.
|
# (writeShellScriptBin "install-pip-packages" '' # This script does not run, yet.
|
||||||
# pip install --user --break-system-packages <package>
|
# pip install --user --break-system-packages <package>
|
||||||
# '')
|
# '')
|
||||||
|
|
||||||
inputs.alejandra.defaultPackage.${system}
|
inputs.alejandra.defaultPackage.${system}
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
inputs.nixvim.packages.${pkgs.system}.default
|
||||||
mermaid-cli
|
mermaid-cli
|
||||||
gnuplot
|
gnuplot
|
||||||
|
|
||||||
# Email/calendar/etc
|
# Email/calendar/etc
|
||||||
neomutt
|
neomutt
|
||||||
w3m
|
w3m
|
||||||
khard
|
khard
|
||||||
khal
|
khal
|
||||||
vdirsyncer
|
vdirsyncer
|
||||||
];
|
]
|
||||||
|
++ guiPkgs;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,24 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
clientMaxBodySize = lib.mkDefault "10G";
|
clientMaxBodySize = lib.mkDefault "10G";
|
||||||
|
|
||||||
|
#defaultListen =
|
||||||
|
# let
|
||||||
|
# listen = [
|
||||||
|
# {
|
||||||
|
# addr = "[::]";
|
||||||
|
# port = 80;
|
||||||
|
# extraParameters = [ "proxy_protocol" ];
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# addr = "[::]";
|
||||||
|
# port = 443;
|
||||||
|
# ssl = true;
|
||||||
|
# extraParameters = [ "proxy_protocol" ];
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# in
|
||||||
|
# map (x: (x // { addr = "0.0.0.0"; })) listen ++ listen;
|
||||||
|
|
||||||
# Hardened TLS and HSTS preloading
|
# Hardened TLS and HSTS preloading
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
# Proxying
|
# Proxying
|
||||||
|
|
|
||||||
|
|
@ -21,31 +21,5 @@ in
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${username}.home.packages = with pkgs; [
|
|
||||||
element-desktop
|
|
||||||
gajim
|
|
||||||
signal-desktop
|
|
||||||
anki-bin
|
|
||||||
obs-studio
|
|
||||||
wdisplays
|
|
||||||
librewolf # main
|
|
||||||
ungoogled-chromium # for things that don't work with librewolf
|
|
||||||
nsxiv
|
|
||||||
imv
|
|
||||||
libreoffice
|
|
||||||
xfce.thunar
|
|
||||||
spotify
|
|
||||||
spotify-player
|
|
||||||
thunderbird
|
|
||||||
lxqt.pavucontrol-qt
|
|
||||||
mpv
|
|
||||||
plasma5Packages.kdeconnect-kde
|
|
||||||
winbox
|
|
||||||
# onthespot-overlay
|
|
||||||
|
|
||||||
# Gaming
|
|
||||||
lunar-client
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue