mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
made dummy option for deadnix to shutup about disko update flake.lock stopped using neovim overlay
95 lines
2.3 KiB
Nix
95 lines
2.3 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
localModules = {
|
|
remoteBuild.enable = true;
|
|
DE.gnome.enable = true;
|
|
DM = {
|
|
lightdm.enable = true;
|
|
autoLogin = true;
|
|
loginUser = "games";
|
|
};
|
|
theming = {
|
|
enable = true;
|
|
kmscon.enable = true;
|
|
};
|
|
};
|
|
nixpkgs.allowedUnfree = [
|
|
"nvidia-x11"
|
|
"nvidia-persistenced"
|
|
"steam"
|
|
"steam-original"
|
|
];
|
|
environment = {
|
|
systemPackages = [
|
|
pkgs.neovim
|
|
pkgs.heroic
|
|
pkgs.legendary-gl
|
|
pkgs.prismlauncher
|
|
pkgs.pcmanfm #file manager
|
|
pkgs.librewolf #best browser
|
|
pkgs.obs-studio
|
|
pkgs.vlc
|
|
# wrap webcord to remove state file https://github.com/SpacingBat3/WebCord/issues/360
|
|
(pkgs.symlinkJoin {
|
|
name = "webcord-wrapper";
|
|
nativeBuildInputs = [pkgs.makeWrapper];
|
|
paths = [
|
|
pkgs.webcord
|
|
];
|
|
postBuild = ''
|
|
wrapProgram "$out/bin/webcord" --run 'rm -f $HOME/.config/WebCord/windowState.json'
|
|
'';
|
|
})
|
|
];
|
|
etc = {
|
|
"jdks/17".source = pkgs.openjdk17 + /bin;
|
|
"jdks/8".source = pkgs.openjdk8 + /bin;
|
|
};
|
|
};
|
|
networking = {
|
|
hostName = "game-laptop";
|
|
networkmanager.enable = true;
|
|
};
|
|
#user managment
|
|
sops.secrets.root.neededForUsers = true;
|
|
users = {
|
|
mutableUsers = false;
|
|
users = {
|
|
games = {
|
|
useDefaultShell = true;
|
|
uid = 1000;
|
|
isNormalUser = true;
|
|
extraGroups = ["audio"];
|
|
initialHashedPassword = "";
|
|
};
|
|
"root" = {
|
|
uid = 0;
|
|
home = "/root";
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAuO/3IF+AjH8QjW4DAUV7mjlp2Mryd+1UnpAUofS2yA gerg@gerg-phone"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpYY2uw0OH1Re+3BkYFlxn0O/D8ryqByJB/ljefooNc gerg@gerg-windows"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJWbwkFJmRBgyWyWU+w3ksZ+KuFw9uXJN3PwqqE7Z/i8 gerg@gerg-desktop"
|
|
];
|
|
passwordFile = config.sops.secrets.root.path;
|
|
};
|
|
};
|
|
};
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
boot = {
|
|
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci"];
|
|
kernelModules = ["kvm-amd"];
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 16 * 1024;
|
|
}
|
|
];
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|