nixos/systems/mom.nix
Gerg-L dc2db4a9bc realized I was inheriting nipkgs in my nixosSystems
added ways to use different branches of nixpkgs
made unfree packages have to specified
switched to nix master branch
moved sxhkd from a seperate flake
switched spotify and maim versions because both are broken on nixos-unstable right now
moved afk-cmds from local to remote
added flake-utils for easier devShell decleration
switched my mom's laptop to stable branch
2023-02-15 19:39:26 -05:00

86 lines
1.9 KiB
Nix

{
pkgs,
settings,
lib,
...
}: {
imports = let
files = [
"boot"
"fonts"
"git"
"packages"
"xfce"
"shells"
"theme"
];
in
lib.lists.forEach files (
f:
../imports + ("/" + f + ".nix")
);
system.stateVersion = "22.11";
environment.systemPackages = [
pkgs.gimp
(pkgs.xsane.override {gimpSupport = true;})
pkgs.vlc
pkgs.libreoffice
pkgs.nomacs
pkgs.gnome.gnome-calculator
pkgs.xfce.xfce4-whiskermenu-plugin
pkgs.rsync
];
services.xserver.videoDrivers = ["intel"];
networking.hostName = settings.hostname;
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.intel.updateMicrocode = true;
#printing stuff
hardware.sane = {
enable = true;
extraBackends = [pkgs.hplipWithPlugin];
#run this to setup gimp plugin
#ln -s /run/current-system/sw/bin/xsane ~/.config/GIMP/2.10/plug-ins/xsane
};
services = {
printing = {
enable = true;
drivers = [pkgs.hplipWithPlugin];
};
};
users = {
defaultUserShell = pkgs.zsh;
users."${settings.username}" = {
uid = 1000;
isNormalUser = true;
extraGroups = ["audio" "networkmanager" "scanner" "lp" "cups"];
};
};
services.xserver.displayManager.autoLogin = {
enable = true;
user = settings.username;
};
boot = {
initrd.availableKernelModules = ["xhci-pci" "ehci-pci" "ahci" "usbhid" "sd_mod" "sr_mod" "rtsx_usb_sdmmc"];
kernelModules = ["kvm-intel"];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/518885c4-2d43-46a5-bf17-c734b7b85c2e";
fsType = "ext4";
label = "nixos";
noCheck = false;
mountPoint = "/";
neededForBoot = true;
};
"/boot" = {
device = "/dev/disk/by-uuid/5BCE-813C";
fsType = "vfat";
label = "BOOT";
noCheck = false;
mountPoint = "/boot";
neededForBoot = true;
};
};
}