Compare commits
2 commits
e8b1d7c269
...
1e2e108797
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e2e108797 | |||
| 94fc05580d |
7 changed files with 85 additions and 143 deletions
|
|
@ -3,9 +3,29 @@ let
|
|||
globals = import ../../config/globals.nix;
|
||||
in {
|
||||
imports = [
|
||||
../../profiles/workstation-bspwm.nix
|
||||
../../modules/hardware/bepovim.nix
|
||||
../../modules/common/nix.nix
|
||||
../../modules/hardware/bepovim.nix
|
||||
../modules/desktop/xorg-bspwm.nix
|
||||
../modules/common/base.nix
|
||||
../modules/common/fonts.nix
|
||||
../modules/common/networking.nix
|
||||
../modules/common/plymouth.nix
|
||||
../modules/common/audio.nix
|
||||
../modules/common/bluetooth.nix
|
||||
../modules/common/gaming.nix
|
||||
../modules/common/lockscreen.nix
|
||||
../modules/common/energy.nix
|
||||
../modules/common/qemu.nix
|
||||
../modules/common/smtp.nix
|
||||
|
||||
../modules/hardware/firmware.nix
|
||||
../modules/hardware/gpu-amd.nix
|
||||
../modules/hardware/sensors-zenpower.nix
|
||||
|
||||
../modules/services/printing.nix
|
||||
|
||||
../modules/virtual/kvm-amd.nix
|
||||
../modules/virtual/vfio.nix
|
||||
];
|
||||
|
||||
networking.hostName = "pennsardin";
|
||||
|
|
@ -17,8 +37,35 @@ in {
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
lm_sensors
|
||||
btrfs-progs
|
||||
cifs-utils
|
||||
evtest
|
||||
git
|
||||
vim
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
fd
|
||||
pciutils
|
||||
usbutils
|
||||
p7zip
|
||||
gdu
|
||||
glances
|
||||
parted
|
||||
tmux
|
||||
xorg.xauth
|
||||
xorg.xkbcomp
|
||||
xorg.xev
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
X11Forwarding = true;
|
||||
X11DisplayOffset = 10;
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/b1a1ae71-4277-45d5-a3d2-f49354f263d4";
|
||||
|
|
|
|||
|
|
@ -12,9 +12,18 @@ in {
|
|||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware.nix
|
||||
../../profiles/server-selfhosted.nix
|
||||
../../modules/services/ftp.nix
|
||||
../../modules/common/nix.nix
|
||||
../../modules/roles/server.nix
|
||||
../../modules/common/base.nix
|
||||
../../modules/common/smtp.nix
|
||||
../../modules/common/qemu.nix
|
||||
|
||||
../../modules/services/goaccess.nix
|
||||
../../modules/services/wikijs.nix
|
||||
../../modules/services/forgejo.nix
|
||||
../../modules/sites/porzh.me.nix
|
||||
../../modules/sites/levr.porzh.me.nix
|
||||
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
|
@ -48,7 +57,32 @@ in {
|
|||
environment.systemPackages = with pkgs; [
|
||||
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
git
|
||||
|
||||
btrfs-progs
|
||||
cifs-utils
|
||||
lm_sensors
|
||||
wakeonlan
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
fd
|
||||
pciutils
|
||||
usbutils
|
||||
p7zip
|
||||
gdu
|
||||
glances
|
||||
tmux
|
||||
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PubkeyAuthentication = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../common/nix.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
fd
|
||||
pciutils
|
||||
usbutils
|
||||
p7zip
|
||||
gdu
|
||||
glances
|
||||
tmux
|
||||
];
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../common/nix.nix
|
||||
../hardware/gpu-amd.nix
|
||||
../hardware/sensors-zenpower.nix
|
||||
../virtual/kvm-amd.nix
|
||||
../virtual/vfio.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
fd
|
||||
pciutils
|
||||
usbutils
|
||||
p7zip
|
||||
gdu
|
||||
glances
|
||||
parted
|
||||
tmux
|
||||
discord
|
||||
xorg.xauth
|
||||
];
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
virtualisation.oci-containers.containers.pihole = {
|
||||
image = "pihole/pihole:latest";
|
||||
autoStart = true;
|
||||
|
||||
ports = [
|
||||
"53:53/udp"
|
||||
"53:53/tcp"
|
||||
"80:80/tcp"
|
||||
];
|
||||
|
||||
environment = {
|
||||
TZ = "Europe/Paris";
|
||||
WEBPASSWORD = "changeme"; # Change à ta convenance
|
||||
PIHOLE_DNS_ = "1.1.1.1;1.0.0.1";
|
||||
};
|
||||
|
||||
volumes = [
|
||||
"/srv/pihole/etc-pihole:/etc/pihole"
|
||||
"/srv/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
|
||||
];
|
||||
extraOptions = ["--cap-add=NET_ADMIN"];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../modules/roles/server.nix
|
||||
../modules/common/base.nix
|
||||
../modules/common/smtp.nix
|
||||
../modules/common/qemu.nix
|
||||
../modules/services/printing.nix
|
||||
../modules/services/goaccess.nix
|
||||
../modules/services/wikijs.nix
|
||||
../modules/sites/porzh.me.nix
|
||||
../modules/sites/levr.porzh.me.nix
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PubkeyAuthentication = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
btrfs-progs
|
||||
cifs-utils
|
||||
lm_sensors
|
||||
wakeonlan
|
||||
];
|
||||
}
|
||||
# vim: set ts=2 sw=2 sts=2 et :
|
||||
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../modules/roles/workstation.nix
|
||||
../modules/desktop/xorg-bspwm.nix
|
||||
../modules/common/base.nix
|
||||
../modules/common/fonts.nix
|
||||
../modules/common/networking.nix
|
||||
../modules/common/plymouth.nix
|
||||
../modules/hardware/firmware.nix
|
||||
../modules/hardware/gpu-amd.nix
|
||||
../modules/common/audio.nix
|
||||
../modules/common/bluetooth.nix
|
||||
../modules/common/gaming.nix
|
||||
../modules/services/printing.nix
|
||||
../modules/common/lockscreen.nix
|
||||
../modules/common/energy.nix
|
||||
../modules/common/qemu.nix
|
||||
../modules/common/smtp.nix
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
X11Forwarding = true;
|
||||
X11DisplayOffset = 10;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
btrfs-progs
|
||||
cifs-utils
|
||||
evtest
|
||||
lm_sensors
|
||||
xorg.xev
|
||||
xorg.xkbcomp
|
||||
];
|
||||
}
|
||||
# vim: set ts=2 sw=2 sts=2 et :
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue