Ajout de bongo
This commit is contained in:
parent
49c9029a0b
commit
545d36ecab
3 changed files with 40 additions and 1 deletions
29
bongo-hw.nix
Normal file
29
bongo-hw.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/302a58a6-02da-4330-859a-200ec6245d5e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@root" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/BB96-EB34";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nix.maxJobs = lib.mkDefault 2;
|
||||||
|
}
|
|
@ -35,12 +35,18 @@ in
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# 0ad server?
|
# Urban Terror server
|
||||||
jessicaRabbit = { config, pkgs, lib, ... }:
|
jessicaRabbit = { config, pkgs, lib, ... }:
|
||||||
lib.recursiveUpdate common {
|
lib.recursiveUpdate common {
|
||||||
imports = [ ./jessicaRabbit-hw.nix ];
|
imports = [ ./jessicaRabbit-hw.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# file server
|
||||||
|
bongo = { config, pkgs, lib, ... }:
|
||||||
|
lib.recursiveUpdate common {
|
||||||
|
imports = [ ./bongo-hw.nix ];
|
||||||
|
};
|
||||||
|
|
||||||
# DHCP/DNS server
|
# DHCP/DNS server
|
||||||
eddieValiant = { config, pkgs, lib, ... }:
|
eddieValiant = { config, pkgs, lib, ... }:
|
||||||
lib.recursiveUpdate common {
|
lib.recursiveUpdate common {
|
||||||
|
@ -60,6 +66,9 @@ in
|
||||||
{ ethernetAddress = "00:23:ae:88:fb:b9";
|
{ ethernetAddress = "00:23:ae:88:fb:b9";
|
||||||
hostName = "jessicaRabbit";
|
hostName = "jessicaRabbit";
|
||||||
ipAddress = "10.42.0.3"; }
|
ipAddress = "10.42.0.3"; }
|
||||||
|
{ ethernetAddress = "00:21:9b:2f:1f:99";
|
||||||
|
hostName = "bongo";
|
||||||
|
ipAddress = "10.42.0.4"; }
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
subnet 10.42.0.0 netmask 255.255.0.0 {
|
subnet 10.42.0.0 netmask 255.255.0.0 {
|
||||||
|
|
|
@ -8,4 +8,5 @@ in
|
||||||
eddieValiant = mkMachine "10.42.0.1";
|
eddieValiant = mkMachine "10.42.0.1";
|
||||||
rogerRabbit = mkMachine "10.42.0.2";
|
rogerRabbit = mkMachine "10.42.0.2";
|
||||||
jessicaRabbit = mkMachine "10.42.0.3";
|
jessicaRabbit = mkMachine "10.42.0.3";
|
||||||
|
bongo = mkMachine "10.42.0.4";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue