Compare commits

...

4 Commits

Author SHA1 Message Date
Noah Masur
59bd3590a4 turn on fstrim for ssds 2023-03-05 23:07:03 -05:00
Noah Masur
ebacff7250 remove unnecessary trash in darwin 2023-03-05 23:04:28 -05:00
Noah Masur
763f0bbdda enable trash on linux 2023-03-05 23:04:06 -05:00
Noah Masur
18505d4cbb enable steam remote play 2023-03-05 23:03:34 -05:00
5 changed files with 21 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { { config, pkgs, lib, ... }: {
users.users.${config.user}.shell = pkgs.fish; users.users.${config.user}.shell = pkgs.fish;
programs.fish.enable = programs.fish.enable =
@ -11,7 +11,10 @@
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAliases = { ls = "exa"; }; shellAliases = {
ls = "exa";
trash = lib.mkIf pkgs.stdenv.isLinux "${pkgs.trash-cli}/bin/trash-put";
};
functions = { functions = {
commandline-git-commits = { commandline-git-commits = {
description = "Insert commit into commandline"; description = "Insert commit into commandline";
@ -90,6 +93,7 @@
sc = "systemctl"; sc = "systemctl";
scs = "systemctl status"; scs = "systemctl status";
m = "make"; m = "make";
t = "trash";
# Vim (overwritten by Neovim) # Vim (overwritten by Neovim)
v = "vim"; v = "vim";

View File

@ -45,12 +45,6 @@
]; ];
}; };
home-manager.users.${config.user} = {
programs.fish.shellAbbrs.t = "trash";
};
}; };
} }

View File

@ -5,15 +5,20 @@
config = lib.mkIf (config.gaming.steam.enable && pkgs.stdenv.isLinux) { config = lib.mkIf (config.gaming.steam.enable && pkgs.stdenv.isLinux) {
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
unfreePackages = [ "steam" "steam-original" "steamcmd" "steam-run" ]; unfreePackages = [ "steam" "steam-original" "steamcmd" "steam-run" ];
environment.systemPackages = with pkgs; [
steam programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
environment.systemPackages = with pkgs; [
# Enable terminal interaction # Enable terminal interaction
steamPackages.steamcmd steamPackages.steamcmd
steam-tui steam-tui
]; ];
}; };
} }

View File

@ -3,6 +3,7 @@
imports = [ imports = [
./audio.nix ./audio.nix
./boot.nix ./boot.nix
./disk.nix
./keyboard.nix ./keyboard.nix
./monitors.nix ./monitors.nix
./mouse.nix ./mouse.nix

View File

@ -0,0 +1,7 @@
{ config, pkgs, lib, ... }: {
# Enable fstrim, which tracks free space on SSDs for garbage collection
# More info: https://www.reddit.com/r/NixOS/comments/rbzhb1/if_you_have_a_ssd_dont_forget_to_enable_fstrim/
services.fstrim.enable = true;
}