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 lint failures

+63 -22
+12
.luacheckrc
··· 1 + globals = { 2 + "vim", 3 + "vis", 4 + "setup", 5 + } 6 + 7 + files["vis/visrc.lua"] = { 8 + ignore = { 9 + "211/_plugins", 10 + "_setup_plug", 11 + }, 12 + }
+2 -1
boot.nix
··· 1 - { ... }: { 1 + { ... }: 2 + { 2 3 # Use the systemd-boot EFI boot loader. 3 4 boot.loader.systemd-boot.enable = true; 4 5 boot.loader.efi.canTouchEfiVariables = true;
+28 -14
host-specific/edge/hardware-configuration.nix
··· 1 1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 2 # and may be overwritten by future invocations. Please make changes 3 3 # to /etc/nixos/configuration.nix instead. 4 - { config, lib, pkgs, modulesPath, ... }: 4 + { 5 + config, 6 + lib, 7 + pkgs, 8 + modulesPath, 9 + ... 10 + }: 5 11 6 12 { 7 - imports = 8 - [ (modulesPath + "/installer/scan/not-detected.nix") 9 - ]; 13 + imports = [ 14 + (modulesPath + "/installer/scan/not-detected.nix") 15 + ]; 10 16 11 - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ]; 17 + boot.initrd.availableKernelModules = [ 18 + "nvme" 19 + "xhci_pci" 20 + "ahci" 21 + "usbhid" 22 + ]; 12 23 boot.initrd.kernelModules = [ ]; 13 24 boot.kernelModules = [ "kvm-amd" ]; 14 25 boot.extraModulePackages = [ ]; 15 26 16 - fileSystems."/" = 17 - { device = "/dev/disk/by-uuid/8101a0a8-a8c6-4083-85b6-c136d3c80f2e"; 18 - fsType = "ext4"; 19 - }; 27 + fileSystems."/" = { 28 + device = "/dev/disk/by-uuid/8101a0a8-a8c6-4083-85b6-c136d3c80f2e"; 29 + fsType = "ext4"; 30 + }; 20 31 21 - fileSystems."/boot" = 22 - { device = "/dev/disk/by-uuid/E7AD-32DA"; 23 - fsType = "vfat"; 24 - options = [ "fmask=0077" "dmask=0077" ]; 25 - }; 32 + fileSystems."/boot" = { 33 + device = "/dev/disk/by-uuid/E7AD-32DA"; 34 + fsType = "vfat"; 35 + options = [ 36 + "fmask=0077" 37 + "dmask=0077" 38 + ]; 39 + }; 26 40 27 41 swapDevices = [ ]; 28 42
+7 -1
nvim/init.lua
··· 87 87 local noremap = { noremap = true } 88 88 local silentnoremap = { noremap = true, silent = true } 89 89 --Toggle background 90 - keymap("n", "<leader>bg", function() if vim.o.background == "light" then vim.o.background = "dark" else vim.o.background = "light" end end, noremap) 90 + keymap("n", "<leader>bg", function() 91 + if vim.o.background == "light" then 92 + vim.o.background = "dark" 93 + else 94 + vim.o.background = "light" 95 + end 96 + end, noremap) 91 97 -- Easier breaking from edit modes 92 98 keymap("n", ";;", "<Esc>", noremap) 93 99 keymap("v", ";;", "<Esc>", noremap)
+2 -1
nvim/lua/completion.lua
··· 17 17 ['<C-f>'] = cmp.mapping.scroll_docs(4), 18 18 ['<C-Space>'] = cmp.mapping.complete(), 19 19 ['<C-e>'] = cmp.mapping.abort(), 20 - ['<CR>'] = cmp.mapping.confirm({ select = true }) -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. 20 + -- Accept the selected item, or the first item if none is selected. 21 + ['<CR>'] = cmp.mapping.confirm({ select = true }) 21 22 }), 22 23 sources = cmp.config.sources({ 23 24 { name = 'lazydev', group_index = 0 },
+9 -2
shell.nix
··· 1 - { pkgs ? import <nixos-unstable> { } }: 2 - pkgs.mkShell { packages = with pkgs; [ nil lua-language-server ]; } 1 + { 2 + pkgs ? import <nixos-unstable> { }, 3 + }: 4 + pkgs.mkShell { 5 + packages = with pkgs; [ 6 + nil 7 + lua-language-server 8 + ]; 9 + }
+3 -3
vis/visrc.lua
··· 1 1 require('vis') 2 - local plugins = { 2 + local _plugins = { 3 3 --{ 'timoha/vis-acme', theme = true, file = 'acme' }, 4 4 { 'milhnl/vis-format' }, 5 5 { url = 'https://git.cepl.eu/cgit/vis/vis-fzf-open' }, 6 - -- Disable LSP, they're slow to initialize 6 + -- Disable LSP, they're slow to initialize 7 7 -- and we don't have good non-blocking support 8 8 --{ url = 'https://gitlab.com/muhq/vis-lspc.git' }, 9 9 { url = 'https://repo.or.cz/vis-parkour.git', alias = 'vis-parkour' } 10 10 } 11 11 12 - local function setup_plug() 12 + local function _setup_plug() 13 13 if not pcall(require, 'plugins/vis-plug') then 14 14 os.execute('git clone --quiet https://github.com/erf/vis-plug ' .. 15 15 (os.getenv('XDG_CONFIG_HOME') or os.getenv('HOME') .. '/.config')