mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 17:03:56 -05:00
host<name>/default.nix -> host/<name>/main.nix
add _file in all modules
This commit is contained in:
parent
bcea731103
commit
14726d5c6d
33 changed files with 36 additions and 0 deletions
91
hosts/game-laptop/main.nix
Normal file
91
hosts/game-laptop/main.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
_: {
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
local = {
|
||||
remoteBuild.enable = true;
|
||||
DE.gnome.enable = true;
|
||||
DM = {
|
||||
lightdm.enable = true;
|
||||
autoLogin = true;
|
||||
loginUser = "games";
|
||||
};
|
||||
theming = {
|
||||
enable = true;
|
||||
kmscon.enable = true;
|
||||
};
|
||||
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 = lib.getBin pkgs.openjdk17;
|
||||
"jdks/8".source = lib.getBin pkgs.openjdk8;
|
||||
};
|
||||
};
|
||||
networking = {
|
||||
hostName = "game-laptop";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
#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 = [
|
||||
config.local.keys.gerg_gerg-phone
|
||||
config.local.keys.gerg_gerg-windows
|
||||
config.local.keys.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";
|
||||
_file = ./main.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue