formatting

This commit is contained in:
Henri Dohmen 2025-03-22 12:28:50 +01:00
parent e3e370c893
commit 43860609e1
22 changed files with 230 additions and 154 deletions

View file

@ -1,9 +1,10 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
pavucontrol
alsa-utils
];
services.pulseaudio.enable = false;
services.pipewire = {
enable = true;
@ -11,4 +12,4 @@
alsa.support32Bit = true;
pulse.enable = true;
};
}
}

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
@ -7,4 +8,4 @@
device = "nodev";
};
};
}
}

View file

@ -1,4 +1,5 @@
{ mod, ... }: {
{ mod, ... }:
{
imports = with mod; [
audio
boot
@ -13,4 +14,4 @@
users
window-manager
];
}
}

View file

@ -1,16 +1,21 @@
{ lib, ... }:
let
walk = path:
let dir = builtins.readDir path;
in lib.mapAttrs' (name: value: {
walk =
path:
let
dir = builtins.readDir path;
in
lib.mapAttrs' (name: value: {
name = lib.removeSuffix ".nix" name;
value = if value == "regular" then
import (path + "/${name}")
else if value == "directory" then
walk (path + "/${name}")
else
builtins.throw "Cannot handle item of type ${value}";
value =
if value == "regular" then
import (path + "/${name}")
else if value == "directory" then
walk (path + "/${name}")
else
builtins.throw "Cannot handle item of type ${value}";
}) dir;
in walk ./.
in
walk ./.

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
@ -7,4 +8,4 @@
];
fonts.fontDir.enable = true;
fonts.fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
}
}

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
runelite
];
programs.steam.enable = true;
}
}

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
# hardware.keyboard.qmk.enable = true;
environment.systemPackages = with pkgs; [ vial ];
services.udev.packages = with pkgs; [ vial ];

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
@ -21,4 +22,4 @@
layout = "de";
variant = "";
};
}
}

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
networking.networkmanager.enable = true;
networking.networkmanager.wifi.macAddress = "random";
@ -10,7 +11,7 @@
useRoutingFeatures = "client";
};
networking.networkmanager.ensureProfiles.profiles = {
networking.networkmanager.ensureProfiles.profiles = {
"tuda-vpn" = {
connection = {
autoconnect = "false";
@ -81,4 +82,4 @@
};
};
};
}
}

View file

@ -1,27 +1,36 @@
{ lib, ... }: {
{ lib, ... }:
{
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "@wheel" ];
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"root"
"@wheel"
];
auto-optimise-store = true;
};
programs.nix-ld.enable = true;
nixpkgs.config.allowUnfree = false;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"vscode"
"obsidian"
"steam"
"steam-unwrapped"
"gateway" # jetbrains
"spotify"
"rust-rover"
];
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"vscode"
"obsidian"
"steam"
"steam-unwrapped"
"gateway" # jetbrains
"spotify"
"rust-rover"
];
# TODO this is for zulip 5.11.1
nixpkgs.config.permittedInsecurePackages = [
"electron-32.3.3"
];
}
}

View file

@ -1,6 +1,7 @@
{ config, ... }: {
{ config, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
@ -8,7 +9,7 @@
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
nvidiaSettings = true;
@ -16,7 +17,7 @@
powerManagement = {
enable = true;
finegrained = false;
};
};
};
boot.kernelParams = [

View file

@ -1,3 +1,4 @@
{ ... }: {
{ ... }:
{
security.rtkit.enable = true;
}

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
systemd.services.NetworkManager-wait-online.enable = false;
services.printing.enable = true;
services.avahi = {
@ -7,4 +8,4 @@
openFirewall = true;
};
services.udisks2.enable = true;
}
}

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: {
environment.shells = with pkgs; [
{ pkgs, ... }:
{
environment.shells = with pkgs; [
fish
bashInteractive
];

View file

@ -1,52 +1,50 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
environment.systemPackages = let
editors = with pkgs; [
vscode
emacs
jetbrains.gateway
jetbrains.rust-rover
];
environment.systemPackages =
let
editors = with pkgs; [
vscode
emacs
jetbrains.gateway
jetbrains.rust-rover
];
messengers = with pkgs; [
signal-desktop
element-desktop
zulip
vesktop
];
messengers = with pkgs; [
signal-desktop
element-desktop
zulip
vesktop
];
util = with pkgs; [
wireguard-tools
bitwarden
kitty
nixfmt-rfc-style
nil
];
util = with pkgs; [
wireguard-tools
bitwarden
kitty
nixfmt-rfc-style
nil
];
media = with pkgs; [
vlc
spotify
calibre
];
media = with pkgs; [
vlc
spotify
calibre
];
productivity = with pkgs; [
zotero
obsidian
];
productivity = with pkgs; [
zotero
obsidian
];
dev = with pkgs; [
rustup
python313
gcc
binutils
];
dev = with pkgs; [
rustup
python313
gcc
binutils
];
in editors
++ messengers
++ util
++ media
++ productivity
++ dev;
in
editors ++ messengers ++ util ++ media ++ productivity ++ dev;
virtualisation = {
docker.enable = true;

View file

@ -1,9 +1,13 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
users.users.hd = {
description = "Henri";
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = [
"networkmanager"
"wheel"
];
shell = pkgs.fish;
packages = [];
packages = [ ];
};
}
}

View file

@ -1,8 +1,9 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
};
services.desktopManager.plasma6.enable = true;
}
}