structure config

This commit is contained in:
lucy 2026-10-07 15:16:15 +02:00
commit e7a5944b7d
14 changed files with 133 additions and 100 deletions

7
modules/default.nix Normal file
View file

@ -0,0 +1,7 @@
{
imports = [
./programs
./services
./hardware
];
}

View file

@ -0,0 +1,12 @@
{
hardware.bluetooth = {
enable = true;
powerOnBoot = false;
input.General.ClassicBondedOnly = false;
settings = {
General = {
Experimental = true;
};
};
};
}

View file

@ -0,0 +1,7 @@
{
imports = [
./nvidia.nix
./bluetooth.nix
];
hardware.graphics.enable = true;
}

View file

@ -0,0 +1,7 @@
{
hardware.nvidia = lib.mkIf (config.networking.hostName == "nerv") {
modesetting.enable = true;
open = true;
package = config.boot.kernelPackages.nvidiaPackages.new_feature;
};
}

View file

@ -0,0 +1,8 @@
{ config, pkgs, ... }: {
programs.niri.enable = true;
programs.steam.enable = true;
imports = [
./zsh.nix
./nixcord.nix
];
}

View file

@ -0,0 +1,13 @@
{
programs.nixcord = {
enable = true;
user = "lucy";
discord.enable = false;
vesktop.enable = true;
config.plugins = {
messageLogger.enable = true;
messageClickActions.enable = true;
};
config.enabledThemes = [ "tinted.css" ];
};
}

14
modules/programs/zsh.nix Normal file
View file

@ -0,0 +1,14 @@
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
theme = "gentoo";
};
shellInit = ''export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"'';
};
system.userActivationScripts.zshrc = "touch .zshrc";
}

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }: {
imports = [
./tlp.nix
./easyroam.nix
./syncthing.nix
./pipewire.nix
];
services = {
xserver.videoDrivers = lib.mkIf (hostname == "nerv") [ "nvidia" ];
blueman.enable = true;
printing.enable = true;
emacs.enable = false;
xserver.xcb = {
layout = "eu";
variant = "";
};
upower.enable = true;
displayManager.gdm.enable = true;
udisks2.enable = true;
gvfs.enable = true;
gnome.gnome-keyring.enable = true;
};
}

View file

@ -0,0 +1,11 @@
{
services.easyroam = {
enable = true;
pkcsFile = config.age.secrets.easyroam.path;
networkmanager.enable = true;
};
systemd.services.wpa_supplicant = {
wants = [ "easyroam-cert-setup.service" ];
after = [ "easyroam-cert-setup.service" ];
};
}

View file

@ -0,0 +1,8 @@
{
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}

View file

@ -0,0 +1,16 @@
{
services.syncthing = {
user = "lucy";
dataDir = "/home/lucy/sync";
configDir = "/home/lucy/.config/syncthing";
enable = true;
openDefaultPorts = true;
settings = {
devices = {
"cyberia" = {
id = "OOJBAJU-AAIKLHO-BKMMHBU-2NXE75Z-HE64A6V-LET4ZXB-Q2FT2Y4-GZON3AD";
};
};
};
};
}

6
modules/services/tlp.nix Normal file
View file

@ -0,0 +1,6 @@
{
services.tlp = {
enable = true;
pd.enable = true;
};
}