created config for my mom's laptop

This commit is contained in:
ISnortPennies 2023-02-05 18:50:32 -05:00
parent 0cec0448ce
commit 5970506437
8 changed files with 161 additions and 1 deletions

View file

@ -6,3 +6,6 @@ it currently has 2 hosts:
"game-laptop" a HP Pavilion Laptop [15-ec2121nr](https://support.hp.com/us-en/document/c07918617#AbT0)
which I've been testing linux game compatability on
"moms-laptop" a TOSHIBA Satellite [L855-S5309](https://fo-stage-03.icecat.biz/us/p/toshiba/pskfuu-008049/satellite-notebooks-l855-s5309-18316794.html)
very old and very slow -basically a bootloader for firefox

View file

@ -79,6 +79,22 @@
./nix.nix
];
};
moms-laptop = lib.nixosSystem {
inherit system pkgs;
specialArgs = {
inherit inputs;
settings = {
username = "jo";
version = "23.05";
hostname = "moms-laptop";
};
};
modules = [
./common.nix
./systems/mom.nix
./nix.nix
];
};
};
};
}

View file

@ -50,6 +50,7 @@
user = settings.username;
};
gdm.enable = true;
defaultSession = "gnome";
};
};
}

View file

@ -21,7 +21,6 @@
pavucontrol #gui volume control
pcmanfm #file manager
#big gui apps
webcord # talk to people (gross)
librewolf #best browser
];
};

60
modules/xfce.nix Normal file
View file

@ -0,0 +1,60 @@
{
pkgs,
settings,
...
}: {
services.xserver = {
enable = true;
exportConfiguration = true; #make config debuggable
layout = "us";
libinput.enable = true;
xautolock.enable = false;
desktopManager.xterm.enable = false;
excludePackages = [pkgs.xterm];
desktopManager.gnome.enable = true;
displayManager = {
autoLogin = {
enable = true;
user = settings.username;
};
defaultSession = "xfce";
lightdm = {
enable = true;
background = ../images/recursion.png;
greeters.mini = {
enable = true;
user = settings.username;
extraConfig = ''
[greeter]
show-password-label = false
password-label-text =
invalid-password-text =
show-input-cursor = false
password-alignment = center
password-input-width = 19
show-image-on-all-monitors = true
[greeter-theme]
font = "OverpassMono Nerd Font"
font-size = 1.1em
text-color = "#7AA2F7"
error-color = "#DB4B4B"
background-color = "#000000"
window-color = "#000000"
border-color = "#000000"
password-character = -1
password-color = "#7AA2F7"
password-background-color = "#24283B"
password-border-color = "#000000"
password-border-radius = 0.341125em
'';
};
};
};
desktopManager.xfce = {
enable = true;
enableScreensaver = true;
};
};
}

View file

@ -27,6 +27,7 @@
../modules + ("/" + m + ".nix")
);
environment.systemPackages = with pkgs; [
webcord # talk to people (gross)
bitwarden #store stuff
qbittorrent #steal stuff
networkmanagerapplet #gui connection control

View file

@ -21,6 +21,9 @@
m:
../modules + ("/" + m + ".nix")
);
environment.systemPackages = with pkgs; [
webcord
];
networking.hostName = settings.hostname;
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.amd.updateMicrocode = true;

77
systems/mom.nix Normal file
View file

@ -0,0 +1,77 @@
{
pkgs,
settings,
lib,
...
}: {
imports = let
modules = [
"boot"
"fonts"
"git"
"packages"
"xfce"
"shells"
"theme"
];
in
lib.lists.forEach modules (
m:
../modules + ("/" + m + ".nix")
);
environment.systemPackages = with pkgs; [
gimp
(pkgs.xsane.override {gimpSupport = true;})
vlc
libreoffice
nomacs
# foxitreader
gnome.gnome-calculator
xfce.xfce4-whiskermenu-plugin
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";
};
"/boot" = {
device = "/dev/disk/by-uuid/5BCE-813C";
fsType = "vfat";
};
};
}