mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
84 lines
1.9 KiB
Nix
84 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
nvim-flake,
|
|
}:
|
|
{
|
|
local = {
|
|
remoteBuild.enable = true;
|
|
DM = {
|
|
lightdm.enable = true;
|
|
autoLogin = true;
|
|
loginUser = "media";
|
|
};
|
|
DE.xfce.enable = true;
|
|
theming = {
|
|
enable = true;
|
|
kmscon.enable = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
vlc
|
|
pavucontrol # gui volume control
|
|
chromium
|
|
;
|
|
inherit (nvim-flake.packages) neovim;
|
|
};
|
|
services.xserver.videoDrivers = [ "intel" ];
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
sops.secrets.root.neededForUsers = true;
|
|
|
|
users = {
|
|
mutableUsers = false;
|
|
users = {
|
|
media = {
|
|
useDefaultShell = true;
|
|
uid = 1000;
|
|
isNormalUser = true;
|
|
extraGroups = [ "networkmanager" ];
|
|
initialHashedPassword = "";
|
|
};
|
|
root = {
|
|
openssh.authorizedKeys.keys = builtins.attrValues {
|
|
inherit (config.local.keys) gerg_gerg-phone gerg_gerg-windows gerg_gerg-desktop;
|
|
};
|
|
hashedPasswordFile = config.sops.secrets.root.path;
|
|
};
|
|
};
|
|
};
|
|
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
|
boot = {
|
|
initrd.availableKernelModules = [
|
|
"xhci-pci"
|
|
"ehci-pci"
|
|
"ahci"
|
|
"usbhid"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
"rtsx_usb_sdmmc"
|
|
];
|
|
kernelModules = [ "kvm-intel" ];
|
|
};
|
|
systemd.user.tmpfiles.users.media.rules = [
|
|
"L+ %h/Desktop/chromium-browser.desktop - - - - ${pkgs.chromium}/share/applications/chromium-browser.desktop"
|
|
"L+ %h/Desktop/vlc.desktop - - - - ${pkgs.vlc}/share/applications/vlc.desktop"
|
|
];
|
|
|
|
system.stateVersion = "24.11";
|
|
networking.hostName = "media-laptop";
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 8 * 1024;
|
|
}
|
|
];
|
|
}
|