Compare commits
No commits in common. "1e2e10879776dc00b529f6073c44daed0bd5bd44" and "e8b1d7c26977b2586f6d8c464005c6f7e53aa587" have entirely different histories.
1e2e108797
...
e8b1d7c269
7 changed files with 143 additions and 85 deletions
|
|
@ -3,29 +3,9 @@ let
|
||||||
globals = import ../../config/globals.nix;
|
globals = import ../../config/globals.nix;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/common/nix.nix
|
../../profiles/workstation-bspwm.nix
|
||||||
../../modules/hardware/bepovim.nix
|
../../modules/hardware/bepovim.nix
|
||||||
../modules/desktop/xorg-bspwm.nix
|
../../modules/common/nix.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";
|
networking.hostName = "pennsardin";
|
||||||
|
|
@ -37,35 +17,8 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lm_sensors
|
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 = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-uuid/b1a1ae71-4277-45d5-a3d2-f49354f263d4";
|
device = "/dev/disk/by-uuid/b1a1ae71-4277-45d5-a3d2-f49354f263d4";
|
||||||
|
|
|
||||||
|
|
@ -12,18 +12,9 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules/common/nix.nix
|
../../profiles/server-selfhosted.nix
|
||||||
../../modules/roles/server.nix
|
../../modules/services/ftp.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/services/forgejo.nix
|
||||||
../../modules/sites/porzh.me.nix
|
|
||||||
../../modules/sites/levr.porzh.me.nix
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
|
@ -57,32 +48,7 @@ in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
git
|
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 = {
|
networking = {
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
|
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
|
||||||
|
|
|
||||||
19
modules/roles/server.nix
Normal file
19
modules/roles/server.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
../common/nix.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
pciutils
|
||||||
|
usbutils
|
||||||
|
p7zip
|
||||||
|
gdu
|
||||||
|
glances
|
||||||
|
tmux
|
||||||
|
];
|
||||||
|
}
|
||||||
27
modules/roles/workstation.nix
Normal file
27
modules/roles/workstation.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{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
|
||||||
|
];
|
||||||
|
}
|
||||||
24
modules/services/pihole.nix
Normal file
24
modules/services/pihole.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
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"];
|
||||||
|
};
|
||||||
|
}
|
||||||
30
profiles/server-selfhosted.nix
Normal file
30
profiles/server-selfhosted.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{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 :
|
||||||
|
|
||||||
39
profiles/workstation-bspwm.nix
Normal file
39
profiles/workstation-bspwm.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
{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