nix fmt
All checks were successful
/ check (push) Successful in 1m39s

This commit is contained in:
Oliver Davies 2025-07-10 22:55:59 +01:00
parent b32493780d
commit 6a87e455bd
16 changed files with 105 additions and 46 deletions

View file

@ -1,28 +1,43 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/40649879-4ee6-4668-8257-fe81a7773024";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/40649879-4ee6-4668-8257-fe81a7773024";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/24B1-88CB";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/24B1-88CB";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.features.cli.${service};
@ -18,10 +23,12 @@ in
enable = true;
keybindings = {
"{_, shift +, super +}XF86MonBrightness{Down,Up}" = "${getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
"${getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
"super + BackSpace" = "/home/opdavies/sysact";
"super + shift + b" = "/etc/profiles/per-user/opdavies/bin/bookmarkthis";
"super + shift + i" = "${pkgs.xdotool}/bin/xdotool type $(cat ~/.local/share/snippets.txt | grep -v '^#' | grep -v '^$' | sort | dmenu -i -l 50 | cut -d' ' -f1)";
"super + shift + i" =
"${pkgs.xdotool}/bin/xdotool type $(cat ~/.local/share/snippets.txt | grep -v '^#' | grep -v '^$' | sort | dmenu -i -l 50 | cut -d' ' -f1)";
"super + shift + p" = "${getExe pkgs.passmenu-otp} -i";
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
"@F3" = "${getExe pkgs.displayselect}";

View file

@ -38,7 +38,7 @@
settings.flavour = "mocha";
};
diagnostic.settings = {
diagnostic.settings = {
signs = true;
underline = false;
update_in_insert = false;

View file

@ -31,7 +31,10 @@
{
action = "\"+y";
key = "<leader>y";
mode = ["n" "x"];
mode = [
"n"
"x"
];
}
{
@ -48,7 +51,10 @@
{
action = "<Esc>:w<CR>";
key = "<C-s>";
mode = ["i" "n"];
mode = [
"i"
"n"
];
}
{

View file

@ -5,8 +5,8 @@
keymaps = lib.mkIf config.plugins.fugitive.enable [
{
key = "<leader>gc";
action = "<cmd>Git commit<CR><C-w>K";
key = "<leader>gc";
action = "<cmd>Git commit<CR><C-w>K";
}
{

View file

@ -27,7 +27,10 @@
{
action = "<cmd>Gitsigns stage_hunk<CR>";
key = "<leader>hs";
mode = ["n" "v"];
mode = [
"n"
"v"
];
}
{

View file

@ -3,13 +3,13 @@
enable = true;
modules = {
ai = {};
align = {};
bracketed = {};
move = {};
operators = {};
splitjoin = {};
surround = {};
ai = { };
align = { };
bracketed = { };
move = { };
operators = { };
splitjoin = { };
surround = { };
};
};
}

View file

@ -15,6 +15,9 @@
};
keymaps = lib.mkIf config.plugins.oil.enable [
{ action = "<cmd>Oil<CR>"; key = "-"; }
{
action = "<cmd>Oil<CR>";
key = "-";
}
];
}

View file

@ -6,8 +6,8 @@
enableTelescope = true;
};
keymaps =
lib.mkIf config.plugins.refactoring.enable ([
keymaps = lib.mkIf config.plugins.refactoring.enable (
[
{
key = "<leader>ri";
action = "<cmd>Refactor inline_var<CR>";
@ -43,5 +43,6 @@
'';
options.silent = true;
}
]);
]
);
}

View file

@ -29,4 +29,3 @@
settings.pickers.find_files.hidden = true;
};
}

View file

@ -44,4 +44,3 @@
treesitter-textobjects.enable = true;
};
}

View file

@ -4,6 +4,9 @@
plugins.undotree.enable = true;
keymaps = lib.mkIf config.plugins.undotree.enable [
{ action = "<cmd>UndotreeToggle<CR>"; key = "<leader>u"; }
{
action = "<cmd>UndotreeToggle<CR>";
key = "<leader>u";
}
];
}

View file

@ -4,8 +4,17 @@
plugins.vim-test.enable = true;
keymaps = lib.mkIf config.plugins.vim-test.enable [
{ key = "<leader>tf"; action = "<cmd>TestFile<CR>"; }
{ key = "<leader>tl"; action = "<cmd>TestLast<CR>"; }
{ key = "<leader>tn"; action = "<cmd>TestNearest<CR>"; }
{
key = "<leader>tf";
action = "<cmd>TestFile<CR>";
}
{
key = "<leader>tl";
action = "<cmd>TestLast<CR>";
}
{
key = "<leader>tn";
action = "<cmd>TestNearest<CR>";
}
];
}

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
@ -6,8 +11,7 @@ let
cfg = config.features.desktop.browsers.qutebrowser;
in
{
options.features.desktop.browsers.qutebrowser.enable =
mkEnableOption "Enable qutebrowser";
options.features.desktop.browsers.qutebrowser.enable = mkEnableOption "Enable qutebrowser";
config = mkIf cfg.enable {
programs.qutebrowser = {

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;

View file

@ -4,14 +4,19 @@ let
cfg = config.features.cli.${service};
service = "kanata";
inherit (lib) mkEnableOption mkIf mkOption types;
inherit (lib)
mkEnableOption
mkIf
mkOption
types
;
in
{
options.features.cli.${service} = {
enable = mkEnableOption "Enable ${service}";
devices = mkOption {
default = [];
default = [ ];
type = types.listOf types.str;
};
};