Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

FIX: lots of small stuff, autoformat

+19 -18
+2 -1
fish/config.fish
··· 29 29 alias r "cd ~/repos" 30 30 end 31 31 32 + set -Ux SSH_AUTH_SOCK /var/run/user/(id -u)/ssh-agent 32 33 # PATH stuff 33 34 34 - # Run ssh-agent 35 35 if test -z "(pgrep ssh-agent)" 36 36 eval (ssh-agent -c) > /dev/null # no output 37 37 set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK ··· 39 39 set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK 40 40 end 41 41 42 + # Run ssh-agent 42 43 if type -q "direnv" 43 44 direnv hook fish | source 44 45 set -g direnv_fish_mode eval_on_arrow
+7 -2
noah-home.nix
··· 3 3 unstable = import <nixos-unstable> { 4 4 config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ ]; 5 5 }; 6 - in { 6 + in 7 + { 7 8 home.packages = with pkgs; [ 8 9 # main tool 9 10 direnv ··· 27 28 metastore 28 29 isync 29 30 pass 31 + tmux 30 32 31 33 # Dev tools 32 34 gcc ··· 104 106 ]; 105 107 106 108 nix = { 107 - settings.experimental-features = ["nix-command" "flakes"]; 109 + settings.experimental-features = [ "nix-command" "flakes" ]; 108 110 }; 109 111 110 112 programs.fish = { ··· 119 121 withPython3 = true; 120 122 extraPackages = with pkgs; [ unstable.fzf unstable.ripgrep luarocks unstable.tree-sitter ]; 121 123 }; 124 + programs.helix.enable = true; 122 125 programs.git = { 123 126 enable = true; 124 127 userName = "Noah Pederson"; ··· 214 217 source = ./scripts; 215 218 recursive = true; 216 219 }; 220 + 221 + manual.manpages.enable = true; 217 222 218 223 home.stateVersion = "23.11"; 219 224
+2 -3
nvim/init.lua
··· 7 7 -- Config for Nord, which I usually use 8 8 -- vim.g.nord_italic = false 9 9 -- vim.g.nord_bold = false 10 - vim.opt.background = "light" 11 - vim.cmd [[colorscheme acme]] 12 - --vim.opt.background = "dark" 10 + vim.opt.background = "dark" 11 + vim.cmd [[colorscheme everforest]] 13 12 14 13 -- Formatting and vim config 15 14 vim.opt.expandtab = true
+1 -1
nvim/lua/plugins.lua
··· 15 15 if lazy_bootstrap then print("Bootstrapped lazy.nvim") end 16 16 17 17 require("lazy").setup({ 18 - install = { colorscheme = { "acme" } }, 18 + install = { colorscheme = { "everforest" } }, 19 19 checker = { enabled = false }, 20 20 spec = { 21 21 -- Color themes
+4 -3
users.nix
··· 2 2 let 3 3 home-manager = builtins.fetchTarball 4 4 "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz"; 5 - in { 5 + in 6 + { 6 7 7 8 imports = [ 8 9 # Import home-manager first, it's required for other modules ··· 18 19 users.users.noah = { 19 20 isNormalUser = true; 20 21 shell = pkgs.fish; 21 - extraGroups = [ "wheel" "video" "nas"]; # Enable ‘sudo’ for the user. 22 + extraGroups = [ "wheel" "video" "nas" ]; # Enable ‘sudo’ for the user. 22 23 hashedPasswordFile = "/etc/nixos/noah-password"; 23 24 openssh.authorizedKeys.keys = 24 25 lib.strings.splitString "\n" (builtins.readFile (builtins.fetchurl { ··· 26 27 name = "chiefnoah.keys"; 27 28 # Update this with: 28 29 # `curl https://meta.sr.ht/~chiefnoah.keys | sha256sum` 29 - sha256 = "1587d75012cdd77c2dc006b3162e816213c5bac9c8c4addf81d66c156393b1fc"; 30 + sha256 = "19x8lim69kd06spqxjs7ril68izrqzkgqdvn45z2vkqgkw0jjzxh"; 30 31 })); 31 32 }; 32 33 users.groups.nas.gid = 1001;
+3 -8
vis/visrc.lua
··· 1 - require('vis') 1 + local vis = require('vis') 2 2 3 3 local plug = require('plugins/vis-plug') 4 4 ··· 12 12 13 13 plug.init(plugins, true) 14 14 15 - 16 - 17 - 18 - 19 - 20 15 vis.events.subscribe(vis.events.INIT, function() 21 16 local format = require('plugins/vis-format') 22 17 vis:map(vis.modes.NORMAL, '<C-p>', ':fzf<Enter>') ··· 35 30 end) 36 31 37 32 38 - vis.events.subscribe(vis.events.WIN_OPEN, function(win) 33 + vis.events.subscribe(vis.events.WIN_OPEN, function() 39 34 --per-window configuration-- 40 35 --vis:command('set number') 41 - vis:command('set showtab on') 36 + --vis:command('set showtab on') 42 37 vis:command('set showspace off') 43 38 vis:command('set autoindent on') 44 39 vis:command('set cursorline on')