This commit is contained in:
Trevor Vallender 2023-02-23 12:26:53 +00:00
parent 8fd62e3107
commit 3950978337
5 changed files with 24 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" '' nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1 export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
@ -19,7 +19,7 @@ in
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "thompson"; networking.hostName = "ritchie";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
@ -35,10 +35,10 @@ in
users.users.tsv = { users.users.tsv = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
"docker" "docker"
]; ];
initialPassword = "password"; initialPassword = "password";
}; };
@ -61,11 +61,10 @@ in
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim
wget wget
tmux tmux
git git
pciutils pciutils
nvidia-offload nvidia-offload
]; ];

View File

@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "thunderbolt" "vmd" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];

View File

@ -6,8 +6,6 @@
email = trevor@tsvallender.co.uk email = trevor@tsvallender.co.uk
[includeIf "gitdir:~/foxsoft/"] [includeIf "gitdir:~/foxsoft/"]
path = ~/.config/git/config_foxsoft path = ~/.config/git/config_foxsoft
[includeIf "gitdir:~/rightspend/"]
path = ~/.config/git/config_rightspend
[core] [core]
autocrlf = input autocrlf = input
safecrlf = true safecrlf = true

View File

@ -29,20 +29,20 @@
_1password-gui _1password-gui
anki anki
awsebcli awsebcli
bitwarden
cachix cachix
calibre calibre
delta # Nice diffing pager for Git delta # Nice diffing pager for Git
docker-compose docker-compose
firefox firefox
fzf fzf
gcc
git-crypt git-crypt
gitflow gitflow
gnupg gnupg
gimp gimp
heroku heroku
htop htop
kmail
korganizer
libreoffice libreoffice
nerdfonts nerdfonts
ripgrep ripgrep
@ -52,19 +52,23 @@
slack slack
spotify spotify
thunderbird thunderbird
vimPlugins.vim-plug vimPlugins.packer-nvim
wine wine
winetricks winetricks
zoom-us zoom-us
]; ];
programs.neovim = {
enable = true;
plugins = [
pkgs.vimPlugins.packer-nvim
];
};
home.file.".bash_profile".source = ./bash_profile; home.file.".bash_profile".source = ./bash_profile;
home.file.".tmux.conf".source = ./tmux.conf; home.file.".tmux.conf".source = ./tmux.conf;
xdg.configFile."git/config".source = ./git/config; xdg.configFile."git/config".source = ./git/config;
xdg.configFile."git/foxsoft_config".source = ./git/config_foxsoft; xdg.configFile."git/config_foxsoft".source = ./git/config_foxsoft;
xdg.configFile."nvim/init.vim".source = ./nvim/init.vim;
home.file.".ssh/config".source = ./ssh/config; home.file.".ssh/config".source = ./ssh/config;
home.file.".LESS_TERMCAP".source = ./LESS_TERMCAP; home.file.".LESS_TERMCAP".source = ./LESS_TERMCAP;
services.syncthing.enable = true; services.syncthing.enable = true;

View File

@ -4,8 +4,8 @@ Host kernighan
User tsv User tsv
IdentitiesOnly yes IdentitiesOnly yes
Host git.tsvallender.co.uk Host git.tsvallender.co.uk
HostName git.tsvallender.co.uk HostName git.tsvallender.co.uk
IdentityFile /home/tsv/.ssh/personal IdentityFile /home/tsv/.ssh/personal
Port 222 Port 222
User tsv User tsv
@ -20,3 +20,9 @@ Host git.foxsoft.co.uk
HostName git.foxsoft.co.uk HostName git.foxsoft.co.uk
IdentityFile /home/tsv/.ssh/foxsoft IdentityFile /home/tsv/.ssh/foxsoft
IdentitiesOnly yes IdentitiesOnly yes
Host obs
HostName obs.foxsoft.net
IdentityFile /home/tsv/.ssh/foxsoft
IdentitiesOnly yes