From 761525421dcd96f9ad6c720fbe5fdddf61747156 Mon Sep 17 00:00:00 2001 From: th3r00t Date: Sun, 24 Aug 2025 11:38:11 -0400 Subject: [PATCH] Refactored home and hardware files, and added new plugins to neovim. --- flake.lock | 17 +++++ flake.nix | 17 +++-- home-server.nix | 2 +- home-xps13.nix | 8 +-- .../dosbox-x/dosbox-x-2025.05.03.conf | 0 home/{config => .config}/nvim/init.lua | 68 ++++++++++++------- home/{config => .config}/nvim/lazy-lock.json | 0 .../{config => .config}/nvim/lua/autocmds.lua | 0 .../nvim/lua/completion.lua | 0 .../nvim/lua/diagnostics.lua | 0 .../nvim/lua/functions.lua | 0 home/{config => .config}/nvim/lua/keymaps.lua | 35 ++++++++-- home/{config => .config}/nvim/lua/lsp.lua | 0 home/{config => .config}/nvim/lua/options.lua | 4 +- home/{config => .config}/nvim/lua/plugins.lua | 40 ++++++++--- .../nvim/lua/telescope_configuration.lua | 32 +++++++++ .../{config => .config}/nvim/lua/terminal.lua | 0 .../nvim/lua/treesitter.lua | 0 .../nvim/lua/utils/reload.lua | 0 .../nvim/lua/utils/t3_functions.lua | 0 .../nvim/lua/utils/t3_overrides.lua | 0 home/{config => .config}/nvim/lua/vimwiki.lua | 0 .../qutebrowser/blocked-hosts | 0 .../{config => .config}/waybar/power_menu.xml | 0 .../configuration-server.nix | 4 +- .../configuration-xps13.nix | 37 +--------- .../hardware-configuration-xps13.nix | 0 .../hardware-configuration.nix | 0 modules/hyprland.nix | 6 +- 29 files changed, 180 insertions(+), 90 deletions(-) rename home/{config => .config}/dosbox-x/dosbox-x-2025.05.03.conf (100%) rename home/{config => .config}/nvim/init.lua (63%) rename home/{config => .config}/nvim/lazy-lock.json (100%) rename home/{config => .config}/nvim/lua/autocmds.lua (100%) rename home/{config => .config}/nvim/lua/completion.lua (100%) rename home/{config => .config}/nvim/lua/diagnostics.lua (100%) rename home/{config => .config}/nvim/lua/functions.lua (100%) rename home/{config => .config}/nvim/lua/keymaps.lua (69%) rename home/{config => .config}/nvim/lua/lsp.lua (100%) rename home/{config => .config}/nvim/lua/options.lua (96%) rename home/{config => .config}/nvim/lua/plugins.lua (79%) create mode 100644 home/.config/nvim/lua/telescope_configuration.lua rename home/{config => .config}/nvim/lua/terminal.lua (100%) rename home/{config => .config}/nvim/lua/treesitter.lua (100%) rename home/{config => .config}/nvim/lua/utils/reload.lua (100%) rename home/{config => .config}/nvim/lua/utils/t3_functions.lua (100%) rename home/{config => .config}/nvim/lua/utils/t3_overrides.lua (100%) rename home/{config => .config}/nvim/lua/vimwiki.lua (100%) rename home/{config => .config}/qutebrowser/blocked-hosts (100%) rename home/{config => .config}/waybar/power_menu.xml (100%) rename configuration-server.nix => modules/configuration-server.nix (97%) rename configuration.nix => modules/configuration-xps13.nix (78%) rename xps13-hardware-configuration.nix => modules/hardware-configuration-xps13.nix (100%) rename hardware-configuration.nix => modules/hardware-configuration.nix (100%) diff --git a/flake.lock b/flake.lock index d807743..ba21627 100644 --- a/flake.lock +++ b/flake.lock @@ -240,6 +240,22 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1755330281, + "narHash": "sha256-aJHFJWP9AuI8jUGzI77LYcSlkA9wJnOIg4ZqftwNGXA=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "3dac8a872557e0ca8c083cdcfc2f218d18e113b0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1752596105, @@ -294,6 +310,7 @@ "home-manager": "home-manager", "neovim-nightly-overlay": "neovim-nightly-overlay", "nix-index-database": "nix-index-database", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", "sops-nix": "sops-nix" } diff --git a/flake.nix b/flake.nix index bb22487..23feb7d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,8 +13,13 @@ disko.url = "github:nix-community/disko"; sops-nix.url = "github:Mic92/sops-nix"; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + }; - outputs = { self, nixpkgs, home-manager, nix-index-database, sops-nix, disko, ... }@inputs: + outputs = { + self, nixpkgs, home-manager, nix-index-database, sops-nix, disko, + nixos-hardware, ... + }@inputs: let overlays = [ inputs.neovim-nightly-overlay.overlays.default @@ -35,8 +40,9 @@ modules = [ { nixpkgs.overlays = overlays; } sops-nix.nixosModules.sops - ./configuration.nix - ./xps13-hardware-configuration.nix + ./modules/configuration-xps13.nix + ./modules/hardware-configuration-xps13.nix + nixos-hardware.nixosModules.dell-xps-13-9370 home-manager.nixosModules.home-manager { # home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; @@ -47,7 +53,6 @@ nix-index-database.homeModules.nix-index ]; }; - # home-manager.users.th3r00t = import ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix } ]; @@ -59,8 +64,8 @@ { nixpkgs.overlays = overlays; } disko.nixosModules.disko sops-nix.nixosModules.sops - ./hardware-configuration.nix - ./configuration-server.nix + ./modules/hardware-configuration.nix + ./modules/configuration-server.nix home-manager.nixosModules.home-manager { # home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; diff --git a/home-server.nix b/home-server.nix index 979fbc6..a7ad51a 100644 --- a/home-server.nix +++ b/home-server.nix @@ -13,7 +13,7 @@ executable = true; }; home.file.".config/nvim" = { - source = ./home/config/nvim; + source = ./home/.config/nvim; recursive = true; executable = true; }; diff --git a/home-xps13.nix b/home-xps13.nix index 33b2152..958d85a 100644 --- a/home-xps13.nix +++ b/home-xps13.nix @@ -13,7 +13,7 @@ executable = true; }; home.file.".config/nvim" = { - source = ./home/config/nvim; + source = ./home/.config/nvim; recursive = true; executable = true; }; @@ -23,17 +23,17 @@ executable = true; }; home.file.".config/dosbox-x" = { - source = ./home/config/dosbox-x; + source = ./home/.config/dosbox-x; recursive = true; executable = true; }; home.file.".config/waybar/power_menu.xml" = { - source = ./home/config/waybar/power_menu.xml; + source = ./home/.config/waybar/power_menu.xml; recursive = true; executable = true; }; home.file.".config/qutebrowser/blocked-hosts" = { - source = ./home/config/qutebrowser/blocked-hosts; + source = ./home/.config/qutebrowser/blocked-hosts; recursive = true; executable = true; }; diff --git a/home/config/dosbox-x/dosbox-x-2025.05.03.conf b/home/.config/dosbox-x/dosbox-x-2025.05.03.conf similarity index 100% rename from home/config/dosbox-x/dosbox-x-2025.05.03.conf rename to home/.config/dosbox-x/dosbox-x-2025.05.03.conf diff --git a/home/config/nvim/init.lua b/home/.config/nvim/init.lua similarity index 63% rename from home/config/nvim/init.lua rename to home/.config/nvim/init.lua index 297c98b..49640f9 100644 --- a/home/config/nvim/init.lua +++ b/home/.config/nvim/init.lua @@ -1,30 +1,48 @@ local vim = vim -require("options") -- ~/.nixos/home/config/nvim/lua/options.lua -require("plugins") -- ~/.nixos/home/config/nvim/lua/plugins.lua -require("utils.t3_functions") -- ~/.nixos/home/config/nvim/lua/utils/t3_functions.lua -require("utils.t3_overrides") -- ~/.nixos/home/config/nvim/lua/utils/t3_overrides.lua -require("utils.reload") -- ~/.nixos/home/config/nvim/lua/utils/reload.lua -require("vimwiki") -- ~/.nixos/home/config/nvim/lua/vimwiki.lua -require("keymaps") -- ~/.nixos/home/config/nvim/lua/keymaps.lua -require("lsp") -- ~/.nixos/home/config/nvim/lua/lsp.lua -require("completion") -- ~/.nixos/home/config/nvim/lua/completion.lua -require("treesitter") -- ~/.nixos/home/config/nvim/lua/treesitter.lua -require("autocmds") -- ~/.nixos/home/config/nvim/lua/autocmds.lua -require("diagnostics") -- ~/.nixos/home/config/nvim/lua/diagnostics.lua +local host = vim.loop.os_gethostname() +require("options") -- /etc/nixos/home/.config/nvim/lua/options.lua +require("plugins") -- /etc/nixos/home/.config/nvim/lua/plugins.lua +require("utils.t3_functions") -- /etc/nixos/home/.config/nvim/lua/utils/t3_functions.lua +require("utils.t3_overrides") -- /etc/nixos/home/.config/nvim/lua/utils/t3_overrides.lua +require("utils.reload") -- /etc/nixos/home/.config/nvim/lua/utils/reload.lua +require("vimwiki") -- /etc/nixos/home/.config/nvim/lua/vimwiki.lua +require("keymaps") -- /etc/nixos/home/.config/nvim/lua/keymaps.lua +require("lsp") -- /etc/nixos/home/.config/nvim/lua/lsp.lua +require("completion") -- /etc/nixos/home/.config/nvim/lua/completion.lua +require("treesitter") -- /etc/nixos/home/.config/nvim/lua/treesitter.lua +require("autocmds") -- /etc/nixos/home/.config/nvim/lua/autocmds.lua +require("diagnostics") -- /etc/nixos/home/.config/nvim/lua/diagnostics.lua +require('telescope_configuration') -- /etc/nixos/home/.config/nvim/lua/telescope_configuration.lua -require('tokyonight').setup({ - style = "moon", -- "storm", "moon", "day", "night" - transparent = true, -- Enable transparent background - terminal_colors = true, -- Enable terminal colors - styles = { - comments = { italic = true }, -- Italic comments - keywords = { italic = true }, -- Italic keywords - functions = { bold = true }, -- Bold functions - variables = {}, -- No special style for variables - sidebars = "dark", -- Dark sidebars - floats = "dark", -- Dark floating windows - }, -}) +if host == "xps13" then + require('tokyonight').setup({ + style = "moon", -- "storm", "moon", "day", "night" + transparent = true, -- Enable transparent background + terminal_colors = true, -- Enable terminal colors + styles = { + comments = { italic = true }, -- Italic comments + keywords = { italic = true }, -- Italic keywords + functions = { bold = true }, -- Bold functions + variables = {}, -- No special style for variables + sidebars = "dark", -- Dark sidebars + floats = "dark", -- Dark floating windows + }, + }) +elseif host == "Titan" then + require('tokyonight').setup({ + style = "storm", -- "storm", "moon", "day", "night" + transparent = false, -- Enable transparent background + terminal_colors = true, -- Enable terminal colors + styles = { + comments = { italic = true }, -- Italic comments + keywords = { italic = true }, -- Italic keywords + functions = { bold = true }, -- Bold functions + variables = {}, -- No special style for variables + sidebars = "dark", -- Dark sidebars + floats = "dark", -- Dark floating windows + }, + }) +end local function is_linux_console() return vim.env.TERM == "linux" diff --git a/home/config/nvim/lazy-lock.json b/home/.config/nvim/lazy-lock.json similarity index 100% rename from home/config/nvim/lazy-lock.json rename to home/.config/nvim/lazy-lock.json diff --git a/home/config/nvim/lua/autocmds.lua b/home/.config/nvim/lua/autocmds.lua similarity index 100% rename from home/config/nvim/lua/autocmds.lua rename to home/.config/nvim/lua/autocmds.lua diff --git a/home/config/nvim/lua/completion.lua b/home/.config/nvim/lua/completion.lua similarity index 100% rename from home/config/nvim/lua/completion.lua rename to home/.config/nvim/lua/completion.lua diff --git a/home/config/nvim/lua/diagnostics.lua b/home/.config/nvim/lua/diagnostics.lua similarity index 100% rename from home/config/nvim/lua/diagnostics.lua rename to home/.config/nvim/lua/diagnostics.lua diff --git a/home/config/nvim/lua/functions.lua b/home/.config/nvim/lua/functions.lua similarity index 100% rename from home/config/nvim/lua/functions.lua rename to home/.config/nvim/lua/functions.lua diff --git a/home/config/nvim/lua/keymaps.lua b/home/.config/nvim/lua/keymaps.lua similarity index 69% rename from home/config/nvim/lua/keymaps.lua rename to home/.config/nvim/lua/keymaps.lua index 23c6758..5491e5e 100644 --- a/home/config/nvim/lua/keymaps.lua +++ b/home/.config/nvim/lua/keymaps.lua @@ -64,6 +64,33 @@ vim.keymap.set("n", "", "BufferGoto 8", { desc = "Go to Buffer 8" vim.keymap.set("n", "", "BufferGoto 9", { desc = "Go to Buffer 9" }) vim.keymap.set("n", "", "BufferLast", { desc = "Go to Last Buffer" }) +-- Meta X Maps +vim.keymap.set("n", "", ":Telescope commands", { desc = "Commands"}) +vim.keymap.set("n", "b", ":Telescope buffers", { desc = "Buffers"}) +vim.keymap.set("n", "f", ":Telescope find_files", { desc = "Find Files"}) +vim.keymap.set("n", "g", ":Telescope live_grep", { desc = "Live Grep"}) +vim.keymap.set("n", "h", ":Telescope help_tags", { desc = "Help Tags"}) +vim.keymap.set("n", "p", ":Telescope project", { desc = "Projects"}) +vim.keymap.set("n", "l", ":Telescope resume", { desc = "Resume Last Search"}) +vim.keymap.set("n", "c", ":Telescope colorscheme", { desc = "Colorschemes"}) +vim.keymap.set("n", "n", ":enew", { desc = "New File"}) +vim.keymap.set("n", "s", ":w", { desc = "Save File"}) +vim.keymap.set("n", "q", ":q", { desc = "Quit"}) +vim.keymap.set("n", "w", ":bd", { desc = "Close Buffer"}) +vim.keymap.set("n", "a", "ggVG", { desc = "Select All"}) +vim.keymap.set("n", "z", "u", { desc = "Undo"}) +vim.keymap.set("n", "y", "", { desc = "Redo"}) +vim.keymap.set("n", "/", ":nohlsearch", { desc = "Clear Search Highlight"}) +vim.keymap.set("n", "=", ":vertical resize +5", { desc = "Increase Window Width"}) +vim.keymap.set("n", "-"," :vertical resize -5", { desc = "Decrease Window Width"}) +vim.keymap.set("n", "+", ":resize +5", { desc = "Increase Window Height"}) +vim.keymap.set("n", "_", ":resize -5", { desc = "Decrease Window Height"}) +vim.keymap.set("n", "Left", ":vertical resize -5", { desc = "Decrease Window Width"}) +vim.keymap.set("n", "Right"," :vertical resize +5", { desc = "Increase Window Width"}) +vim.keymap.set("n", "Up", ":resize +5", { desc = "Increase Window Height"}) +vim.keymap.set("n", "Down", ":resize -5", { desc = "Decrease Window Height"}) +vim.keymap.set("n", "Enter", ":ToggleTerm", { desc = "Toggle Terminal"}) + -- CTRL X Maps vim.keymap.set("n", "", ":Pick buffers", { desc = "Buffer Picker"}) @@ -72,10 +99,6 @@ vim.keymap.set("n", "", ":Pick help", { desc = "Help Picker"}) vim.keymap.set("n", "", "", { desc = "Grep"}) vim.keymap.set("n", "g", ":Pick grep", { desc = "Grep"}) vim.keymap.set("n", "l", ":Pick grep_live", { desc = "Live Grep"}) -vim.keymap.set("v", "", ":'<,'>SnipRun", { silent = true, desc = "Run Selection" }) -vim.keymap.set("n", "", ":SnipRun", { desc = "Run Current Line" }) -vim.keymap.set("n", "", ":%SnipRun", { desc = "Run Buffer" }) -vim.keymap.set("n", "", "SnipReset", { desc = "Run Buffer" }) vim.keymap.set("n", "", "", { desc = "Notes"}) vim.keymap.set("n", "e", "TWEditTask", { desc = "TaskWarrior Edit", noremap = true, silent = true }) vim.keymap.set("n", "v", "TWView", { desc = "View Tasks", noremap = true, silent = true }) @@ -83,3 +106,7 @@ vim.keymap.set("n", "u", "TWUpdateCurrent", { desc="Update Ta vim.keymap.set("n", "s", "TWSyncTasks", { desc = "Sync Tasks", noremap = true, silent = true }) vim.keymap.set("n", "", "TWToggle", { desc = "Toggle Taskwarrior", silent = true }) +vim.keymap.set("v", "", ":'<,'>SnipRun", { silent = true, desc = "Run Selection" }) +vim.keymap.set("n", "", ":SnipRun", { desc = "Run Current Line" }) +vim.keymap.set("n", "", ":%SnipRun", { desc = "Run Buffer" }) +vim.keymap.set("n", "", "SnipReset", { desc = "Run Buffer" }) diff --git a/home/config/nvim/lua/lsp.lua b/home/.config/nvim/lua/lsp.lua similarity index 100% rename from home/config/nvim/lua/lsp.lua rename to home/.config/nvim/lua/lsp.lua diff --git a/home/config/nvim/lua/options.lua b/home/.config/nvim/lua/options.lua similarity index 96% rename from home/config/nvim/lua/options.lua rename to home/.config/nvim/lua/options.lua index 12f2517..3f92afa 100644 --- a/home/config/nvim/lua/options.lua +++ b/home/.config/nvim/lua/options.lua @@ -12,14 +12,14 @@ vim.o.wildmode = "longest:full,full" vim.o.wildoptions = "pum" vim.g.mapleader = " " vim.o.termguicolors = true -vim.o.winborder = "double" +vim.o.winborder = "shadow" vim.o.clipboard = "unnamedplus" vim.o.completeopt = "menuone" -- vim.o.completeopt = "menuone,noinsert,noselect" vim.o.cursorline = true vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" vim.g.netrw_keepdir = 1 -vim.g.netrw_winsize = 15 +vim.g.netrw_winsize = 20 vim.g.netrw_banner = 0 vim.g.netrw_localcopydircmd = 'cp -avr' vim.g.netrw_liststyle = 3 diff --git a/home/config/nvim/lua/plugins.lua b/home/.config/nvim/lua/plugins.lua similarity index 79% rename from home/config/nvim/lua/plugins.lua rename to home/.config/nvim/lua/plugins.lua index c33bee9..95c7646 100644 --- a/home/config/nvim/lua/plugins.lua +++ b/home/.config/nvim/lua/plugins.lua @@ -1,4 +1,6 @@ local vim = vim +local host = vim.loop.os_gethostname() + vim.pack.add({ { src = "https://github.com/folke/tokyonight.nvim" }, { src = "https://github.com/nvim-tree/nvim-web-devicons" }, @@ -25,9 +27,6 @@ vim.pack.add({ { src = "https://github.com/saadparwaiz1/cmp_luasnip" }, { src = "https://github.com/github/copilot.vim" }, { src = "https://github.com/pysan3/pathlib.nvim" }, - -- { src = "https://github.com/nvim-orgmode/orgmode" }, - -- { src = "https://github.com/chipsenkbeil/org-roam.nvim" }, - -- { src = "https://github.com/danilshvalov/org-modern.nvim" }, { src = "https://github.com/nvim-orgmode/org-bullets.nvim" }, { src = "https://github.com/lukas-reineke/headlines.nvim" }, { src = "https://github.com/michaelb/sniprun", run = "bash install.sh 1" }, @@ -49,8 +48,18 @@ vim.pack.add({ { src = "https://github.com/rmagatti/logger.nvim" }, { src = "https://github.com/rmagatti/goto-preview" }, { src = "https://github.com/norcalli/nvim-colorizer.lua" }, + { src = "https://github.com/nvim-lua/plenary.nvim" }, + { src = "https://github.com/nvim-telescope/telescope.nvim" }, + { src = "https://github.com/nvim-telescope/telescope-project.nvim"}, + { src = "https://github.com/nvim-telescope/telescope-ui-select.nvim" }, + { src = "https://github.com/luckasRanarison/nvim-devdocs" }, + { src = "https://github.com/folke/noice.nvim" }, + { src = "https://github.com/mbbill/undotree.git" }, }) +if host == "xps13" then +end + require('mini.icons').setup({}) require('mini.pick').setup({}) require('mini.pairs').setup({}) @@ -82,12 +91,6 @@ require('todo-comments').setup({ } }) require('trouble').setup({}) --- require('orgmode').setup({ --- org_agenda_files = { '~/org/*' }, --- org_default_notes_file = '~/org/notes.org', --- }) --- require('org-roam').setup({ directory = '~/org/roam' }) --- require("orgmode").setup({}) require('org-bullets').setup({}) require('headlines').setup({}) require('sniprun').setup({ @@ -114,3 +117,22 @@ require("auto-session").setup({ require('barbar').setup({}) require('goto-preview').setup({ default_mappings = true }) require('colorizer').setup({}) +require('telescope').setup({}) +require('nvim-devdocs').setup({}) +require('noice').setup({ + lsp = { + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp + }, + }, + presets = { + bottom_search = true, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = false, -- add a border to hover docs and signature help + }, +}) + diff --git a/home/.config/nvim/lua/telescope_configuration.lua b/home/.config/nvim/lua/telescope_configuration.lua new file mode 100644 index 0000000..309e139 --- /dev/null +++ b/home/.config/nvim/lua/telescope_configuration.lua @@ -0,0 +1,32 @@ +local vim = vim +local host = vim.loop.os_gethostname() + +require('telescope').load_extension('project') +require('telescope').load_extension('ui-select') + +require('telescope').setup{ + defaults = { + mappings = { + i = { + [""] = false, + [""] = false, + }, + }, + }, + pickers = { + -- Default configuration for builtin pickers goes here: + -- picker_name = { + -- picker_config_key = value, + -- ... + -- } + -- Now the picker_config_key will be applied every time you call this + -- builtin picker + }, + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown { + -- even more opts + } + }, + } +} diff --git a/home/config/nvim/lua/terminal.lua b/home/.config/nvim/lua/terminal.lua similarity index 100% rename from home/config/nvim/lua/terminal.lua rename to home/.config/nvim/lua/terminal.lua diff --git a/home/config/nvim/lua/treesitter.lua b/home/.config/nvim/lua/treesitter.lua similarity index 100% rename from home/config/nvim/lua/treesitter.lua rename to home/.config/nvim/lua/treesitter.lua diff --git a/home/config/nvim/lua/utils/reload.lua b/home/.config/nvim/lua/utils/reload.lua similarity index 100% rename from home/config/nvim/lua/utils/reload.lua rename to home/.config/nvim/lua/utils/reload.lua diff --git a/home/config/nvim/lua/utils/t3_functions.lua b/home/.config/nvim/lua/utils/t3_functions.lua similarity index 100% rename from home/config/nvim/lua/utils/t3_functions.lua rename to home/.config/nvim/lua/utils/t3_functions.lua diff --git a/home/config/nvim/lua/utils/t3_overrides.lua b/home/.config/nvim/lua/utils/t3_overrides.lua similarity index 100% rename from home/config/nvim/lua/utils/t3_overrides.lua rename to home/.config/nvim/lua/utils/t3_overrides.lua diff --git a/home/config/nvim/lua/vimwiki.lua b/home/.config/nvim/lua/vimwiki.lua similarity index 100% rename from home/config/nvim/lua/vimwiki.lua rename to home/.config/nvim/lua/vimwiki.lua diff --git a/home/config/qutebrowser/blocked-hosts b/home/.config/qutebrowser/blocked-hosts similarity index 100% rename from home/config/qutebrowser/blocked-hosts rename to home/.config/qutebrowser/blocked-hosts diff --git a/home/config/waybar/power_menu.xml b/home/.config/waybar/power_menu.xml similarity index 100% rename from home/config/waybar/power_menu.xml rename to home/.config/waybar/power_menu.xml diff --git a/configuration-server.nix b/modules/configuration-server.nix similarity index 97% rename from configuration-server.nix rename to modules/configuration-server.nix index a22c29c..4469404 100644 --- a/configuration-server.nix +++ b/modules/configuration-server.nix @@ -6,10 +6,10 @@ { imports = - [ # Include the results of the hardware scan. + [ ./hardware-configuration.nix ./server-partitioning.nix - ./modules/configuration-common.nix + ./configuration-common.nix ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.trusted-users = [ "root" "th3r00t" ]; diff --git a/configuration.nix b/modules/configuration-xps13.nix similarity index 78% rename from configuration.nix rename to modules/configuration-xps13.nix index fc2b9fa..1dd7f02 100644 --- a/configuration.nix +++ b/modules/configuration-xps13.nix @@ -6,12 +6,9 @@ { imports = - [ # Include the results of the hardware scan. - ./xps13-hardware-configuration.nix - ./modules/configuration-common.nix - # ./modules/shares.nix - # ./modules/sops.nix - ./modules/laptop.nix + [ + ./configuration-common.nix + ./laptop.nix ]; # Bootloader. boot = { @@ -31,27 +28,10 @@ ''; }; services.udisks2.enable = false; - # Set your time zone. - - # Enable the X11 windowing system. - # You can disable this if you're only using the Wayland session. - # services.xserver.enable = true; - - # Enable the KDE Plasma Desktop Environment. - # services.displayManager.sddm.enable = true; - # services.desktopManager.plasma6.enable = true; - - # Configure keymap in X11 - # services.xserver.xkb = { - # layout = "us"; - # variant = ""; - # }; - # Enable CUPS to print documents. services.printing.enable = true; programs.uwsm.enable = true; programs.hyprland.withUWSM = true; - # Enable sound with pipewire. services.pulseaudio.enable = false; security.rtkit.enable = true; @@ -61,24 +41,14 @@ alsa.support32Bit = true; pulse.enable = true; jack.enable = true; - - # use the example session manager (no others are packaged yet so this is enabled by default, - # no need to redefine it in your config for now) #media-session.enable = true; }; - # Enable touchpad support (enabled default in most desktopManager). services.libinput.enable = true; fonts = { enableDefaultPackages = true; fontDir.enable = true; packages = with pkgs; [ - # nerd-fonts.fira-code - # nerd-fonts.space-mono - # nerd-fonts.sauce-code-pro - # nerd-fonts.monofur - # nerd-fonts.noto - # nerd-fonts.fira-mono noto-fonts noto-fonts-cjk-sans noto-fonts-emoji @@ -86,7 +56,6 @@ material-design-icons noto-fonts-emoji ]++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts); - }; # Define a user account. Don't forget to set a password with ‘passwd’. diff --git a/xps13-hardware-configuration.nix b/modules/hardware-configuration-xps13.nix similarity index 100% rename from xps13-hardware-configuration.nix rename to modules/hardware-configuration-xps13.nix diff --git a/hardware-configuration.nix b/modules/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to modules/hardware-configuration.nix diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 6b119ea..77a63d5 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -19,7 +19,7 @@ }; }; decoration = { - rounding = "10"; + rounding = "0"; rounding_power = "2"; active_opacity = "1"; inactive_opacity = ".7"; @@ -45,8 +45,8 @@ }; extraConfig = '' general { - gaps_in = 5 - gaps_out = 5 + gaps_in = 0 + gaps_out = 0 border_size = 1 col.active_border = rgb(b000b5) col.inactive_border = rgb(1f2335)