feat(yume): initial configuration
This commit is contained in:
parent
4d80b8ae0d
commit
cfe1f0da42
1
global/auth/pub/yume.pub
Normal file
1
global/auth/pub/yume.pub
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdzq2g13LEyxTZnA0HQ5hMEp4XNh0TOB/KY1bRwjsaq koishi@yume
|
40
spec/yume/default.nix
Normal file
40
spec/yume/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, modulesPath
|
||||||
|
, ... }: {
|
||||||
|
global = {
|
||||||
|
id = "d40d05288c1544af94e534eab24768fc";
|
||||||
|
fs.esp.uuid = "6CEB-765A";
|
||||||
|
fs.type = "xfs";
|
||||||
|
fs.store = "b80e8bbe-d1ff-4d2e-ae25-9e9048d67355";
|
||||||
|
gui.enable = true;
|
||||||
|
gui.type = "nvidia";
|
||||||
|
};
|
||||||
|
|
||||||
|
home = {
|
||||||
|
gyroflow.enable = true;
|
||||||
|
libreoffice.enable = true;
|
||||||
|
minecraft.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = lib.pipe ./. [
|
||||||
|
builtins.readDir
|
||||||
|
(lib.filterAttrs (n: ty: ty == "regular" && n != "default.nix"))
|
||||||
|
(lib.mapAttrsToList (n: _: ./${n}))
|
||||||
|
] ++ [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
|
|
||||||
|
# work around low cage resolution on pure nvidia
|
||||||
|
services.greetd.settings.default_session.command = let
|
||||||
|
cfg = config.programs.regreet;
|
||||||
|
in "${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" ''
|
||||||
|
${lib.getExe pkgs.wlr-randr} --output DP-2 --mode 1920x1080@60.000000Hz
|
||||||
|
${lib.getExe cfg.package}
|
||||||
|
''}";
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "usbhid" "sr_mod" "virtio_blk" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
}
|
Loading…
Reference in a new issue