restructure folders

This commit is contained in:
2024-03-03 12:35:44 +01:00
parent 2e7bcc32ca
commit 0ff29aca1a
5 changed files with 25 additions and 23 deletions

View File

@@ -1,19 +1,20 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ # Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix imports = [ ./hardware-configuration.nix ];
];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking.hostName = "eliasLaptop"; # Define your hostname. # Define your hostname.
# Pick only one of the below networking options. networking.hostName = "eliasLaptop";
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = # Use NetworkManager for networking.
true; # Easiest to use and most distros use this by default. networking.networkmanager.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@@ -68,17 +69,18 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(libsForQt5.callPackage ./home/programs/catppuccin-sddm.nix { }) (libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { })
git git
#neovim
wget wget
curl curl
alacritty alacritty
dmenu dmenu
]; ];
# Enable zsh for setting it as shell for users.
programs.zsh.enable = true; programs.zsh.enable = true;
system.stateVersion = "23.11"; # Do not change!!!!
# Set stateVersion. Leave it as set.
system.stateVersion = "23.11";
} }

View File

@@ -1,3 +1,5 @@
Zusatz: Zusatz:
- firefox Bookmarks neu - firefox Bookmarks neu
- obsidian vaults einrichten in home/programs/neovim/lua/plugins/obsidian.lua - obsidian vaults einrichten in home/programs/neovim/lua/plugins/obsidian.lua

View File

@@ -1,10 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = [ ./programs ./services ];
./programs
./services
];
home = { home = {
username = "elias"; username = "elias";
homeDirectory = "/home/elias"; homeDirectory = "/home/elias";
@@ -28,9 +25,7 @@
firefox firefox
#signal-desktop #signal-desktop
#telegram-desktop #telegram-desktop
xfce.thunar
# zathura # zathura
xfce.xfconf
]; ];
# environment.shells = [ pkgs.zsh ]; # environment.shells = [ pkgs.zsh ];

View File

@@ -3,8 +3,8 @@ return {
"epwalsh/obsidian.nvim", "epwalsh/obsidian.nvim",
lazy = true, lazy = true,
event = { event = {
"BufReadPre " .. vim.fn.expand("~") .. "/Notes/**.md", "BufReadPre " .. vim.fn.expand("~") .. "**.md",
"BufNewFile " .. vim.fn.expand("~") .. "/Notes/**.md", "BufNewFile " .. vim.fn.expand("~") .. "**.md",
}, },
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
@@ -30,7 +30,10 @@ return {
}, },
}, },
}) })
function OpenMarkdownPreview(url)
execute "silent ! firefox --new-window " . a:url
endfunction
let g:mkdp_browserfunc = 'OpenMarkdownPreview'
end, end,
}, },
} }