game-laptop -> game-desktop

This commit is contained in:
Gerg-L 2023-10-12 20:35:39 -04:00
parent 849c21761f
commit d24efeba64
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
15 changed files with 105 additions and 103 deletions

View file

@ -1,7 +1,7 @@
keys:
- &gerg-desktop age180y8kdtdlqelayyz9mq2c7xv248rh4gdfr3amjzvdcjrz6wdaqmsj762pp
- &moms-laptop age1vxx3qdsucv2v2slag67c4f0kwd8jtta4tue6m8d9xfl4ryrqvyusxgwl68
- &game-laptop age1egxes320renph0uevtmnsz4d5aw0z794c5nwrk2z6249wv2yevgqx9cf90
- &game-desktop age1egxes320renph0uevtmnsz4d5aw0z794c5nwrk2z6249wv2yevgqx9cf90
creation_rules:
- path_regex: hosts/gerg-desktop/secrets.yaml$
key_groups:
@ -15,6 +15,6 @@ creation_rules:
- path_regex: hosts/game-laptop/secrets.yaml$
key_groups:
- age:
- *game-laptop
- *game-desktop
- *gerg-desktop

View file

@ -5,7 +5,7 @@ it currently has 3 hosts:
"gerg-desktop" my main computer [specs](https://pcpartpicker.com/list/DVkMk9)
which I run a windows KVM VFIO virtual machine on
"game-laptop" a HP Pavilion Laptop [15-ec2121nr](https://support.hp.com/us-en/document/c07918617#AbT0)
"game-desktop" a HP Pavilion Laptop [15-ec2121nr](https://support.hp.com/us-en/document/c07918617#AbT0)
which I've been testing linux game compatability on
"moms-laptop" a TOSHIBA Satellite [L855-S5309](https://fo-stage-03.icecat.biz/us/p/toshiba/pskfuu-008049/satellite-notebooks-l855-s5309-18316794.html)

View file

@ -56,7 +56,7 @@
inherit lib;
nixosConfigurations = lib.mkHosts "x86_64-linux" [
"gerg-desktop"
"game-laptop"
"game-desktop"
"moms-laptop"
"iso"
];
@ -65,7 +65,7 @@
diskoConfigurations = lib.mkDisko [
"gerg-desktop"
"game-laptop"
"game-desktop"
"moms-laptop"
];
formatter.${system} = pkgs.writeShellApplication {

View file

@ -77,6 +77,28 @@ _:
};
};
};
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
nvidiaPersistenced = true;
nvidiaSettings = false;
modesetting.enable = true;
};
services.xserver = {
videoDrivers = [ "nvidia" ];
#disable DPMS
monitorSection = ''
Option "DPMS" "false"
'';
#disable screen blanking in total
serverFlagsSection = ''
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
'';
};
hardware.bluetooth.enable = true;
services.blueman.enable = true;
boot = {
@ -88,10 +110,12 @@ _:
kernelModules = [ "kvm-amd" ];
kernelPackages = pkgs.linuxPackages_latest;
};
swapDevices = [ {
device = "/swapfile";
size = 16 * 1024;
} ];
swapDevices = [
{
device = "/swapfile";
size = 16 * 1024;
}
];
system.stateVersion = "23.05";
_file = ./main.nix;

View file

@ -1,30 +0,0 @@
_:
{ config, ... }:
{
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
prime = {
sync.enable = true;
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
nvidiaPersistenced = true;
nvidiaSettings = false;
modesetting.enable = true;
};
services.xserver = {
videoDrivers = [ "nvidia" ];
#disable DPMS
monitorSection = ''
Option "DPMS" "false"
'';
#disable screen blanking in total
serverFlagsSection = ''
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
'';
};
_file = ./prime.nix;
}

View file

@ -10,10 +10,12 @@ _:
"miniflux"
config.services.gitea.database.user
];
ensureUsers = [ {
name = "miniflux";
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
} ];
ensureUsers = [
{
name = "miniflux";
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
}
];
settings.unix_socket_permissions = "0770";
};

View file

@ -91,9 +91,11 @@ _:
system.stateVersion = "23.05";
swapDevices = [ {
device = "/swapfile";
size = 8 * 1024;
} ];
swapDevices = [
{
device = "/swapfile";
size = 8 * 1024;
}
];
_file = ./main.nix;
}

View file

@ -39,8 +39,7 @@ in
if config == { } then
unstable.legacyPackages.${system}
else
import unstable { inherit system config; }
;
import unstable { inherit system config; };
}
)
[ "x86_64-linux" ]

View file

@ -22,26 +22,28 @@
'';
defaultSession = "none+dwm";
};
windowManager.session = [ {
name = "dwm";
start = ''
update_time () {
while :
do
sleep 1
xsetroot -name "$(date +"%I:%M %p")"
done
}
windowManager.session = [
{
name = "dwm";
start = ''
update_time () {
while :
do
sleep 1
xsetroot -name "$(date +"%I:%M %p")"
done
}
dont_stop() {
while type dwm >/dev/null ; do dwm && continue || break ; done
}
dont_stop() {
while type dwm >/dev/null ; do dwm && continue || break ; done
}
update_time &
dont_stop &
waitPID=$!
'';
} ];
update_time &
dont_stop &
waitPID=$!
'';
}
];
};
environment.systemPackages = builtins.attrValues {
inherit (suckless.packages.${pkgs.system}) dmenu dwm st;

View file

@ -19,24 +19,26 @@ _:
];
};
distributedBuilds = true;
buildMachines = [ {
hostName = "gerg-desktop";
protocol = "ssh-ng";
maxJobs = 32;
systems = [
"x86_64-linux"
"i686-linux"
];
supportedFeatures = [
"big-parallel"
"nixos-test"
"kvm"
"benchmark"
];
sshUser = "builder";
sshKey = "/etc/ssh/ssh_host_ed25519_key";
publicHostKey = config.local.keys.gerg-desktop_fingerprint;
} ];
buildMachines = [
{
hostName = "gerg-desktop";
protocol = "ssh-ng";
maxJobs = 32;
systems = [
"x86_64-linux"
"i686-linux"
];
supportedFeatures = [
"big-parallel"
"nixos-test"
"kvm"
"benchmark"
];
sshUser = "builder";
sshKey = "/etc/ssh/ssh_host_ed25519_key";
publicHostKey = config.local.keys.gerg-desktop_fingerprint;
}
];
};
programs.ssh.knownHosts = {
gerg-desktop = {
@ -50,7 +52,7 @@ _:
let
keys = [
config.local.keys.root_moms-laptop
config.local.keys.root_game-laptop
config.local.keys.root_game-desktop
];
in
lib.mkIf config.local.remoteBuild.isBuilder {

View file

@ -7,7 +7,7 @@ _:
gerg_gerg-phone = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDU6BnoHIgMLgZVGuvi03J9l5Z1yP1P5Q8QPyjRHyi77";
gerg_gerg-windows = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpYY2uw0OH1Re+3BkYFlxn0O/D8ryqByJB/ljefooNc";
root_moms-laptop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIq9YTf4jlVCKBKn44m4yJvj94C7pTOyaa4VjZFohNqD";
root_game-laptop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJUKHZasYQUAmRBiqtx1drDxfq18/N4rKydCtPHx461I";
root_game-desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJUKHZasYQUAmRBiqtx1drDxfq18/N4rKydCtPHx461I";
root_gerg-desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIeHsGcmOdIMzV+SNe4WFcA3CPHCNb1aqxThkXtm7G/1";
gerg-desktop_fingerprint = "BQxvBOWsTw1gdNDR0KzrSRmbVhDrJdG05vYXkVmw8yA";
gerg_gerg-desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJWbwkFJmRBgyWyWU+w3ksZ+KuFw9uXJN3PwqqE7Z/i8";

View file

@ -101,8 +101,7 @@ let
if cfg.mirroredBoots != [ ] then
cfg.mirroredBoots
else
[ efi.efiSysMountPoint ]
;
[ efi.efiSysMountPoint ];
in
pkgs.writeShellScript "install-systemd-boot.sh" (
lib.concatMapStrings
@ -111,8 +110,7 @@ let
'')
installDirs
)
+ cfg.extraInstallCommands
;
+ cfg.extraInstallCommands;
in
{
disabledModules = [
@ -324,12 +322,14 @@ in
config = mkIf cfg.enable {
assertions =
[ {
assertion =
(config.boot.kernelPackages.kernel.features or { efiBootStub = true; })
? efiBootStub;
message = "This kernel does not support the EFI boot stub";
} ]
[
{
assertion =
(config.boot.kernelPackages.kernel.features or { efiBootStub = true; })
? efiBootStub;
message = "This kernel does not support the EFI boot stub";
}
]
++ concatMap
(filename: [
{
@ -368,8 +368,7 @@ in
} is invalid: files cannot be placed in the nixos/.extra-files directory";
}
])
(builtins.attrNames cfg.extraFiles)
;
(builtins.attrNames cfg.extraFiles);
boot.loader.grub.enable = mkDefault false;

View file

@ -82,10 +82,12 @@ in
extraConfig = ''
font-size=10
'';
fonts = [ {
name = "OverpassMono";
package = pkgs.nerdfonts.override { fonts = [ "Overpass" ]; };
} ];
fonts = [
{
name = "OverpassMono";
package = pkgs.nerdfonts.override { fonts = [ "Overpass" ]; };
}
];
};
systemd.services = {
"autovt@tty1".enable = false;