mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
88 lines
2 KiB
Nix
88 lines
2 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 = builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
neovim
|
|
heroic
|
|
legendary-gl
|
|
prismlauncher
|
|
pcmanfm #file manager
|
|
librewolf #best browser
|
|
obs-studio
|
|
vlc
|
|
webcord
|
|
;
|
|
};
|
|
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";
|
|
}
|