Skip to content

Commit

Permalink
fix(mother): fix mother config
Browse files Browse the repository at this point in the history
  • Loading branch information
misumisumi committed Sep 29, 2024
1 parent c492cce commit c75778d
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 27 deletions.
8 changes: 1 addition & 7 deletions machines/mother/gpu.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
{
# boot.extraModprobeConfig = lib.mkAfter ''
# softdep snd_hda_intel pre: vfio-pci
# softdep nouveau pre: vfio-pci
# softdep nvidia pre: vfio-pci
# softdep xhci_hcd pre: vfio-pci
# '';
services = {
xserver = {
videoDrivers = [
Expand Down
21 changes: 15 additions & 6 deletions machines/mother/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,17 +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
, modulesPath
, ...
}: {
{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd = {
availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "uas" "sd_mod" ];
availableKernelModules = [
"nvme"
"xhci_pci"
"usbhid"
"usb_storage"
"uas"
"sd_mod"
];
};
};
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
Expand Down
6 changes: 3 additions & 3 deletions machines/mother/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xresources = {
extraConfig = "Xft.dpi:125";
};
# home.pointerCursor = {
# size = 32;
# };
home.pointerCursor = {
size = 32;
};
sops.secrets = {
"desktops" = {
path = "${config.home.homeDirectory}/.ssh/conf.d/hosts/desktops";
Expand Down
9 changes: 7 additions & 2 deletions machines/mother/network.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ hostname, ... }: {
{ hostname, ... }:
{
services = {
nscd = {
enable = true;
Expand Down Expand Up @@ -99,7 +100,11 @@
networks = {
"10-wired" = {
name = "enp5s0";
vlan = [ "devnode" "devk8s" "devnfs" ];
vlan = [
"devnode"
"devk8s"
"devnfs"
];
bridge = [ "br0" ];
};
"20-br0" = {
Expand Down
1 change: 0 additions & 1 deletion machines/mother/sops.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{ config, ... }:
{
sops = {
age = {
Expand Down
13 changes: 6 additions & 7 deletions machines/mother/system.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ config
, pkgs
, user
, ...
}: {
{ config, ... }:
{
boot = {
loader.timeout = 10;
extraModulePackages = with config.boot.kernelPackages; [
Expand All @@ -17,8 +14,10 @@
tmpfsSize = "50%";
};
};
services.xserver.xp-pentablet.enable = true;
services.xserver.displayManager.lightdm.greeters.slick.cursorTheme.size = 32;
services.xserver = {
xp-pentablet.enable = true;
displayManager.lightdm.greeters.slick.cursorTheme.size = 32;
};
nix = {
settings = {
cores = 6;
Expand Down
5 changes: 4 additions & 1 deletion machines/mother/virtualisation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
vfio = {
enable = true;
IOMMUType = "amd";
devices = [ "10de:2504" "10de:228e" ];
devices = [
"10de:2504"
"10de:228e"
];
# deviceDomains = [ "0000:09:00.0" "0000:09:00.1" ];
blacklistNvidia = false;
disableEFIfb = false;
Expand Down

0 comments on commit c75778d

Please sign in to comment.