aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home-manager')
-rw-r--r--modules/home-manager/anki.nix20
-rw-r--r--modules/home-manager/default.nix29
-rw-r--r--modules/home-manager/dev.nix45
-rw-r--r--modules/home-manager/dunst.nix41
-rw-r--r--modules/home-manager/firefox.nix245
-rw-r--r--modules/home-manager/foot.nix57
-rw-r--r--modules/home-manager/gh.nix10
-rw-r--r--modules/home-manager/git.nix34
-rw-r--r--modules/home-manager/gnome-dconf.nix25
-rw-r--r--modules/home-manager/gpg.nix22
-rw-r--r--modules/home-manager/hyprlock.nix113
-rw-r--r--modules/home-manager/latex.nix29
-rw-r--r--modules/home-manager/neovim/default.nix39
-rw-r--r--modules/home-manager/neovim/init.lua217
-rw-r--r--modules/home-manager/nixcord.nix26
-rw-r--r--modules/home-manager/opencode.nix19
-rw-r--r--modules/home-manager/spicetify.nix33
-rw-r--r--modules/home-manager/sway.nix107
-rw-r--r--modules/home-manager/swayidle.nix29
-rw-r--r--modules/home-manager/tmux.nix42
-rw-r--r--modules/home-manager/typst.nix16
-rw-r--r--modules/home-manager/vscode.nix60
-rw-r--r--modules/home-manager/waybar.nix147
-rw-r--r--modules/home-manager/zathura.nix31
-rw-r--r--modules/home-manager/zsh.nix67
25 files changed, 0 insertions, 1503 deletions
diff --git a/modules/home-manager/anki.nix b/modules/home-manager/anki.nix
deleted file mode 100644
index c3b77ea..0000000
--- a/modules/home-manager/anki.nix
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.anki.enable = lib.mkEnableOption "Enable anki";
- config = lib.mkIf config.anki.enable {
- #Wait for stable release
- #programs.anki = {
- #enable = true;
- #style = "native";
- #addons = with pkgs.ankiAddons; [
- # anki-connect
- # review-heatmap
- #];
- #};
- };
-}
diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix
deleted file mode 100644
index fc88217..0000000
--- a/modules/home-manager/default.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{ ... }:
-
-{
- imports = [
- ./git.nix
- ./gh.nix
- ./zsh.nix
- ./tmux.nix
- ./neovim/default.nix
- ./zathura.nix
- ./vscode.nix
- ./gpg.nix
- ./nixcord.nix
- ./foot.nix
- ./dev.nix
- ./sway.nix
- ./waybar.nix
- ./firefox.nix
- ./spicetify.nix
- ./anki.nix
- ./dunst.nix
- ./hyprlock.nix
- ./swayidle.nix
- #./opencode.nix
- ./latex.nix
- ./typst.nix
- ./gnome-dconf.nix
- ];
-}
diff --git a/modules/home-manager/dev.nix b/modules/home-manager/dev.nix
deleted file mode 100644
index 4a9ef23..0000000
--- a/modules/home-manager/dev.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
-
- options.dev.enable = lib.mkEnableOption "Development tools";
- config = lib.mkIf config.dev.enable {
- zsh.enable = true;
- git.enable = true;
- gh.enable = true;
- #opencode.enable = true;
- vscode.enable = true;
- neovim.enable = true;
- tmux.enable = true;
- gpg.enable = true;
-
- home.packages = with pkgs; [
- zoxide
-
- fzf
- ffmpeg
- imagemagick
- gh
- ripgrep
-
- gcc
- maven
- cmake
- jdk
- go
- lua
- nodejs
- tailwindcss
-
- nerd-fonts.symbols-only
-
- jetbrains.idea-community
- opencode
- ];
- };
-}
diff --git a/modules/home-manager/dunst.nix b/modules/home-manager/dunst.nix
deleted file mode 100644
index da6b539..0000000
--- a/modules/home-manager/dunst.nix
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.dunst.enable = lib.mkEnableOption "Enable dunst notification";
- config = lib.mkIf config.dunst.enable {
- home.packages = with pkgs; [
- libnotify
- ];
-
- services.dunst = {
- enable = true;
- settings = {
- global = {
- font = "monospace 10";
- offset = "(15, 15)";
- frame_width = 0;
- };
- urgency_low = {
- foreground = "#FFFFFF";
- background = "#000000E6";
- };
-
- urgency_normal = {
- foreground = "#FFFFFF";
- background = "#000000E6";
- };
-
- urgency_critical = {
- foreground = "#FFFFFF";
- background = "#000000E6";
- };
- };
-
- };
- };
-}
diff --git a/modules/home-manager/firefox.nix b/modules/home-manager/firefox.nix
deleted file mode 100644
index 861394d..0000000
--- a/modules/home-manager/firefox.nix
+++ /dev/null
@@ -1,245 +0,0 @@
-{
- config,
- lib,
- pkgs,
- inputs,
- ...
-}:
-
-{
- options.firefox.enable = lib.mkEnableOption "Setup firefox";
- config = lib.mkIf config.firefox.enable {
- programs.firefox = {
- enable = true;
- profiles.default = {
- extensions = {
- packages = with inputs.firefox-addons.packages.${pkgs.system}; [
- ublock-origin
- istilldontcareaboutcookies
- sponsorblock
- decentraleyes
- vimium-c
- ];
-
- force = true;
-
- settings."uBlock0@raymondhill.net".settings = {
- UserMessaging = {
- uiTheme = "dark";
- uiAccentCustom = true;
- uiAccentCustom0 = "#2C2C2C";
- cloudStorageEnabled = false;
- contextMenuEnabled = false;
- };
- # Block annoying login with google banner
- userFilters = ''
- ||accounts.google.com/gsi/*
- '';
- };
- };
-
- search.engines = {
- nix-packages = {
- name = "Nix Packages";
- urls = [
- {
- template = "https://search.nixos.org/packages";
- params = [
- {
- name = "type";
- value = "packages";
- }
- {
- name = "query";
- value = "{searchTerms}";
- }
- ];
- }
- ];
-
- icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
- definedAliases = [ "@np" ];
- };
-
- nixos-wiki = {
- name = "NixOS Wiki";
- urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
- iconMapObj."16" = "https://wiki.nixos.org/favicon.ico";
- definedAliases = [ "@nw" ];
- };
-
- startpage = {
- name = "Startpage";
- urls = [
- {
- template = "https://www.startpage.com/sp/search?query={searchTerms}";
- }
- ];
- icon = "https://www.startpage.com/favicon.ico";
- definedAliases = [ "@s" ];
- };
-
- bing.metaData.hidden = true;
- google.metaData.alias = "@g";
- };
-
- search.default = "startpage";
-
- settings = {
- };
-
- userChrome = ''
- /* Hide Back, Forward, Reload, Stop, All Tabs, Firefox View buttons */
- #back-button,
- #forward-button,
- #reload-button,
- #stop-button,
- #alltabs-button,
- #firefox-view-button {
- display: none !important;
- }
-
- .titlebar-buttonbox-container {
- display: none;
- }
-
- #tabbrowser-tabs {
- border-inline: none !important;
- }
-
- /* Transparent background tabs (above url bar) */
- #navigator-toolbox {
- -moz-appearance: -moz-vibrant-titlebar !important;
- background: rgba(0, 0, 0, 0.8) !important;
- }
-
- /* Transparent background (behind url bar) */
- #nav-bar {
- background: none !important;
- box-shadow: none !important;
- border-top: 0px !important;
- }
-
- .tab-background[selected="true"] {
- background-color: #393e43 !important;
- background-image: none !important;
- }
-
- .tab-background {
- background-color: var(--background) !important;
- color: var(--foreground) !important;
- box-shadow: none !important;;
- }
-
- .tab-background[selected] {
- background-color: rgba(0, 0, 0, 0.30) !important;
- color: var(--foreground) !important;
- box-shadow: none !important;
- }
-
- /* Needed for transparency in general */
- :root {
- --tabpanel-background-color: transparent !important;
- --chrome-content-separator-color: transparent !important;
- --toolbar-bgcolor: rgba(0, 0, 0, 0.9) !important;
- --newtab-background-color: rgba(0, 0, 0, 0.9) !important;
- --newtab-background-color-secondary: transparent !important;
- --toolbar-field-background-color: rgba(120, 120, 120, 0.10) !important;
- }
- '';
- userContent = ''
- @-moz-document url-prefix("about:"), url("about:home") {
- /* Transparent about:settings about:config about:policies */
- :root {
- background: rgba(0, 0, 0, 0.0) !important;
- }
- }
-
- /* Transparent about:home */
- * {
- --newtab-background-color: transparent !important;
- --newtab-background-color-secondary: transparent !important;
- }
-
- /* Transparent elements in about:* */
- * {
- --in-content-page-background: transparent !important;
- --background-color-box: rgba(0, 0, 0, 0.5) !important;
- }
- '';
- };
-
- policies = {
- DisableTelemetry = true;
- DisableFirefoxStudies = true;
- #PasswordManagerEnabled = false;
- OfferToSaveLogins = false;
- DisablePocket = true;
- DisplayBookmarksToolbar = "never";
- NoDefaultBookmarks = true;
-
- EnableTrackingProtection = {
- Value = true;
- Locked = true;
- Cryptomining = true;
- Fingerprinting = true;
- };
-
- EncryptedMediaExtensions = {
- Enabled = true;
- Locked = true;
- };
-
- FirefoxHome = {
- Search = true;
- TopSites = true;
- SponsoredTopSites = false;
- Highlights = true;
- Pocket = false;
- SponsoredPocket = false;
- Snippets = false;
- Locked = true;
- };
-
- UserMessaging = {
- ExtensionRecommendations = false;
- FeatureRecommendations = false;
- Locked = true;
- MoreFromMozilla = false;
- SkipOnboarding = true;
- UrlbarInterventions = false;
- WhatsNew = false;
- };
-
- Preferences = {
- "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
- "browser.toolbars.bookmarks.visibility" = "never";
-
- # Disable fullscreen notification
- "full-screen-api.warning.timeout" = "0";
-
- # Disable annoying translation popup
- "browser.translations.automaticallyPopup" = false;
-
- # Enable all extensions automatically
- "extensions.autoDisableScopes" = 0;
-
- # Hide ctr-tab tab preview menu
- "browser.ctrlTab.sortByRecentlyUsed" = false;
-
- # Hide pip controls
- "media.videocontrols.picture-in-picture.video-toggle.enabled" = false;
-
- # Set homepage
- "browser.startup.homepage" = "about:blank";
- "browser.newtab.url" = "about:blank";
- "browser.newtabpage.enabled" = false;
-
- # transparency
- "browser.tabs.allow_transparent_browser" = true;
- "gfx.webrender.all" = true;
- };
- };
- };
- };
-}
diff --git a/modules/home-manager/foot.nix b/modules/home-manager/foot.nix
deleted file mode 100644
index 573af7f..0000000
--- a/modules/home-manager/foot.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.foot.enable = lib.mkEnableOption "Enable foot terminal";
- config = lib.mkIf config.foot.enable {
- home.packages = with pkgs; [
- nerd-fonts.space-mono
- ];
-
- programs.foot = {
- enable = true;
- settings = {
- main = {
- pad = "10x10";
- font = "SpaceMono Nerd Font Mono:size=10";
- line-height = 12;
- };
-
- cursor = {
- style = "underline";
- unfocused-style = "unchanged";
- blink = true;
- };
-
- colors = {
- alpha = 0.9;
- # Gruvbox Theme
- background = "000000";
- foreground = "ebdbb2";
-
- regular0 = "282828";
- regular1 = "cc241d";
- regular2 = "98971a";
- regular3 = "d79921";
- regular4 = "458588";
- regular5 = "b16286";
- regular6 = "689d6a";
- regular7 = "a89984";
-
- bright0 = "928374";
- bright1 = "fb4934";
- bright2 = "b8bb26";
- bright3 = "fabd2f";
- bright4 = "83a598";
- bright5 = "d3869b";
- bright6 = "8ec07c";
- bright7 = "ebdbb2";
- };
- };
- };
- };
-}
diff --git a/modules/home-manager/gh.nix b/modules/home-manager/gh.nix
deleted file mode 100644
index 0b0ad6b..0000000
--- a/modules/home-manager/gh.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{ config, lib, ... }:
-
-{
- options.gh.enable = lib.mkEnableOption "Setup gh";
- config = lib.mkIf config.gh.enable {
- programs.gh = {
- enable = true;
- };
- };
-}
diff --git a/modules/home-manager/git.nix b/modules/home-manager/git.nix
deleted file mode 100644
index 825ef7d..0000000
--- a/modules/home-manager/git.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.git.enable = lib.mkEnableOption "Enable git";
- config = lib.mkIf config.git.enable {
- programs.git = {
- enable = true;
- userName = "schererleander";
- userEmail = "leander@schererleander.de";
- aliases = {
- st = "status";
- co = "checkout";
- br = "branch";
- };
- signing = {
- key = "506793F115464BB4";
- signByDefault = true;
- };
- ignores = [
- "*~"
- ".DS_Store"
- ];
- diff-highlight.enable = true;
- extraConfig = {
- pull.rebase = true;
- url."git@github.com:".insteadOf = "https://github.com";
- };
- };
- };
-}
diff --git a/modules/home-manager/gnome-dconf.nix b/modules/home-manager/gnome-dconf.nix
deleted file mode 100644
index be2d0bd..0000000
--- a/modules/home-manager/gnome-dconf.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-
-{
- options.gnome-dconf.enable = lib.mkEnableOption "Enable gnome dconf settings";
- config = lib.mkIf config.gnome-dconf.enable {
- home.packages = with pkgs; [
- ];
- dconf = {
- settings = {
- "org/gnome/shell" = {
- enabled-extensions = [
- ];
- };
- "org/gnome/desktop/interface" = {
- color-scheme = "prefer-dark";
- };
- };
- };
- };
-}
diff --git a/modules/home-manager/gpg.nix b/modules/home-manager/gpg.nix
deleted file mode 100644
index 4c54efb..0000000
--- a/modules/home-manager/gpg.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-
-let
- pinentryPackage = if pkgs.stdenv.isDarwin then pkgs.pinentry_mac else pkgs.pinentry-curses;
- pinentryProgram = if pkgs.stdenv.isDarwin then "pinentry-mac" else "pinentry-curses";
-in
-{
- options.gpg.enable = lib.mkEnableOption "Setup gpg and agent";
- config = lib.mkIf config.gpg.enable {
- programs.gpg.enable = true;
- services.gpg-agent = {
- enable = true;
- pinentry.package = pinentryPackage;
- pinentry.program = pinentryProgram;
- };
- };
-}
diff --git a/modules/home-manager/hyprlock.nix b/modules/home-manager/hyprlock.nix
deleted file mode 100644
index 99810d2..0000000
--- a/modules/home-manager/hyprlock.nix
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- config,
- lib,
- username,
- ...
-}:
-
-{
- options.hyprlock.enable = lib.mkEnableOption "Hyprlock is a screen locker for Hyprland.";
- config = lib.mkIf config.hyprlock.enable {
- programs.hyprlock = {
- enable = true;
- settings = {
- general = {
- immediate_render = true;
- };
-
- background = [
- {
- monitor = "";
- path = "/etc/nixos/images/pond.jpg";
- }
- ];
-
- input-field = [
- {
- monitor = "";
- size = "300, 30";
- outline_thickness = 0;
- dots_size = 0.25;
- dots_spacing = 0.55;
- dots_center = true;
- dots_rounding = -1;
- outer_color = "rgba(242, 243, 244, 0)";
- inner_color = "rgba(242, 243, 244, 0)";
- font_color = "rgba(242, 243, 244, 0.75)";
- fade_on_empty = false;
- placeholder_text = "";
- hide_input = false;
- check_color = "rgba(204, 136, 34, 0)";
- fail_color = "rgba(204, 34, 34, 0)";
- fail_text = "$FAIL <b>($ATTEMPTS)</b>";
- fail_transition = 300;
- capslock_color = -1;
- numlock_color = -1;
- bothlock_color = -1;
- invert_numlock = false;
- swap_font_color = false;
- position = "0, -468";
- halign = "center";
- valign = "center";
- }
- ];
-
- label = [
- {
- monitor = "";
- text = ''cmd[update:1000] echo "$(date +"%A, %B %d")"'';
- color = "rgba(242, 243, 244, 0.75)";
- font_size = 20;
- position = "0, 405";
- halign = "center";
- valign = "center";
- }
- {
- monitor = "";
- text = ''cmd[update:1000] echo "$(date +"%k:%M")"'';
- color = "rgba(242, 243, 244, 0.75)";
- font_size = 93;
- position = "0, 310";
- halign = "center";
- valign = "center";
- }
- {
- monitor = "";
- text = "${username}";
- color = "rgba(242, 243, 244, 0.75)";
- font_size = 12;
- position = "0, -407";
- halign = "center";
- valign = "center";
- }
- {
- monitor = "";
- text = "Enter Password";
- color = "rgba(242, 243, 244, 0.75)";
- font_size = 10;
- position = "0, -438";
- halign = "center";
- valign = "center";
- }
- ];
-
- image = [
- {
- monitor = "";
- path = "/etc/nixos/images/pf.jpg";
- border_color = "0xffdddddd";
- border_size = 0;
- size = 73;
- rounding = -1;
- rotate = 0;
- reload_time = -1;
- reload_cmd = "";
- position = "0, -353";
- halign = "center";
- valign = "center";
- }
- ];
- };
- };
- };
-}
diff --git a/modules/home-manager/latex.nix b/modules/home-manager/latex.nix
deleted file mode 100644
index e479d78..0000000
--- a/modules/home-manager/latex.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-
-{
- options.latex.enable = lib.mkEnableOption "Setup latex";
- config = lib.mkIf config.latex.enable {
- programs.texlive = {
- enable = true;
- # See https://mynixos.com/search?q=texlivepackages.collection for more collections
- # and https://mynixos.com/search?q=texlivepackages for more individual packages.
- extraPackages = tpkgs: { inherit (tpkgs) collection-basic collection-latex collection-latexrecommended biblatex; };
- };
-
- home.packages = with pkgs; [
- biber
- ];
-
- programs.pandoc = {
- enable = true;
- defaults = {
- pdf-engine = "pdfetex";
- };
- };
- };
-}
diff --git a/modules/home-manager/neovim/default.nix b/modules/home-manager/neovim/default.nix
deleted file mode 100644
index 230d27e..0000000
--- a/modules/home-manager/neovim/default.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.neovim.enable = lib.mkEnableOption "Setup neovim";
- config = lib.mkIf config.neovim.enable {
- programs.neovim = {
- enable = true;
- package = pkgs.neovim;
- extraConfig = ''
- luafile ${./init.lua}
- '';
- };
- home.packages = with pkgs; [
- ripgrep
-
- # github pilot
- nodejs
-
- # language servers
- lua-language-server
- nixd
- pyright
- gopls
- java-language-server
- typescript-language-server
- rust-analyzer
- tailwindcss-language-server
-
- # formatter
- nixfmt-rfc-style
- luaformatter
- ];
- };
-}
diff --git a/modules/home-manager/neovim/init.lua b/modules/home-manager/neovim/init.lua
deleted file mode 100644
index 7d0d918..0000000
--- a/modules/home-manager/neovim/init.lua
+++ /dev/null
@@ -1,217 +0,0 @@
--- General settings
-vim.g.mapleader = " "
-vim.o.number = true
-vim.o.relativenumber = true
-vim.o.signcolumn = "yes"
-vim.o.termguicolors = true
-vim.o.wrap = false
-vim.o.tabstop = 2
-vim.o.shiftwidth = 2
-vim.o.updatetime = 250
-vim.o.timeoutlen = 300
-vim.o.swapfile = false
-vim.o.ignorecase = true
-vim.o.smartcase = true
-vim.o.winborder = "rounded"
-vim.o.clipboard = "unnamedplus"
-
-local map = vim.keymap.set
-map('n', '<leader>o', '<CMD>update<BAR>source %<CR>', { desc = 'Save & reload init.lua' })
-map('n', '<leader>w', '<CMD>write<CR>')
-map('n', '<leader>q', '<CMD>quit<CR>')
-map('n', '<leader>lf', vim.lsp.buf.format)
-
-vim.pack.add({
- { src = "https://github.com/ellisonleao/gruvbox.nvim" },
- { src = "https://github.com/echasnovski/mini.starter" },
- { src = "https://github.com/lewis6991/gitsigns.nvim" },
- { src = "https://github.com/windwp/nvim-autopairs" },
- { src = "https://github.com/zbirenbaum/copilot.lua" },
- { src = "https://github.com/zbirenbaum/copilot-cmp" },
- { src = "https://github.com/nvim-telescope/telescope.nvim" },
- { src = "https://github.com/j-hui/fidget.nvim" },
- { src = "https://github.com/nvim-lua/plenary.nvim" },
- { src = "https://github.com/nvim-treesitter/nvim-treesitter" },
- { src = "https://github.com/neovim/nvim-lspconfig" },
- { src = "https://github.com/hrsh7th/nvim-cmp" },
- { src = "https://github.com/hrsh7th/cmp-nvim-lsp" },
- { src = "https://github.com/hrsh7th/cmp-buffer" },
- { src = "https://github.com/hrsh7th/cmp-path" },
- { src = "https://github.com/hrsh7th/cmp-cmdline" },
- { src = "https://github.com/L3MON4D3/LuaSnip" },
- { src = "https://github.com/saadparwaiz1/cmp_luasnip" },
- { src = "https://github.com/onsails/lspkind-nvim" }
-})
-
-require("nvim-treesitter.configs").setup({
- ensure_installed = { "lua", "nix" },
- highlight = { enable = true },
-})
-
-local builtin = require('telescope.builtin')
-map('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
-map('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live grep' })
-map('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
-map('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
-
-
-local cmp = require("cmp")
-cmp.setup({
- snippet = {
- expand = function(args)
- require('luasnip').lsp_expand(args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-b>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<C-e>'] = cmp.mapping.abort(),
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
- ['<Tab>'] = cmp.mapping(function(fallback)
- local copilot = require('copilot.suggestion')
- if copilot.is_visible() then
- copilot.accept()
- elseif cmp.visible() then
- cmp.select_next_item()
- else
- fallback()
- end
- end, { 'i', 's' }),
- ['<S-Tab>'] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_prev_item()
- else
- fallback()
- end
- end, { 'i', 's' }),
- }),
- sources = cmp.config.sources({
- { name = 'copilot' },
- { name = 'nvim_lsp' },
- { name = 'luasnip' },
- }, {
- { name = 'buffer' },
- })
-})
-
--- Add parentheses after selecting function or method
-local cmp_autopairs = require('nvim-autopairs.completion.cmp')
-cmp.event:on(
- 'confirm_done',
- cmp_autopairs.on_confirm_done()
-)
-
-local capabilities = require('cmp_nvim_lsp').default_capabilities()
-
-require("lspconfig").nixd.setup({
- capabilities = capabilities,
- settings = {
- nixd = {
- formatting = {
- command = { "nixfmt" },
- },
- },
- },
-})
-
-require("lspconfig").lua_ls.setup({
- capabilities = capabilities,
- settings = {
- lua_ls = {
- formatting = {
- command = { "luaformatter" },
- },
- },
- Lua = {
- runtime = {
- version = 'LuaJIT',
- },
- diagnostics = {
- globals = {
- 'vim', 'require'
- },
- },
- workspace = {
- library = vim.api.nvim_get_runtime_file("", true),
- },
- telemetry = {
- enable = false,
- },
- },
- },
-})
-
-require("lspconfig").pyright.setup({
- capabilities = capabilities,
-})
-
-require("lspconfig").ts_ls.setup({
- capabilities = capabilities,
-})
-
-require("lspconfig").tailwindcss.setup({
- capabilities = capabilities,
-})
-
-require("lspconfig").gopls.setup({
- capabilities = capabilities,
- settings = {
- gopls = {
- analyses = {
- unusedparams = true,
- unusedwrite = true,
- },
- staticcheck = true,
- },
- },
-})
-
-require("lspconfig").rust_analyzer.setup({
- capabilities = capabilities,
-})
-
-vim.diagnostic.config({
- virtual_text = { source = "if_many" },
- underline = true,
- severity_sort = true,
-})
-
-
-require("mini.starter").setup({
- header = table.concat({
- " /l、 ",
- "(゚、 。 7 ",
- " l ~ ヽ ",
- " じしf_,)ノ ",
- }, "\n"),
- footer = "",
- content_hooks = {
- require("mini.starter").gen_hook.adding_bullet("» "),
- require("mini.starter").gen_hook.aligning("center", "center"),
- },
-})
-
-
-require("gitsigns").setup()
-require("nvim-autopairs").setup()
-require("fidget").setup()
-require("copilot").setup({
- suggestion = { enabled = false },
- panel = { enabled = false },
-})
-require("copilot_cmp").setup()
-
-vim.cmd("colorscheme gruvbox")
-
-local hl = vim.api.nvim_set_hl
-hl(0, 'Normal', { bg = 'none' })
-hl(0, 'NormalFloat', { bg = 'none' })
-hl(0, 'NormalNC', { bg = 'none' })
-hl(0, 'StatusLine', { bg = 'none' })
-hl(0, 'SignColumn', { bg = 'none' })
-hl(0, "DiagnosticError", { bg = "none" })
-hl(0, "DiagnosticSignError", { bg = "none" })
-hl(0, "DiagnosticSignHint", { bg = "none" })
-hl(0, "DiagnosticSignInfo", { bg = "none" })
-hl(0, "DiagnosticSignWarn", { bg = "none" })
diff --git a/modules/home-manager/nixcord.nix b/modules/home-manager/nixcord.nix
deleted file mode 100644
index 3655d17..0000000
--- a/modules/home-manager/nixcord.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.nixcord.enable = lib.mkEnableOption "Enable nixcord and setup";
- config = lib.mkIf config.nixcord.enable {
- programs.nixcord = {
- enable = true;
- config = {
- themeLinks = [
- "https://refact0r.github.io/system24/theme/system24.theme.css"
- ];
- frameless = true;
- plugins = {
- alwaysAnimate.enable = false;
- imageLink.enable = true;
- imageZoom.enable = true;
- translate.enable = true;
- };
- };
- };
- };
-}
diff --git a/modules/home-manager/opencode.nix b/modules/home-manager/opencode.nix
deleted file mode 100644
index 961d9a7..0000000
--- a/modules/home-manager/opencode.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.opencode.enable = lib.mkEnableOption "Setup opencode";
- config = lib.mkIf config.opencode.enable {
- programs.opencode = {
- enable = true;
- settings = {
- theme = "system";
- share = "disabled";
- autoUpdate = true;
- };
- };
- };
-}
diff --git a/modules/home-manager/spicetify.nix b/modules/home-manager/spicetify.nix
deleted file mode 100644
index 41ccb1e..0000000
--- a/modules/home-manager/spicetify.nix
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- config,
- lib,
- pkgs,
- inputs,
- ...
-}:
-
-let
- spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system};
-in
-{
- options.spicetify.enable = lib.mkEnableOption "Enable Spicetify integration";
- config = lib.mkIf config.spicetify.enable {
- programs.spicetify = {
- enable = true;
- enabledSnippets = with spicePkgs.snippets; [
- pointer
- sonicDancing
- modernScrollbar
- nyanCatProgressBar
- declutterNowPlayingBar
- ];
-
- enabledExtensions = with spicePkgs.extensions; [
- keyboardShortcut
- ];
-
- theme = spicePkgs.themes.sleek;
- colorScheme = "Coral";
- };
- };
-}
diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix
deleted file mode 100644
index a86ad67..0000000
--- a/modules/home-manager/sway.nix
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-let
- mod = config.wayland.windowManager.sway.config.modifier;
-in
-{
- options.sway.enable = lib.mkEnableOption "Enable sway and setup";
- config = lib.mkIf config.sway.enable {
- home.packages = with pkgs; [
- wmenu
- swaybg
- sway-contrib.grimshot
- wl-clipboard
- xdg-utils
- playerctl
- ];
-
- wayland.windowManager.sway = {
- enable = true;
- systemd.enable = true;
- config = {
- input = {
- "*" = {
- xkb_layout = "de";
- };
- };
-
- output = {
- DP-1 = {
- resolution = "1920x1080@240Hz";
- bg = "/etc/nixos/images/pond.jpg fill";
- };
- };
-
- gaps = {
- inner = 15;
- };
-
- window = {
- titlebar = false;
- border = 0;
- };
-
- modifier = "Mod4";
-
- keybindings = lib.mkOptionDefault {
- "${mod}+q" = "kill";
- "${mod}+Shift+s" = "exec grimshot savecopy area";
- "XF86AudioPlay" = "exec playerctl play-pause";
- "XF86AudioPrev" = "exec playerctl previous";
- "XF86AudioNext" = "exec playerctl next";
- "XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_DEVICE@ +5%";
- "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_DEVICE@ -5%";
- "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_DEVICE@ toggle";
- };
-
- menu = "${pkgs.wmenu}/bin/wmenu-run -b -N 000000E6";
- terminal = "${pkgs.foot}/bin/foot";
- defaultWorkspace = "workspace number 1";
-
- bars = [
- {
- "command" = "${pkgs.waybar}/bin/waybar";
- }
- ];
- };
- checkConfig = false;
- wrapperFeatures.base = true;
- wrapperFeatures.gtk = true;
- };
-
- home.sessionVariables = {
- XDG_CURRENT_DESKTOP = "sway";
- XDG_SCREENSHOTS_DIR = "~/Pictures/Screenshots/";
- };
-
- gtk = {
- enable = true;
- theme = {
- name = "Adwaita-dark";
- package = pkgs.gnome-themes-extra;
- };
- gtk3.extraConfig = {
- Settings = ''
- gtk-application-prefer-dark-theme=1
- '';
- };
- gtk4.extraConfig = {
- Settings = ''
- gtk-application-prefer-dark-theme=1
- '';
- };
- };
-
- home.pointerCursor = {
- gtk.enable = true;
- name = "Adwaita";
- package = pkgs.adwaita-icon-theme;
- size = 24;
- };
- };
-}
diff --git a/modules/home-manager/swayidle.nix b/modules/home-manager/swayidle.nix
deleted file mode 100644
index 33cd495..0000000
--- a/modules/home-manager/swayidle.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.swayidle.enable = lib.mkEnableOption "Enable swayidle configuration";
- config = lib.mkIf config.swayidle.enable {
- services.swayidle = {
- enable = true;
- timeouts = [
- {
- timout = "600";
- command = "${pkgs.sway}/bin/swaymsg output * dpms off";
- }
- {
- timout = "900";
- command = "${pkgs.systemd}/bin/systemctl suspend";
- }
- ];
- events = [
- { event = "resume"; command = "${pkgs.sway}/bin/swaymsg output * dpms on"; }
- { event = "before-sleep"; command = "${pkgs.hyprlock}/bin/hyprlock"; }
- ];
- };
- };
-}
diff --git a/modules/home-manager/tmux.nix b/modules/home-manager/tmux.nix
deleted file mode 100644
index 7b3a23d..0000000
--- a/modules/home-manager/tmux.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.tmux.enable = lib.mkEnableOption "Enable and configure Tmux";
- config = lib.mkIf config.tmux.enable {
- programs.tmux = {
- enable = true;
- extraConfig = ''
- set -g default-terminal "xterm-256color"
-
- unbind C-b
- set-option -g prefix C-a
- bind-key C-a send-prefix
- bind -n M-Left select-pane -L
- bind -n M-Right select-pane -R
- bind -n M-Up select-pane -U
- bind -n M-Down select-pane -D
-
- # style
- set -g status-position top
- set -g status-justify absolute-centre
- set -g status-style 'fg=color7 bg=default'
- set -g status-right ""
- # set -g status-right ' #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'
- # set -g status-right ""
- set -g status-left '#S'
- set -g status-left-style 'fg=color8'
- set -g status-right-length 0
- set -g status-left-length 100
- setw -g window-status-current-style 'fg=colour6 bg=default bold'
- setw -g window-status-current-format '#I:#W '
- setw -g window-status-style 'fg=color8'
-
- set -g mouse on
- '';
- };
- };
-}
diff --git a/modules/home-manager/typst.nix b/modules/home-manager/typst.nix
deleted file mode 100644
index c06211b..0000000
--- a/modules/home-manager/typst.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-
-{
- options.typst.enable = lib.mkEnableOption "Setup typst";
- config = lib.mkIf config.typst.enable {
- home.packages = with pkgs; [
- typst
- typst-fmt
- ];
- };
-}
diff --git a/modules/home-manager/vscode.nix b/modules/home-manager/vscode.nix
deleted file mode 100644
index b9b0beb..0000000
--- a/modules/home-manager/vscode.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.vscode.enable = lib.mkEnableOption "Enable vscode and setup";
- config = lib.mkIf config.vscode.enable {
- programs.vscode = {
- enable = true;
- mutableExtensionsDir = false;
- profiles.default = {
- enableUpdateCheck = true;
- enableExtensionUpdateCheck = true;
-
- userSettings = {
- "update.mode" = "none";
- "workbench.colorTheme" = "Minimal";
- "editor.fontFamily" = "monospace";
- "editor.tabSize" = 2;
- "editor.minimap.enabled" = false;
- "terminal.integrated.cursorStyle" = "underline";
- "terminal.integrated.cursorStyleInactive" = "underline";
- "terminal.integrated.fontFamily" = "monospace";
- "terminal.integrated.fontSize" = 13;
- "git.autofetch" = true;
- "window.controlsStyle" = "custom";
- };
-
- extensions = (
- with pkgs.vscode-extensions;
- [
- ms-vscode.cmake-tools
- ms-azuretools.vscode-docker
- github.copilot
- ms-python.python
- golang.go
- rust-lang.rust-analyzer
- vscjava.vscode-maven
- sumneko.lua
- #fwcd.kotlin
- bradlc.vscode-tailwindcss
- adpyke.codesnap
- esbenp.prettier-vscode
- ]
- ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
- {
- name = "minimalist-dark";
- publisher = "nichabosh";
- version = "1.0.0";
- sha256 = "sha256-lw+Scfada6DycLdRT2Cz+Fd12JucglIrw3uRd2ZhabQ=";
- }
- ]
- );
- };
- };
- };
-}
diff --git a/modules/home-manager/waybar.nix b/modules/home-manager/waybar.nix
deleted file mode 100644
index c001874..0000000
--- a/modules/home-manager/waybar.nix
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.waybar.enable = lib.mkEnableOption "Enable and configure Waybar";
- config = lib.mkIf config.waybar.enable {
- programs.waybar = {
- enable = true;
- settings = {
- mainBar = {
- height = 32;
- layer = "top";
- position = "bottom";
- modules-center = [ "mpris" ];
- modules-left = [ "sway/workspaces" ];
- modules-right = [
- "group/expand"
- "battery"
- "pulseaudio"
- "network"
- "bluetooth"
- "clock"
- ];
-
- "group/expand" = {
- orientation = "horizontal";
- drawer = {
- transition-duration = 600;
- transition-to-left = true;
- click-to-reveal = true;
- };
- modules = [
- "custom/expand"
- "tray"
- "privacy"
- "cpu"
- "memory"
- "temperature"
- ];
- };
-
- "custom/expand" = {
- format = "";
- tooltip = false;
- };
-
- mpris = {
- format = "{title}";
- tooltip-format = "{artist} - {album}";
- };
-
- tray = {
- spacing = 10;
- };
-
- privacy = {
- icon-size = 16;
- };
-
- cpu = {
- format = "󰻠";
- tooltip = true;
- };
-
- memory = {
- format = "";
- };
-
- temperature = {
- critical-threshold = 80;
- format = "";
- };
-
- network = {
- format-disconnect = "󰌙";
- format-ethernet = "󰌘";
- format-wifi = "{icon}";
- format-icons = [
- "󰤟"
- "󰤢"
- "󰤥"
- "󰤨"
- ];
-
- tooltip-format-wifi = "{essid} | {signalStrength}%";
- tooltip-format-ethernet = "{ifname}";
- };
-
- bluetooth = {
- format = " {status}";
- format-disabled = "";
- format-no-controller = "";
- format-connected = " {device_alias}";
- tooltip = false;
- };
-
- clock = {
- format-alt = "{:%Y-%m-%d}";
- tooltip-format = "{:%Y-%m-%d | %H:%M}";
- };
-
- pulseaudio = {
- format = "{icon}";
- format-icons = {
- default = [
- ""
- ""
- ""
- ];
- };
- tooltip-format = "{desc} | {volume}%";
- };
- };
- };
-
- style = ''
- * {
- border: none;
- border-radius: 0;
- font-family: monospace;
- font-size: 12px;
- }
-
- window#waybar {
- background: rgba(0, 0, 0, 0.9);
- }
-
- #workspaces button {
- padding-left: 5px;
- padding-right: 5px;
- }
-
- #workspaces button.focused {
- font-weight: bold;
- }
-
- #clock, #pulseaudio, #tray, #network, #battery, #bluetooth, #cpu, #memory, #temperature, #custom-expand, #group-expand {
- padding-left: 10px;
- padding-right: 10px;
- }
- '';
- };
- };
-}
diff --git a/modules/home-manager/zathura.nix b/modules/home-manager/zathura.nix
deleted file mode 100644
index c8605d0..0000000
--- a/modules/home-manager/zathura.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- config,
- lib,
- ...
-}:
-
-{
- options.zathura.enable = lib.mkEnableOption "Enable zathura and setup";
- config = lib.mkIf config.zathura.enable {
- programs.zathura = {
- enable = true;
- options = {
- recolor-lightcolor = "rgba(0, 0, 0, 0)";
- recolor-darkcolor = "rgba(255, 255, 255, 1)";
- recolor = true;
- adjust-open = "width";
- guioptions = "none";
- zoom-center = true;
- page-padding = 0;
- pages-per-row = 1;
- scroll-page-aware = true;
- };
-
- mappings = {
- i = "recolor";
- j = "navigate previous";
- k = "navigate next";
- };
- };
- };
-}
diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix
deleted file mode 100644
index 2e27a9e..0000000
--- a/modules/home-manager/zsh.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-{ config, lib, ... }:
-
-{
- options.zsh.enable = lib.mkEnableOption "Configure zsh";
- config = lib.mkIf config.zsh.enable {
- programs.zsh = {
- enable = true;
- enableCompletion = true;
- autosuggestion.enable = true;
- syntaxHighlighting.enable = true;
-
- initContent = ''
- # view man pages with nvim
- export MANPAGER="nvim +Man!"
-
- # Directory completion with trailing slash
- zstyle ':completion:*' list-dirs-first true
- zstyle ':completion:*' special-dirs true
- zstyle ':completion:*' squeeze-slashes true
- zstyle ':completion:*' add-space false
-
- # Case-insensitive completion
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
-
- # vim keybindings
- bindkey -v
-
- # imagemagick wrapper function to remove background
- remove_bg() {
- if [[ $# -lt 2 ]]; then
- echo 'Usage: remove_bg <input_file> <fuzz_percentage> [transparent_color] [output_file]'
- return 1
- fi
-
- local input_file=$1
- local fuzz=$2
- local transparent_color=$3
- local output_file=$4
-
- magick "$input_file" \
- -fuzz $fuzz -transparent "$transparent_color" \
- -alpha on -channel A -blur 0x2 -level 5%,100% +channel \
- "$output_file"
-
- echo "Saved transparent image to: $output_file"
- }
-
- eval "$(zoxide init zsh)"
- '';
-
- shellAliases = {
- ls = "ls --color=auto";
- nixceck = "nix flake check --all-systems";
- };
-
- zplug = {
- enable = true;
- plugins = [
- { name = "mafredri/zsh-async"; }
- { name = "sindresorhus/pure"; tags = [ "as:theme" "use:pure.zsh" ]; }
- { name = "zdharma-continuum/fast-syntax-highlighting"; }
- { name = "zsh-users/zsh-autosuggestions"; }
- ];
- };
- };
- };
-}