mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
New system (Mabon). Renamed "unstable" to nixpkgs-master for correctness. Added Google Chrome and VLC to the desktop profile for Chromecast usage. Added MultiMC to the gaming profile.
This commit is contained in:
parent
6f255a60f0
commit
858bae5610
6 changed files with 76 additions and 7 deletions
|
|
@ -2,7 +2,7 @@ let
|
||||||
hosts = {
|
hosts = {
|
||||||
yule = {
|
yule = {
|
||||||
ssh.host = "kat@yule";
|
ssh.host = "kat@yule";
|
||||||
groups = [ "desktop" "personal" ];
|
groups = [ "laptop" "personal" ];
|
||||||
};
|
};
|
||||||
beltane = {
|
beltane = {
|
||||||
ssh.host = "kat@beltane";
|
ssh.host = "kat@beltane";
|
||||||
|
|
@ -14,7 +14,11 @@ let
|
||||||
};
|
};
|
||||||
litha = {
|
litha = {
|
||||||
ssh.host = "root@litha";
|
ssh.host = "root@litha";
|
||||||
groups = [ "desktop" "personal" ];
|
groups = [ "laptop" "personal" ];
|
||||||
|
};
|
||||||
|
mabon = {
|
||||||
|
ssh.host = "root@192.168.1.218";
|
||||||
|
groups = [ "laptop" "personal"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pkgs = import <nixpkgs> { };
|
pkgs = import <nixpkgs> { };
|
||||||
|
|
|
||||||
36
configuration/hosts/mabon/configuration.nix
Normal file
36
configuration/hosts/mabon/configuration.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../profiles/common
|
||||||
|
../../profiles/desktop
|
||||||
|
../../profiles/xfce
|
||||||
|
../../profiles/network
|
||||||
|
../../profiles/yubikey
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Use the GRUB 2 boot loader.
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.version = 2;
|
||||||
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
|
|
||||||
|
networking.hostName = "mabon"; # Define your hostname.
|
||||||
|
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.interfaces.enp0s25.useDHCP = true;
|
||||||
|
networking.interfaces.wls3.useDHCP = true;
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "20.09"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
26
configuration/hosts/mabon/hardware-configuration.nix
Normal file
26
configuration/hosts/mabon/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# 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 + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "ahci" "firewire_ohci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/05829271-4036-4d81-85b0-cd8c8197d40f";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/aacb9f81-bc7a-46f9-8cac-04942d078318"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.enableIntel3945ABGFirmware = true;
|
||||||
|
}
|
||||||
|
|
@ -69,6 +69,7 @@
|
||||||
"samhain" = { hostname = "192.168.1.135"; } // kat;
|
"samhain" = { hostname = "192.168.1.135"; } // kat;
|
||||||
"litha" = { hostname = "192.168.1.240"; } // kat;
|
"litha" = { hostname = "192.168.1.240"; } // kat;
|
||||||
"yule" = { hostname = "192.168.1.92"; } // kat;
|
"yule" = { hostname = "192.168.1.92"; } // kat;
|
||||||
|
"lughnasadh" = { hostname = "192.168.1.102"; } // kat;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
unstable = import
|
nixpkgs-master = import
|
||||||
(fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz") { };
|
(fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz") { config.allowUnfree = true; };
|
||||||
in {
|
in {
|
||||||
nixpkgs.config = { mumble.speechdSupport = true; };
|
nixpkgs.config = { mumble.speechdSupport = true; };
|
||||||
|
|
||||||
|
|
@ -11,8 +11,10 @@ in {
|
||||||
pkgs._1password
|
pkgs._1password
|
||||||
pkgs.mpv
|
pkgs.mpv
|
||||||
pkgs.mumble
|
pkgs.mumble
|
||||||
unstable.pkgs.syncplay
|
pkgs.vlc
|
||||||
unstable.pkgs.youtube-dl
|
nixpkgs-master.pkgs.syncplay
|
||||||
|
nixpkgs-master.pkgs.youtube-dl
|
||||||
|
nixpkgs-master.google-chrome
|
||||||
pkgs.transmission-gtk
|
pkgs.transmission-gtk
|
||||||
pkgs.jdk11
|
pkgs.jdk11
|
||||||
pkgs.lm_sensors
|
pkgs.lm_sensors
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
|
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
|
||||||
hardware.pulseaudio.support32Bit = true;
|
hardware.pulseaudio.support32Bit = true;
|
||||||
|
|
||||||
home-manager.users.kat = { home.packages = [ pkgs.steam pkgs.steam-run ]; };
|
home-manager.users.kat = { home.packages = [ pkgs.steam pkgs.steam-run pkgs.multimc ]; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue