summaryrefslogtreecommitdiff
path: root/users/seth
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-23 15:44:04 -0500
committerseth <[email protected]>2023-01-23 16:06:56 -0500
commit79b1d22cc9eb3752ae798d5ca9e6eeefeb86799e (patch)
tree4efdc7145ab3d13632ff956b8a6aa187bcbd568e /users/seth
parent9075aa13405b4d390bfe50cde83938c9a3af0fa8 (diff)
chore: general cleanup + use `with` less
Diffstat (limited to 'users/seth')
-rw-r--r--users/seth/options.nix9
-rw-r--r--users/seth/programs/mangohud/config/MangoHud.conf (renamed from users/seth/programs/mangohud/MangoHud/MangoHud.conf)0
-rw-r--r--users/seth/programs/mangohud/default.nix4
-rw-r--r--users/seth/programs/npm.nix2
-rw-r--r--users/seth/programs/vim.nix6
-rw-r--r--users/seth/shell/bash.nix7
-rw-r--r--users/seth/shell/default.nix1
7 files changed, 9 insertions, 20 deletions
diff --git a/users/seth/options.nix b/users/seth/options.nix
index b073e78..f0bf636 100644
--- a/users/seth/options.nix
+++ b/users/seth/options.nix
@@ -2,15 +2,14 @@
config,
lib,
...
-}:
-with lib; {
- options.seth = with types; {
- devel-packages = mkOption {
+}: {
+ options.seth = with lib.types; {
+ devel-packages = lib.mkOption {
type = bool;
default = false;
description = "install development packages for neovim lsp";
};
- gui-stuff = mkOption {
+ gui-stuff = lib.mkOption {
type = bool;
default = false;
description = "install gui-related packages";
diff --git a/users/seth/programs/mangohud/MangoHud/MangoHud.conf b/users/seth/programs/mangohud/config/MangoHud.conf
index 8e02a99..8e02a99 100644
--- a/users/seth/programs/mangohud/MangoHud/MangoHud.conf
+++ b/users/seth/programs/mangohud/config/MangoHud.conf
diff --git a/users/seth/programs/mangohud/default.nix b/users/seth/programs/mangohud/default.nix
index 389256b..24b50f1 100644
--- a/users/seth/programs/mangohud/default.nix
+++ b/users/seth/programs/mangohud/default.nix
@@ -7,8 +7,8 @@
pkgs.mangohud
];
- xdg.configFile."MangoHud" = {
- source = ./MangoHud;
+ xdg.configFile.MangoHud = {
+ source = ./config;
recursive = true;
};
}
diff --git a/users/seth/programs/npm.nix b/users/seth/programs/npm.nix
index 91eef83..07f7037 100644
--- a/users/seth/programs/npm.nix
+++ b/users/seth/programs/npm.nix
@@ -1,5 +1,5 @@
{config, ...}: {
- config.programs.npm = {
+ programs.npm = {
enable = true;
npmrc = ''
prefix=${config.xdg.dataHome}/npm
diff --git a/users/seth/programs/vim.nix b/users/seth/programs/vim.nix
index 31c9225..7bc115a 100644
--- a/users/seth/programs/vim.nix
+++ b/users/seth/programs/vim.nix
@@ -1,8 +1,4 @@
-{
- config,
- nix,
- ...
-}: {
+{config, ...}: {
programs.vim = {
enable = true;
settings = {
diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix
index c66e6a0..18167a4 100644
--- a/users/seth/shell/bash.nix
+++ b/users/seth/shell/bash.nix
@@ -5,13 +5,6 @@
}: {
programs.bash = {
enable = true;
- bashrcExtra = ''
- # drop into fish
- if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z $BASH_EXECUTION_STRING ]]
- then
- exec fish
- fi
- '';
historyFile = "${config.xdg.stateHome}/bash/history";
historyFileSize = 1000;
historySize = 100;
diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix
index 088feec..993835b 100644
--- a/users/seth/shell/default.nix
+++ b/users/seth/shell/default.nix
@@ -20,5 +20,6 @@
home.shellAliases = {
ls = "exa --icons";
+ diff = "diff --color=auto";
};
}