structure config
This commit is contained in:
parent
28985be5f0
commit
e7a5944b7d
14 changed files with 133 additions and 100 deletions
7
modules/default.nix
Normal file
7
modules/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./programs
|
||||
./services
|
||||
./hardware
|
||||
];
|
||||
}
|
||||
12
modules/hardware/bluetooth.nix
Normal file
12
modules/hardware/bluetooth.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
input.General.ClassicBondedOnly = false;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
modules/hardware/default.nix
Normal file
7
modules/hardware/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./nvidia.nix
|
||||
./bluetooth.nix
|
||||
];
|
||||
hardware.graphics.enable = true;
|
||||
}
|
||||
7
modules/hardware/nvidia.nix
Normal file
7
modules/hardware/nvidia.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
8
modules/programs/default.nix
Normal file
8
modules/programs/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }: {
|
||||
programs.niri.enable = true;
|
||||
programs.steam.enable = true;
|
||||
imports = [
|
||||
./zsh.nix
|
||||
./nixcord.nix
|
||||
];
|
||||
}
|
||||
13
modules/programs/nixcord.nix
Normal file
13
modules/programs/nixcord.nix
Normal 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
14
modules/programs/zsh.nix
Normal 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";
|
||||
}
|
||||
23
modules/services/default.nix
Normal file
23
modules/services/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
11
modules/services/easyroam.nix
Normal file
11
modules/services/easyroam.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
8
modules/services/pipewire.nix
Normal file
8
modules/services/pipewire.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
16
modules/services/syncthing.nix
Normal file
16
modules/services/syncthing.nix
Normal 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
6
modules/services/tlp.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
pd.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue