nvf changes

This commit is contained in:
Charlie Root 2024-07-06 15:53:16 +02:00
commit 5548480371
42 changed files with 261 additions and 154 deletions

View file

@ -30,7 +30,7 @@
}; };
# Wayland packages # Wayland packages
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland"; nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
doomemacs = { doomemacs = {
url = "github:doomemacs/doomemacs"; url = "github:doomemacs/doomemacs";
flake = false; flake = false;

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
# allow unfree packages # allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Time Zone # Time Zone
@ -8,17 +8,17 @@
console.keyMap = "de"; console.keyMap = "de";
nix = { nix = {
settings = { settings = {
substituters = [ "https://hyprland.cachix.org" ]; substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = [ trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
]; ];
# enable flakes # enable flakes
experimental-features = [ "nix-command" "flakes" ]; experimental-features = ["nix-command" "flakes"];
# reduce file size used & automatic garbage collector # reduce file size used & automatic garbage collector
auto-optimise-store = true; auto-optimise-store = true;
}; };
}; };
security.sudo.package = pkgs.sudo.override { withInsults = true; }; security.sudo.package = pkgs.sudo.override {withInsults = true;};
security.polkit.enable = true; security.polkit.enable = true;
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
@ -81,7 +81,7 @@
helix.enable = true; helix.enable = true;
kakoune.enable = true; kakoune.enable = true;
nixvim.enable = false; # broken at the moment nixvim.enable = false; # broken at the moment
# neovim.enable = true; # neovim.enable = true;
}; };
services = { services = {
pipewire.enable = true; pipewire.enable = true;
@ -91,14 +91,14 @@
stylix = { stylix = {
enable = true; enable = true;
scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-pale.yaml"; scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-pale.yaml";
cursor = { size = 16; }; cursor = {size = 16;};
fontsizes = { fontsizes = {
terminal = 12; terminal = 12;
popups = 12; popups = 12;
}; };
image = ../../../assets/wallpapers/tiredgod.png; image = ../../../assets/wallpapers/tiredgod.png;
}; };
gtk = { enable = true; }; gtk = {enable = true;};
qt = { qt = {
enable = true; enable = true;
package = pkgs.kde-gruvbox; package = pkgs.kde-gruvbox;

View file

@ -1,33 +1,37 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
]; pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/b51d0f6c-2980-4117-b9df-5cc2c8ddd2d6"; device = "/dev/disk/by-uuid/b51d0f6c-2980-4117-b9df-5cc2c8ddd2d6";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-f1b24c23-8211-433e-983e-2ebad020826e".device = "/dev/disk/by-uuid/f1b24c23-8211-433e-983e-2ebad020826e"; boot.initrd.luks.devices."luks-f1b24c23-8211-433e-983e-2ebad020826e".device = "/dev/disk/by-uuid/f1b24c23-8211-433e-983e-2ebad020826e";
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/E355-67EA"; device = "/dev/disk/by-uuid/E355-67EA";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = ["fmask=0022" "dmask=0022"];
}; };
# swapDevices = # swapDevices =
# [ { device = "/dev/disk/by-uuid/3518272e-1051-41e2-a7f0-f5c744e46789"; } # [ { device = "/dev/disk/by-uuid/3518272e-1051-41e2-a7f0-f5c744e46789"; }
# ]; # ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -1,5 +1,8 @@
{ inputs, pkgs, ... }: {
let inputs,
pkgs,
...
}: let
fenix = inputs.fenix.packages.${pkgs.system}; fenix = inputs.fenix.packages.${pkgs.system};
nixpkgs-wayland = inputs.nixpkgs-wayland.packages.${pkgs.system}; nixpkgs-wayland = inputs.nixpkgs-wayland.packages.${pkgs.system};
in { in {

View file

@ -1,22 +1,22 @@
{ {
inputs, inputs,
lib, lib,
... ...
}: let }: let
inherit (builtins) filter map toString elem; inherit (builtins) filter map toString elem;
inherit (lib.filesystem) listFilesRecursive; inherit (lib.filesystem) listFilesRecursive;
inherit (lib.strings) hasSuffix; inherit (lib.strings) hasSuffix;
inherit(lib.lists) concatLists; inherit (lib.lists) concatLists;
mkNeovimModule ={ mkNeovimModule = {
path, path,
ingoredPaths ? [./nvf.nix], ingoredPaths ? [./nvf.nix],
}: }:
filter (hasSuffix ".nix") ( filter (hasSuffix ".nix") (
map toString ( map toString (
filter (path: path != ./default.nix && !elem path ingoredPaths) (listFilesRecursive path) filter (path: path != ./default.nix && !elem path ingoredPaths) (listFilesRecursive path)
) )
); );
nvf = inputs.neovim-flake; nvf = inputs.neovim-flake;
in { in {
@ -28,4 +28,4 @@ in {
# which means all default.nix files will be imported automtically # which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;}) (mkNeovimModule {path = ./.;})
]; ];
} }

View file

@ -1,6 +1,11 @@
# Thank your Mr. poz! (https://git.jacekpoz.pl/jacekpoz/niksos) # Thank your Mr. poz! (https://git.jacekpoz.pl/jacekpoz/niksos)
{ config, inputs, lib, pkgs, ... }: {
let config,
inputs,
lib,
pkgs,
...
}: let
cfg = config.modules.editors.neovim; cfg = config.modules.editors.neovim;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
@ -9,10 +14,10 @@ in {
options.modules.editors.neovim.enable = mkEnableOption "neovim"; options.modules.editors.neovim.enable = mkEnableOption "neovim";
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.sessionVariables = { EDITOR = "nvim"; }; environment.sessionVariables = {EDITOR = "nvim";};
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ inputs.neovim-flake.homeManagerModules.default ]; imports = [inputs.neovim-flake.homeManagerModules.default];
programs.nvf = { programs.nvf = {
enable = true; enable = true;
@ -77,7 +82,7 @@ in {
alwaysComplete = false; alwaysComplete = false;
}; };
filetree.nvimTree = { enable = true; }; filetree.nvimTree = {enable = true;};
terminal.toggleterm = { terminal.toggleterm = {
enable = true; enable = true;
@ -172,7 +177,7 @@ in {
orgmode = { orgmode = {
enable = true; enable = true;
setupOpts = { setupOpts = {
org_agenda_files = [ "~/Notes/org" ]; org_agenda_files = ["~/Notes/org"];
org_default_notes_file = "~/Notes/org/refile.org"; org_default_notes_file = "~/Notes/org/refile.org";
}; };
treesitter.enable = true; treesitter.enable = true;

View file

@ -1,12 +1,14 @@
{ {
config,
self, self,
pkgs, pkgs,
... ...
}: let }: let
inherit (config.modules.other.system) username;
inherit (pkgs.vimPlugins) friendly-snippets aerial-nvim nvim-surround undotree mkdir-nvim ssr-nvim direnv-vim legendary-nvim; inherit (pkgs.vimPlugins) friendly-snippets aerial-nvim nvim-surround undotree mkdir-nvim ssr-nvim direnv-vim legendary-nvim;
pluginSources = import ./sources {inherit self pkgs;}; pluginSources = import ./sources {inherit self pkgs;};
in { in {
programs.neovim-flake.settings.vim.extraPlugins = { home-manager.users.${username}.programs.neovim-flake.settings.vim.extraPlugins = {
# plugins that are pulled from nixpkgs # plugins that are pulled from nixpkgs
direnv = {package = direnv-vim;}; direnv = {package = direnv-vim;};
friendly-snippets = {package = friendly-snippets;}; friendly-snippets = {package = friendly-snippets;};

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
assistant.copilot = { assistant.copilot = {
enable = true; enable = true;
cmp.enable = true; cmp.enable = true;

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
autocomplete = { autocomplete = {
enable = true; enable = true;
type = "nvim-cmp"; type = "nvim-cmp";

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
autopairs.enable = true; autopairs.enable = true;
}; };
} }

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
binds = { binds = {
whichKey.enable = true; whichKey.enable = true;
cheatsheet.enable = false; cheatsheet.enable = false;

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
comments.comment-nvim.enable = true; comments.comment-nvim.enable = true;
}; };
} }

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
dashboard = { dashboard = {
alpha.enable = true; alpha.enable = true;
}; };

View file

@ -1,5 +1,7 @@
{ {config, ...}: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.${username}.programs.neovim-flake.settings.vim = {
debugger.nvim-dap = { debugger.nvim-dap = {
enable = true; enable = true;
ui.enable = true; ui.enable = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
filetree = { filetree = {
nvimTree = { nvimTree = {

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
gestures.gesture-nvim.enable = false; gestures.gesture-nvim.enable = false;
}; };

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
git = { git = {
enable = true; enable = true;

View file

@ -3,8 +3,10 @@
pkgs, pkgs,
lib, lib,
... ...
}: { }: let
programs.neovim-flake.settings.vim = { inherit (config.modules.other.system) username;
in {
home-manager.users.${username}.programs.neovim-flake.settings.vim = {
languages = { languages = {
enableLSP = true; enableLSP = true;
enableFormat = true; enableFormat = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
lsp = { lsp = {
formatOnSave = true; formatOnSave = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
minimap = { minimap = {
# cool for vanity but practically useless on small screens # cool for vanity but practically useless on small screens

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
notes = { notes = {
todo-comments.enable = true; todo-comments.enable = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
notify = { notify = {
nvim-notify.enable = true; nvim-notify.enable = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
presence.neocord.enable = false; presence.neocord.enable = false;
}; };

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
projects = { projects = {
project-nvim = { project-nvim = {

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
session.nvim-session-manager = { session.nvim-session-manager = {
enable = false; enable = false;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
statusline = { statusline = {
lualine = { lualine = {

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
tabline = { tabline = {
nvimBufferline.enable = true; nvimBufferline.enable = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
telescope.enable = true; telescope.enable = true;
}; };

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
}; };
} }

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
terminal = { terminal = {
toggleterm = { toggleterm = {

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
theme = { theme = {
enable = true; enable = true;

View file

@ -1,4 +1,11 @@
{pkgs, ...}: { {
config,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
treesitter = { treesitter = {
fold = true; fold = true;

View file

@ -1,4 +1,11 @@
{ {
config,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
ui = { ui = {
noice.enable = true; noice.enable = true;

View file

@ -1,4 +1,11 @@
{pkgs, ...}: { {
config,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
utility = { utility = {
ccc.enable = true; ccc.enable = true;

View file

@ -1,4 +1,7 @@
{ {config, ...}: let
inherit (config.modules.other.system) username;
in {
home-manager.${username}.
programs.neovim-flake.settings.vim = { programs.neovim-flake.settings.vim = {
visuals = { visuals = {
enable = true; enable = true;

View file

@ -15,71 +15,69 @@
smart-splits = buildVimPlugin { smart-splits = buildVimPlugin {
name = "smart-splits"; name = "smart-splits";
src = pins."smart-splits.nvim";
};
slides-nvim = buildVimPlugin {
name = "slides.nvim";
src = pins."slides.nvim";
};
regexplainer = buildVimPlugin {
name = "nvim-regexplainer";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bennypowers"; owner = "mrjones2014";
repo = "nvim-regexplainer"; repo = "smart-splits.nvim";
rev = "4250c8f3c1307876384e70eeedde5149249e154f"; rev = "95833675cd92538bf9cded1d2d58d1fc271c5428";
hash = "sha256-15DLbKtOgUPq4DcF71jFYu31faDn52k3P1x47GL3+b0="; hash = "";
}; };
};
specs-nvim = buildVimPlugin { regexplainer = buildVimPlugin {
name = "specs.nvim"; name = "nvim-regexplainer";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "notashelf"; owner = "bennypowers";
repo = "specs.nvim"; repo = "nvim-regexplainer";
rev = "0792aaebf8cbac0c8545c43ad648b98deb83af42"; rev = "4250c8f3c1307876384e70eeedde5149249e154f";
hash = "sha256-doHE/3bRuC8lyYxMk927JmwLfiy7aR22+i+BNefEGJ4="; hash = "sha256-15DLbKtOgUPq4DcF71jFYu31faDn52k3P1x47GL3+b0=";
};
}; };
};
deferred-clipboard = buildVimPlugin { specs-nvim = buildVimPlugin {
name = "deferred-clipboard"; name = "specs.nvim";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "EtiamNullam"; owner = "notashelf";
repo = "deferred-clipboard.nvim"; repo = "specs.nvim";
rev = "810a29d166eaa41afc220cc7cd85eeaa3c43b37f"; rev = "0792aaebf8cbac0c8545c43ad648b98deb83af42";
hash = "sha256-nanNQEtpjv0YKEkkrPmq/5FPxq+Yj/19cs0Gf7YgKjU="; hash = "sha256-doHE/3bRuC8lyYxMk927JmwLfiy7aR22+i+BNefEGJ4=";
};
}; };
};
data-viewer-nvim = buildVimPlugin { deferred-clipboard = buildVimPlugin {
name = "data-viewer.nvim"; name = "deferred-clipboard";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "VidocqH"; owner = "EtiamNullam";
repo = "data-viewer.nvim"; repo = "deferred-clipboard.nvim";
rev = "40ddf37bb7ab6c04ff9e820812d1539afe691668"; rev = "810a29d166eaa41afc220cc7cd85eeaa3c43b37f";
hash = "sha256-D5hvLhsYski11H9qiDDL2zlZMtYmbpHgpewiWR6C7rE="; hash = "sha256-nanNQEtpjv0YKEkkrPmq/5FPxq+Yj/19cs0Gf7YgKjU=";
};
}; };
}; data-viewer-nvim = buildVimPlugin {
name = "data-viewer.nvim";
vim-nftables = buildVimPlugin { src = fetchFromGitHub {
name = "vim-nftables"; owner = "VidocqH";
src = fetchFromGitHub { repo = "data-viewer.nvim";
owner = "awisse"; rev = "40ddf37bb7ab6c04ff9e820812d1539afe691668";
repo = "vim-nftables"; hash = "sha256-D5hvLhsYski11H9qiDDL2zlZMtYmbpHgpewiWR6C7rE=";
rev = "bc29309080b4c7e1888ffb1a830846be16e5b8e7"; };
hash = "sha256-L1x3Hv95t/DBBrLtPBKrqaTbIPor/NhVuEHVIYo/OaA="; };
vim-nftables = buildVimPlugin {
name = "vim-nftables";
src = fetchFromGitHub {
owner = "awisse";
repo = "vim-nftables";
rev = "bc29309080b4c7e1888ffb1a830846be16e5b8e7";
hash = "sha256-L1x3Hv95t/DBBrLtPBKrqaTbIPor/NhVuEHVIYo/OaA=";
};
}; };
};
neotab-nvim = buildVimPlugin { neotab-nvim = buildVimPlugin {
name = "neotab.nvim"; name = "neotab.nvim";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kawre"; owner = "kawre";
repo = "neotab.nvim"; repo = "neotab.nvim";
rev = "6c6107dddaa051504e433608f59eca606138269b"; rev = "6c6107dddaa051504e433608f59eca606138269b";
hash = "sha256-bSFKbjj8fJHdfBzYoQ9l3NU0GAYfdfCbESKbwdbLNSw="; hash = "sha256-bSFKbjj8fJHdfBzYoQ9l3NU0GAYfdfCbESKbwdbLNSw=";
};
}; };
}; };
}; };

View file

@ -50,7 +50,7 @@ in {
useSystemClipboard = true; useSystemClipboard = true;
spellcheck = { spellcheck = {
enable = true; enable = true;
languages = ["en" "de" ]; languages = ["en" "de"];
}; };
enableLuaLoader = true; enableLuaLoader = true;

View file

@ -1,5 +1,10 @@
{ config, inputs, lib, pkgs, ... }: {
let config,
inputs,
lib,
pkgs,
...
}: let
cfg = config.modules.programs.foot; cfg = config.modules.programs.foot;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
@ -11,7 +16,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.sessionVariables = { TERM = "foot"; }; environment.sessionVariables = {TERM = "foot";};
home-manager.users.${username} = { home-manager.users.${username} = {
programs.foot = { programs.foot = {
enable = true; enable = true;
@ -36,8 +41,7 @@ in {
pad = "5x5 center"; pad = "5x5 center";
resize-delay-ms = 100; resize-delay-ms = 100;
notify = notify = "${pkgs.libnotify}/bin/notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
"${pkgs.libnotify}/bin/notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
bold-text-in-bright = "no"; bold-text-in-bright = "no";
word-delimiters = '',`|:"'()[]{}<>''; word-delimiters = '',`|:"'()[]{}<>'';
@ -59,8 +63,7 @@ in {
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}"; launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
label-letters = "sadfjklewcmpgh"; label-letters = "sadfjklewcmpgh";
osc8-underline = "always"; osc8-underline = "always";
protocols = protocols = "http, https, ftp, ftps, file, gemini, gopher, irc, ircs";
"http, https, ftp, ftps, file, gemini, gopher, irc, ircs";
uri-characters = '' uri-characters = ''
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]''; abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]'';
}; };
@ -93,7 +96,7 @@ in {
# bright6 = "94e2d5"; # teal # bright6 = "94e2d5"; # teal
# bright7 = "a6adc8"; # Subtext 0 # bright7 = "a6adc8"; # Subtext 0
# }; # };
csd = { preferred = "server"; }; csd = {preferred = "server";};
key-bindings = { key-bindings = {
show-urls-launch = "Control+Shift+u"; show-urls-launch = "Control+Shift+u";
unicode-input = "Control+Shift+i"; unicode-input = "Control+Shift+i";

View file

@ -22,7 +22,7 @@ in {
programs.gamemode.enable = true; programs.gamemode.enable = true;
environment.systemPackages = [pkgs.protonup]; environment.systemPackages = [pkgs.protonup];
environment.sessionVariables = { environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d"; STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d";
}; };
}; };
} }

View file

@ -61,7 +61,6 @@ in {
]; ];
# Workspace config # Workspace config
workspace = [ workspace = [
"1,monitor:HDMI-A-1, default:true" "1,monitor:HDMI-A-1, default:true"
"2,monitor:HDMI-A-1" "2,monitor:HDMI-A-1"
"3,monitor:HDMI-A-1" "3,monitor:HDMI-A-1"

View file

@ -1,5 +1,10 @@
{ config, lib, pkgs, ... }: {
let inherit (config.modules.other.system) username; config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in { in {
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
@ -11,8 +16,8 @@ in {
# Bluetooth headset media control buttons # Bluetooth headset media control buttons
systemd.user.services.mpris-proxy = { systemd.user.services.mpris-proxy = {
description = "Mpris proxy"; description = "Mpris proxy";
after = [ "network.target" "sound.target" ]; after = ["network.target" "sound.target"];
wantedBy = [ "default.target" ]; wantedBy = ["default.target"];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy"; serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
}; };
} }

View file

@ -7,7 +7,7 @@
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
package = pkgs.mesa.drivers; package = pkgs.mesa.drivers;
# driSupport32Bit = true; # driSupport32Bit = true;
}; };
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;