Add subdirectories for macbook and tongfang with config (#4)

This commit is contained in:
Bart van der Braak 2024-10-16 22:27:09 +02:00 committed by GitHub
parent b743abcde5
commit 10a876fcc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 117 additions and 0 deletions

3
tongfang/.bash_aliases Normal file
View file

@ -0,0 +1,3 @@
alias ll='ls -la'
alias lt='ls --human-readable --size -1 -S --classify'
alias nrebuild="nixos-rebuild --flake ~/ --override-input nixpkgs ~/nixpkgs --use-remote-sudo switch"

3
tongfang/.bashrc Normal file
View file

@ -0,0 +1,3 @@
if [ -e $HOME/.bash_aliases ]; then
source $HOME/.bash_aliases
fi

24
tongfang/.gitconfig Normal file
View file

@ -0,0 +1,24 @@
[user]
name = Bart van der Braak
email = bart@vanderbraak.nl
[alias]
p = push
st = status
ll = log --oneline
last = log -1 HEAD --stat
cm = commit -m
d = diff
gl = config --global -l
aa = add .
pushfwl = push --force-with-lease
[core]
excludesfile = $HOME/.gitignore_global
[init]
defaultBranch = main
[push]
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

View file

@ -0,0 +1,75 @@
{ config, pkgs, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "tongfang";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "nl_NL.UTF-8";
LC_IDENTIFICATION = "nl_NL.UTF-8";
LC_MEASUREMENT = "nl_NL.UTF-8";
LC_MONETARY = "nl_NL.UTF-8";
LC_NAME = "nl_NL.UTF-8";
LC_NUMERIC = "nl_NL.UTF-8";
LC_PAPER = "nl_NL.UTF-8";
LC_TELEPHONE = "nl_NL.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver.enable = false;
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = false;
hardware.bluetooth.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
services.xserver.libinput.enable = true;
users.users.bart = {
isNormalUser = true;
description = "Bart van der Braak";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
codium
git
thunderbird
fastfetch
];
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
inputs.zen-browser.packages."${system}".specific
nvim
wget
];
system.stateVersion = "24.05"; # Did you read the comment?
}

3
tongfang/flake.nix Normal file
View file

@ -0,0 +1,3 @@
inputs = {
zen-browser.url = "github:MarceColl/zen-browser-flake";
}

9
tongfang/symlink.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if cp --version &>/dev/null; then
dotfiles_home="${1:-$(dirname "$(realpath "$0")")}"
cp -rsf "$dotfiles_home"/. $HOME
echo "dotfiles symlinks recursively copied from $dotfiles_home to $HOME."
else
echo "GNU cp required."
fi