Skip to content

Instantly share code, notes, and snippets.

View ivylikethevine's full-sized avatar

ivy duggan ivylikethevine

View GitHub Profile
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.blacklistedKernelModules = lib.mkDefault [ ];
boot.kernelPackages = pkgs.linuxPackages_latest;
@ivylikethevine
ivylikethevine / setup_server_v1.sh
Last active October 11, 2023 23:09
Laptop Homelab in 5 Commands
# This configuration is designed to run on a laptop with Ubuntu 22.04LTS server edition.
# Laptop Server Config
sudo echo $'HandleLidSwitch=ignore\nHandleLidSwitchDocked=ignore' | sudo tee -a /etc/systemd/logind.conf &&
sudo echo "GRUB_CMDLINE_LINUX_DEFAULT=\"consoleblank=60\"" | sudo tee -a /etc/default/grub &&
sudo update-grub
# Install Basics
sudo echo "\$nrconf{restart} = 'l'" | sudo tee -a /etc/needrestart/needrestart.conf &&
sudo apt update -y &&
#!/bin/bash
# Create Workspace Directory to Work From
cd ~
mkdir workspace
cd workspace
# Update and Upgrade then install basic utilities
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y rar unrar zip git htop software-properties-common apt-transport-https wget xclip net-tools curl
#!/bin/bash
# Create Workspace Directory to Work From
cd ~
mkdir workspace
cd workspace
# Update and Upgrade then install basic utilities
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y rar unrar zip git htop software-properties-common apt-transport-https wget xclip net-tools curl
@ivylikethevine
ivylikethevine / .gitignore
Created September 16, 2017 20:49 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->