cleanup: laptop back alive!!! so time to actually start configuring
This commit is contained in:
parent
a14eff461b
commit
05d7340746
10 changed files with 131 additions and 368 deletions
22
nixos/boot-pretty.nix
Normal file
22
nixos/boot-pretty.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.boot.initrd.systemd.enable;
|
||||
message = "Plymouth password prompt requires systemd initrd";
|
||||
}
|
||||
];
|
||||
|
||||
boot.loader.timeout = 0; # hold space to enter menu
|
||||
boot.kernelParams = ["quiet"];
|
||||
boot.plymouth.enable = true;
|
||||
|
||||
# High-DPI scaled boot
|
||||
boot.plymouth.extraConfig = ''
|
||||
DeviceScale=2
|
||||
'';
|
||||
}
|
|
@ -17,6 +17,7 @@
|
|||
./impermanence.nix
|
||||
./nix-maintenance.nix
|
||||
# ./hardening.nix
|
||||
./boot-pretty.nix
|
||||
|
||||
./desktop/plasma
|
||||
./tailscale.nix
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
nix.settings = {
|
||||
builders-use-substitutes = true; # unknown, suggested by anyrun
|
||||
substituters = [
|
||||
"https://hyprland.cachix.org"
|
||||
"https://anyrun.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
];
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager.defaultSession = "hyprland";
|
||||
# https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
|
||||
services.blueman.enable = true;
|
||||
}
|
|
@ -8,7 +8,6 @@ let
|
|||
gpuIDs = [
|
||||
"1002:7480" # Graphics
|
||||
"1002:ab30" # Audio
|
||||
"1022:15c0" # Top Right physical USB C port
|
||||
];
|
||||
in {
|
||||
options.vfio.enable = with lib;
|
||||
|
@ -27,11 +26,18 @@ in {
|
|||
|
||||
config = let cfg = config.vfio;
|
||||
in {
|
||||
# TODO: Right now, I need to manually start
|
||||
# the network bridge interface with systemctl start network-addresses-winvm0.service,
|
||||
# and potentially toggle the link state in the vm config
|
||||
# to get this working. would be good to fix it.
|
||||
networking.bridges = {
|
||||
"winvm0" = {
|
||||
interfaces = [ "eth0" ];
|
||||
};
|
||||
};
|
||||
|
||||
# These are needed, since I'm not currently trying to
|
||||
# reserve a static IP for the bridge interface
|
||||
networking.interfaces.eth0.useDHCP = true;
|
||||
networking.interfaces.winvm0.useDHCP = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue