updated moms-laptop

This commit is contained in:
Gerg-L 2023-03-05 00:23:27 -05:00
parent afb948363e
commit 3a9755739b
3 changed files with 2 additions and 4 deletions

View file

@ -0,0 +1,81 @@
inputs: {
pkgs,
settings,
...
}: {
imports = [
(import ./printing.nix inputs)
];
localModules = {
DM = {
lightdm.enable = true;
autoLogin = true;
};
DE.xfce.enable = true;
theming = {
enable = true;
kmscon.enable = true;
};
};
system.stateVersion = "23.05";
environment.systemPackages = [
pkgs.vlc
pkgs.nomacs
pkgs.gnome.gnome-calculator
pkgs.xfce.xfce4-whiskermenu-plugin
pkgs.rsync
pkgs.pavucontrol #gui volume control
pkgs.librewolf #best browser
];
services.xserver.videoDrivers = ["intel"];
networking = {
hostName = "mom-laptop";
networkmanager.enable = true;
};
boot.kernelPackages = pkgs.linuxPackages_latest;
users = {
mutableUsers = false;
users = {
"${settings.username}" = {
useDefaultShell = true;
uid = 1000;
isNormalUser = true;
extraGroups = ["networkmanager" "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"
];
initialHashedPassword = "$6$hgiDFHEMVEA39Snj$Huxf2a/yd/gSO2ZwntxI5Z65c1kCf35lvbkA61knP5i5NLPuIy4cybBBv9lnd24LVR9sfi9Tss96VQdsGCQhq1";
};
};
};
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;
};
};
}

View file

@ -0,0 +1,24 @@
_: {
pkgs,
settings,
...
}: {
nixpkgs.allowedUnfree = ["hplip"];
environment.systemPackages = [
pkgs.gimp
(pkgs.xsane.override {gimpSupport = true;})
pkgs.libreoffice
];
users.users."${settings.username}".extraGroups = ["scanner" "lp" "cups"];
hardware.sane = {
enable = true;
extraBackends = [pkgs.hplipWithPlugin];
};
systemd.tmpfiles.rules = ["L /home/jo/.config/GIMP/2.10/plug-ins/xsane - - - - /run/current-system/sw/bin/xsane"];
services = {
printing = {
enable = true;
drivers = [pkgs.hplipWithPlugin];
};
};
}