From 4e3c8eff1407291ce64254d3eeed8de5f9677a0b Mon Sep 17 00:00:00 2001 From: adikro Date: Fri, 14 Nov 2025 18:29:31 +0100 Subject: changed nixvim config a bit and added some fonts --- home/editors/nixvim.nix | 101 +++++++++++++++++++++++++++++++------ home/editors/nvf.nix | 4 +- home/home.nix | 88 ++++++++++---------------------- home/programs/nixcord.nix | 3 +- home/programs/spicetify.nix | 3 +- home/stylix.nix | 8 --- home/wayland/eww.nix | 7 --- home/wayland/hyprland/hyprland.nix | 45 +++++++++++++++++ home/wayland/niri/niri.nix | 4 ++ home/wayland/xdg.nix | 37 -------------- home/xdg.nix | 37 ++++++++++++++ 11 files changed, 202 insertions(+), 135 deletions(-) delete mode 100644 home/stylix.nix delete mode 100644 home/wayland/eww.nix create mode 100644 home/wayland/hyprland/hyprland.nix create mode 100644 home/wayland/niri/niri.nix delete mode 100644 home/wayland/xdg.nix create mode 100644 home/xdg.nix (limited to 'home') diff --git a/home/editors/nixvim.nix b/home/editors/nixvim.nix index 2835e1e..17ea2ec 100644 --- a/home/editors/nixvim.nix +++ b/home/editors/nixvim.nix @@ -1,7 +1,6 @@ -{ inputs, pkgs, ... }: +{ pkgs, inputs, ... }: { imports = [ inputs.nixvim.homeModules.nixvim ]; - programs.nixvim = { enable = true; package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default; @@ -11,24 +10,96 @@ waylandSupport = true; colorschemes.gruvbox.enable = true; - plugins = { - lualine.enable = true; - nvim-autopairs.enable = true; - nix.enable = true; - treesitter.enable = true; - lsp = { - enable = true; - servers = { - nil_ls.enable = true; - clangd.enable = true; - }; - }; - }; + plugins = { + lualine.enable = true; + nvim-autopairs.enable = true; + neoscroll.enable = true; + bufferline.enable = true; + treesitter = { + enable = true; + settings = { + indent.enable = true; + }; + }; + web-devicons.enable = true; + telescope = { + enable = true; + extensions = { + fzf-native = { + enable = true; + }; + }; + }; + hardtime = { + enable = false; + settings = { + disableMouse = true; + enabled = false; + restrictionMode = "hint"; + hint = true; + maxCount = 40; + maxTime = 1000; + }; + }; + nix.enable = true; + lsp = { + enable = true; + servers = { + nil_ls.enable = true; + clangd.enable = true; + }; + }; + }; opts = { number = true; relativenumber = true; + termguicolors = true; + # mouse = "a"; + ignorecase = true; + smartcase = true; + expandtab = true; shiftwidth = 2; + encoding = "utf-8"; + fileencoding = "utf-8"; + undofile = true; + swapfile = true; + backup = false; + autoread = true; + cursorline = true; + ruler = true; + gdefault = true; + scrolloff = 5; + clipboard = { + providers.wl-copy.enable = true; + register = "wl-copy"; + }; }; + + keymaps = [ + { + key = ""; + action = ""; + mode = [ "n" "i" "v" ]; + options = { silent = true; }; + } + { key = ""; + action = ""; + mode = [ "n" "i" "v" ]; + options = { silent = true; }; + } + { + key = ""; + action = ""; + mode = [ "n" "i" "v" ]; + options = { silent = true; }; + } + { + key = ""; + action = ""; + mode = [ "n" "i" "v" ]; + options = { silent = true; }; + } + ]; }; } diff --git a/home/editors/nvf.nix b/home/editors/nvf.nix index 428f41f..ab805ca 100644 --- a/home/editors/nvf.nix +++ b/home/editors/nvf.nix @@ -1,11 +1,11 @@ -{ inputs, pkgs, ... }: +{ pkgs, neovim-nightly-overlay, ... }: { programs.nvf = { enable = true; settings.vim = { - package= inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default; + package = neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default; viAlias = true; vimAlias = true; diff --git a/home/home.nix b/home/home.nix index e56d1f3..39f4567 100644 --- a/home/home.nix +++ b/home/home.nix @@ -2,19 +2,22 @@ { imports = [ - ./wayland/hyprland/binds.nix + # Window Managers + ./wayland/hyprland/hyprland.nix + ./wayland/niri/niri.nix + # Wayland specific programs ./wayland/waybar.nix + # Editors + ./editors/nixvim.nix + ./editors/helix.nix + # Programs ./terminals/foot.nix ./shells/fish.nix ./shells/starship.nix ./programs/spicetify.nix -# ./editors/nvf.nix - ./editors/nixvim.nix - ./editors/helix.nix - ./wayland/xdg.nix - ./wayland/eww.nix ./programs/nixcord.nix -# ./stylix.nix + # Other + ./xdg.nix ]; home.username = "adam"; @@ -55,66 +58,27 @@ programs.btop.enable = true; -programs.git = { - enable = true; - settings = { - user.name = "adikro"; - user.email = "adikro@disroot.org"; - init.defaultBranch = "main"; - }; -}; - -gtk = { - enable = true; - theme = { - name = "Adwaita-dark"; - package = pkgs.gnome-themes-extra; - }; -}; - -qt = { - enable = true; - style.name = "Breeze-Dark"; -}; - -wayland.windowManager.hyprland = { - enable = true; - settings = { - - general = { - gaps_in = 6; - gaps_out = 16; - border_size = 2; - }; - - decoration = { - rounding = 12; + programs.git = { + enable = true; + settings = { + user.name = "adikro"; + user.email = "adikro@disroot.org"; + init.defaultBranch = "main"; + }; }; - "$mod" = "ALT"; - monitor = [ - "DP-1,2560x1440@240,0x0,1,vrr,0" - ]; - workspace = [ - "1,monitor:DP-1,default:true" - "2,monitor:DP-1" - "3,monitor:DP-1" - "4,monitor:DP-1" - "5,monitor:DP-1" - ]; - - input = { - accel_profile = "flat"; - sensitivity = -0.6; - repeat_rate = 45; - repeat_delay = 750; + gtk = { + enable = true; + theme = { + name = "Adwaita-dark"; + package = pkgs.gnome-themes-extra; }; + }; - animations = { - enabled = false; - }; + qt = { + enable = true; + style.name = "Breeze-Dark"; }; -}; programs.home-manager.enable = true; } diff --git a/home/programs/nixcord.nix b/home/programs/nixcord.nix index ead23aa..2f73eb1 100644 --- a/home/programs/nixcord.nix +++ b/home/programs/nixcord.nix @@ -1,7 +1,6 @@ -{ pkgs, inputs, lib, config, ... }: +{ inputs, ... }: { imports = [ inputs.nixcord.homeModules.nixcord ]; - programs.nixcord = { enable = true; discord.enable = false; diff --git a/home/programs/spicetify.nix b/home/programs/spicetify.nix index a581bd6..9d66181 100644 --- a/home/programs/spicetify.nix +++ b/home/programs/spicetify.nix @@ -1,4 +1,4 @@ -{ config, pkgs, inputs, ... }: +{ pkgs, inputs, ... }: let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; @@ -15,7 +15,6 @@ in { hidePodcasts ]; -# theme = spicePkgs.themes.onepunch; theme = spicePkgs.themes.catppuccin; colorScheme = "mocha"; }; diff --git a/home/stylix.nix b/home/stylix.nix deleted file mode 100644 index 16830cc..0000000 --- a/home/stylix.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ inputs, ... }: -{ - imports = [ inputs.stylix.homeModules.stylix ]; - - stylix = { - enable = true; - }; -} diff --git a/home/wayland/eww.nix b/home/wayland/eww.nix deleted file mode 100644 index fe7df23..0000000 --- a/home/wayland/eww.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ ... }: -{ - programs.eww = { - enable = true; - enableFishIntegration = true; - }; -} diff --git a/home/wayland/hyprland/hyprland.nix b/home/wayland/hyprland/hyprland.nix new file mode 100644 index 0000000..fe85283 --- /dev/null +++ b/home/wayland/hyprland/hyprland.nix @@ -0,0 +1,45 @@ +{ ... }: +{ + imports = [ + ./binds.nix + ]; + + wayland.windowManager.hyprland = { + enable = true; + settings = { + + general = { + gaps_in = 6; + gaps_out = 16; + border_size = 2; + }; + + decoration = { + rounding = 12; + }; + + "$mod" = "ALT"; + monitor = [ + "DP-1,2560x1440@240,0x0,1,vrr,0" + ]; + workspace = [ + "1,monitor:DP-1,default:true" + "2,monitor:DP-1" + "3,monitor:DP-1" + "4,monitor:DP-1" + "5,monitor:DP-1" + ]; + + input = { + accel_profile = "flat"; + sensitivity = -0.6; + repeat_rate = 45; + repeat_delay = 500; + }; + + animations = { + enabled = false; + }; + }; + }; +} diff --git a/home/wayland/niri/niri.nix b/home/wayland/niri/niri.nix new file mode 100644 index 0000000..facb35d --- /dev/null +++ b/home/wayland/niri/niri.nix @@ -0,0 +1,4 @@ +{ ... }: +{ + +} diff --git a/home/wayland/xdg.nix b/home/wayland/xdg.nix deleted file mode 100644 index f4b1294..0000000 --- a/home/wayland/xdg.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ ... }: - -{ - xdg.userDirs = { - enable = true; - - createDirectories = true; - download = "$HOME/dl"; - documents = "$HOME/docs"; - pictures = "/media/pics"; - videos = "/media/vids"; - - desktop = null; - music = null; - publicShare = null; - templates = null; - - extraConfig = { - XDG_PROJECTS_DIR = "$HOME/projects"; - XDG_GAMES_DIR = "$HOME/Games"; - XDG_MEDIA_DIR = "/media"; - XDG_SS_DIR = "/media/ss"; - XDG_CLIPS_DIR = "/media/clips"; - XDG_ISO_DIR = "/media/iso"; - XDG_ARCHIVE_DIR = "/media/archive"; - }; - }; - home.sessionVariables = { - XDG_PROJECTS_DIR = "$HOME/projects"; - XDG_GAMES_DIR = "$HOME/Games"; - XDG_MEDIA_DIR = "/media"; - XDG_SS_DIR = "/media/ss"; - XDG_CLIPS_DIR = "/media/clips"; - XDG_ISO_DIR = "/media/iso"; - XDG_ARCHIVE_DIR = "/media/archive"; - }; -} diff --git a/home/xdg.nix b/home/xdg.nix new file mode 100644 index 0000000..f4b1294 --- /dev/null +++ b/home/xdg.nix @@ -0,0 +1,37 @@ +{ ... }: + +{ + xdg.userDirs = { + enable = true; + + createDirectories = true; + download = "$HOME/dl"; + documents = "$HOME/docs"; + pictures = "/media/pics"; + videos = "/media/vids"; + + desktop = null; + music = null; + publicShare = null; + templates = null; + + extraConfig = { + XDG_PROJECTS_DIR = "$HOME/projects"; + XDG_GAMES_DIR = "$HOME/Games"; + XDG_MEDIA_DIR = "/media"; + XDG_SS_DIR = "/media/ss"; + XDG_CLIPS_DIR = "/media/clips"; + XDG_ISO_DIR = "/media/iso"; + XDG_ARCHIVE_DIR = "/media/archive"; + }; + }; + home.sessionVariables = { + XDG_PROJECTS_DIR = "$HOME/projects"; + XDG_GAMES_DIR = "$HOME/Games"; + XDG_MEDIA_DIR = "/media"; + XDG_SS_DIR = "/media/ss"; + XDG_CLIPS_DIR = "/media/clips"; + XDG_ISO_DIR = "/media/iso"; + XDG_ARCHIVE_DIR = "/media/archive"; + }; +} -- cgit v1.3