mirror of https://gitlab.crans.org/nounous/nixos
Ajout de la conf hardware
parent
3eba630fe9
commit
ac9ed3a369
|
@ -6,7 +6,7 @@
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
../../../modules
|
../../../modules
|
||||||
../../../modules/services/wiki.nix
|
# ../../../modules/services/mediawiki.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "mediakiwi";
|
networking.hostName = "mediakiwi";
|
||||||
|
|
|
@ -1,37 +1,24 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||||
"ata_piix"
|
|
||||||
"uhci_hcd"
|
|
||||||
"virtio_pci"
|
|
||||||
"virtio_scsi"
|
|
||||||
"sd_mod"
|
|
||||||
"sr_mod"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-uuid/6aab06d9-2d09-4929-a680-719c6818a663";
|
{ device = "/dev/disk/by-uuid/74148438-bd6e-4c19-a41c-d20c907f1fc1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ { device = "/dev/disk/by-uuid/24f88af8-323d-48e3-8872-402b8bbbdc13"; } ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
@ -39,7 +26,6 @@
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.ens19.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.mediawiki = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
httpd.virtualHost = {
|
||||||
|
hostName = "mediakiwi.crans.org";
|
||||||
|
adminAddr = "root@crans.org";
|
||||||
|
|
||||||
|
listen = [
|
||||||
|
{
|
||||||
|
ip = "127.0.0.1";
|
||||||
|
port = 8080;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
passwordFile = pkgs.writeText "password" "cardbotine";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
# contact info
|
||||||
|
$wgEmergencyContact = 'contact@crans.org';
|
||||||
|
|
||||||
|
# default theme
|
||||||
|
$wgDefaultSkin = 'citizen';
|
||||||
|
|
||||||
|
$wgLanguageCode = 'fr';
|
||||||
|
|
||||||
|
# Disable anonymous editing
|
||||||
|
$wgGroupPermissions['*']['edit'] = false;
|
||||||
|
'';
|
||||||
|
|
||||||
|
skins = {
|
||||||
|
Citizen = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/archive/main.zip";
|
||||||
|
sha256 = "sha256-6ZhrAHAKWHGij1qBgigEll0xbGhEOo0hYTMuakkU06o=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,44 +0,0 @@
|
||||||
{pkgs, ...}:
|
|
||||||
{
|
|
||||||
|
|
||||||
services.mediawiki = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
httpd.virtualHost = {
|
|
||||||
hostName = "test-wiki.crans.org";
|
|
||||||
adminAddr = "root@crans.org";
|
|
||||||
|
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
ip = "127.0.0.1";
|
|
||||||
port = 8080;
|
|
||||||
# ssl = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
passwordFile = pkgs.writeText "password" "cardbotine";
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
# contact info
|
|
||||||
$wgEmergencyContact = 'contact@crans.org';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# default theme
|
|
||||||
$wgDefaultSkin = 'citizen';
|
|
||||||
|
|
||||||
$wgLanguageCode = 'fr';
|
|
||||||
|
|
||||||
# Disable anonymous editing
|
|
||||||
$wgGroupPermissions['*']['edit'] = false;
|
|
||||||
'';
|
|
||||||
|
|
||||||
skins = {
|
|
||||||
Citizen = pkgs.fetchzip {
|
|
||||||
url = "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/archive/main.zip";
|
|
||||||
sha256 = "sha256-6ZhrAHAKWHGij1qBgigEll0xbGhEOo0hYTMuakkU06o=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue