This commit is contained in:
Noah Masur 2022-01-22 11:01:52 -05:00
parent ecc00acc05
commit 121e1e9c37
3 changed files with 81 additions and 98 deletions

View File

@ -5,8 +5,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports = [ # Include the results of the hardware scan.
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
]; ];
@ -47,16 +46,12 @@
autoRepeatDelay = 250; autoRepeatDelay = 250;
autoRepeatInterval = 40; autoRepeatInterval = 40;
/* desktopManager = { */ # desktopManager = {
/* xterm.enable = false; */ # xterm.enable = false;
/* xfce.enable = true; */ # xfce.enable = true;
/* }; */ # };
/* displayManager.defaultSession = "xfce"; */ # displayManager.defaultSession = "xfce";
windowManager = { windowManager = { awesome = { enable = true; }; };
awesome = {
enable = true;
};
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true; libinput.enable = true;
@ -106,12 +101,8 @@
--output DVI-1 --off \ --output DVI-1 --off \
''; '';
# Install fonts # Install fonts
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [ victor-mono nerdfonts ];
victor-mono
nerdfonts
];
fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ]; fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ];
# Gaming # Gaming
@ -184,9 +175,7 @@
longitude = 74.0; longitude = 74.0;
}; };
services.redshift = { services.redshift = { enable = true; };
enable = true;
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View File

@ -2,19 +2,26 @@
let let
# Nothing font = "Victor Mono";
in in {
{
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
# Applications
firefox firefox
unzip
neovim neovim
gcc # for tree-sitter
alacritty alacritty
_1password-gui
discord
# neomutt
himalaya # Email
mpv # Video viewer
sxiv # Image viewer
# Utilities
unzip
gcc # for tree-sitter
tmux tmux
rsync rsync
ripgrep ripgrep
@ -24,13 +31,9 @@ in
sd sd
jq jq
tealdeer tealdeer
_1password-gui
discord
gh gh
/* neomutt */ pass
himalaya # Email nixfmt
mpv # Video viewer
sxiv # Image viewer
]; ];
programs.alacritty = { programs.alacritty = {
@ -49,22 +52,13 @@ in
scrolling.history = 10000; scrolling.history = 10000;
font = { font = {
size = 14.0; size = 14.0;
normal = { normal = { family = "${font}"; };
family = "Victor Mono";
}; };
}; key_bindings = [{
key_bindings = [
/* { */
/* key = "F"; */
/* mods = "Super"; */
/* action = "ToggleFullscreen"; */
/* } */
{
key = "L"; key = "L";
mods = "Control|Shift"; mods = "Control|Shift";
chars = "\\x1F"; chars = "\\x1F";
} }];
];
colors = { colors = {
primary = { primary = {
background = "0x1d2021"; background = "0x1d2021";
@ -150,7 +144,8 @@ in
# GitHub # GitHub
ghr = "gh repo view -w"; ghr = "gh repo view -w";
gha = "gh run list | head -1 | awk \'{ print $(NF-2) }\' | xargs gh run view"; gha =
"gh run list | head -1 | awk '{ print $(NF-2) }' | xargs gh run view";
grw = "gh run watch"; grw = "gh run watch";
grf = "gh run view --log-failed"; grf = "gh run view --log-failed";
grl = "gh run view --log"; grl = "gh run view --log";
@ -177,7 +172,8 @@ in
moon = "curl wttr.in/Moon"; moon = "curl wttr.in/Moon";
# Cheat Sheets # Cheat Sheets
ssl = "openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr"; ssl =
"openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr";
fingerprint = "ssh-keyscan myhost.com | ssh-keygen -lf -"; fingerprint = "ssh-keyscan myhost.com | ssh-keygen -lf -";
publickey = "ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub"; publickey = "ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub";
forloop = "for i in (seq 1 100)"; forloop = "for i in (seq 1 100)";
@ -212,8 +208,10 @@ in
}; };
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim";
fish_greeting = ""; fish_greeting = "";
EDITOR = "nvim";
NIXOS_CONFIG = builtins.getEnv "PWD";
DOTS = "${builtins.getEnv "PWD"}/..";
}; };
programs.starship = { programs.starship = {
@ -244,12 +242,8 @@ in
userName = "Noah Masur"; userName = "Noah Masur";
userEmail = "7386960+nmasur@users.noreply.github.com"; userEmail = "7386960+nmasur@users.noreply.github.com";
extraConfig = { extraConfig = {
core = { core = { editor = "nvim"; };
editor = "nvim"; pager = { branch = "false"; };
};
pager = {
branch = "false";
};
}; };
}; };
@ -260,23 +254,23 @@ in
}; };
# Email # Email
/* programs.himalaya = { */ # programs.himalaya = {
/* enable = true; */ # enable = true;
/* settings = { */ # settings = {
/* name = "Noah Masur"; */ # name = "Noah Masur";
/* downloads-dir = "~/Downloads"; */ # downloads-dir = "~/Downloads";
/* home = { */ # home = {
/* default = true; */ # default = true;
/* email = "censored"; */ # email = "censored";
/* imap-host = "censored"; */ # imap-host = "censored";
/* imap-port = 993; */ # imap-port = 993;
/* imap-login = "censored"; */ # imap-login = "censored";
/* imap-passwd-cmd = "cat ~/.config/himalaya/passwd"; */ # imap-passwd-cmd = "cat ~/.config/himalaya/passwd";
/* smtp-host = "censored"; */ # smtp-host = "censored";
/* smtp-port = 587; */ # smtp-port = 587;
/* smtp-login = "censored"; */ # smtp-login = "censored";
/* smtp-passwd-cmd = "cat ~/.config/himalaya/passwd"; */ # smtp-passwd-cmd = "cat ~/.config/himalaya/passwd";
/* }; */ # };
/* }; */ # };
/* }; */ # };
} }

View File

@ -165,7 +165,7 @@ require("packer").startup(function(use)
args = { "run", "black", "--quiet", "--fast", "-" }, args = { "run", "black", "--quiet", "--fast", "-" },
}), }),
require("null-ls").builtins.formatting.fish_indent, require("null-ls").builtins.formatting.fish_indent,
-- require("null-ls").builtins.formatting.nixfmt, require("null-ls").builtins.formatting.nixfmt,
require("null-ls").builtins.formatting.rustfmt, require("null-ls").builtins.formatting.rustfmt,
require("null-ls").builtins.diagnostics.shellcheck, require("null-ls").builtins.diagnostics.shellcheck,
require("null-ls").builtins.formatting.shfmt.with({ require("null-ls").builtins.formatting.shfmt.with({
@ -683,7 +683,7 @@ key("", "<Leader>t#", ":Tabularize /#<CR>")
key("", "<Leader>tl", ":Tabularize /---<CR>") key("", "<Leader>tl", ":Tabularize /---<CR>")
-- Vimrc editing -- Vimrc editing
key("n", "<Leader>fv", ":edit $MYVIMRC<CR>") key("n", "<Leader>fv", ":edit $DOTS/nvim.configlink/init.lua<CR>")
key("n", "<Leader>rr", ":luafile $MYVIMRC<CR>") key("n", "<Leader>rr", ":luafile $MYVIMRC<CR>")
key("n", "<Leader>rp", ":luafile $MYVIMRC<CR>:PackerInstall<CR>:") key("n", "<Leader>rp", ":luafile $MYVIMRC<CR>:PackerInstall<CR>:")
key("n", "<Leader>rc", ":luafile $MYVIMRC<CR>:PackerCompile<CR>") key("n", "<Leader>rc", ":luafile $MYVIMRC<CR>:PackerCompile<CR>")