Added config for sampledb-dev
This commit is contained in:
parent
4b79fe05c6
commit
b313c0b3ba
21
config/config.nix
Normal file
21
config/config.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
|
||||
imports = [
|
||||
../hardware/media.nix
|
||||
./headless.nix
|
||||
];
|
||||
|
||||
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;
|
||||
}
|
||||
];
|
||||
}
|
21
config/sampledb.nix
Normal file
21
config/sampledb.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
|
||||
imports = [
|
||||
../hardware/sampledb.nix
|
||||
./headless.nix
|
||||
];
|
||||
|
||||
users.users.sampledb = import ./user.nix;
|
||||
networking.hostName = "sampledb-dev";
|
||||
|
||||
# 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.7";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
}
|
16
flake.nix
16
flake.nix
@ -40,6 +40,22 @@
|
||||
];
|
||||
};
|
||||
|
||||
homeConfigurations.sampledb = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
extraSpecialArgs.user = "sampledb";
|
||||
modules = [
|
||||
./home/headless-nixos.nix
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations."sampledb-dev" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./config/sampledb.nix
|
||||
];
|
||||
};
|
||||
|
||||
homeConfigurations.media = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
extraSpecialArgs.user = "media";
|
||||
|
31
hardware/sampledb.nix
Normal file
31
hardware/sampledb.nix
Normal file
@ -0,0 +1,31 @@
|
||||
# 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, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/bc530c66-1e41-4c32-9ea0-e9e644677300";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# 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
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user