Added networking config and HDD config to media nixos config
This commit is contained in:
parent
1b82a3074a
commit
a877d14081
@ -7,4 +7,15 @@
|
||||
|
||||
users.users.media = import ./user.nix;
|
||||
networking.hostName = "r330-media";
|
||||
|
||||
# Conigure a static IP address.
|
||||
networking.defaultGateway = "192.168.8.1";
|
||||
networking.nameservers = [ "192.168.8.1" ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 32400 ];
|
||||
networking.interfaces.ens18.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.8.5";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.media = nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations."r330-media" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
@ -13,10 +13,15 @@
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/e92861c0-ac2d-4477-a57a-c9ea6108ff5d";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/e92861c0-ac2d-4477-a57a-c9ea6108ff5d";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/storage" = {
|
||||
device = "/dev/disk/by-uuid/77934130-6fba-4b8e-801d-56d5e07e956e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user