ma
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
    firewall = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      checkReversePath = false;
 | 
			
		||||
      allowedTCPPorts = [ 80 443 ];
 | 
			
		||||
      allowedTCPPorts = [ 80 443 8080 ];
 | 
			
		||||
      allowedUDPPorts = [];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,20 @@
 | 
			
		||||
    pathsToLink = [ "/share/zsh" ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  hardware.opengl.enable = true;
 | 
			
		||||
  hardware.opengl = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
 | 
			
		||||
    # Vulkan
 | 
			
		||||
    driSupport = true;
 | 
			
		||||
    driSupport32Bit = true;
 | 
			
		||||
 | 
			
		||||
    # VA-API
 | 
			
		||||
    extraPackages = with pkgs; [
 | 
			
		||||
      vaapiVdpau
 | 
			
		||||
      libvdpau-va-gl
 | 
			
		||||
      nvidia-vaapi-driver
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Programs  
 | 
			
		||||
  programs = {
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,7 @@
 | 
			
		||||
{
 | 
			
		||||
  # List services that you want to enable:
 | 
			
		||||
  services = {
 | 
			
		||||
    usbmuxd.enable = true;
 | 
			
		||||
    xserver = {
 | 
			
		||||
      layout = "be";
 | 
			
		||||
      xkbVariant = "nodeadkeys";
 | 
			
		||||
@@ -16,7 +17,7 @@
 | 
			
		||||
    spice-vdagentd.enable = true;
 | 
			
		||||
    gvfs = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      package = lib.mkForce pkgs.gnome3.gvfs;
 | 
			
		||||
      # package = lib.mkForce pkgs.gnome3.gvfs;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    pipewire = {
 | 
			
		||||
@@ -28,6 +29,9 @@
 | 
			
		||||
    };
 | 
			
		||||
    udev.packages = with pkgs; [
 | 
			
		||||
      via
 | 
			
		||||
      platformio
 | 
			
		||||
      platformio-core.udev
 | 
			
		||||
      openocd
 | 
			
		||||
    ];
 | 
			
		||||
    printing = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,9 @@
 | 
			
		||||
      mangohud
 | 
			
		||||
      nvidia-vaapi-driver
 | 
			
		||||
      egl-wayland
 | 
			
		||||
      libimobiledevice
 | 
			
		||||
      ifuse
 | 
			
		||||
      idevicerestore
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@
 | 
			
		||||
      modesetting.enable = true;
 | 
			
		||||
      open = true;
 | 
			
		||||
      nvidiaSettings = true;
 | 
			
		||||
      package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
 | 
			
		||||
      # package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,8 @@ map("v", "<S-l>", "> gv", opts)
 | 
			
		||||
 | 
			
		||||
---------- Terminal Mode ----------
 | 
			
		||||
 | 
			
		||||
map('n', "<leader>tt", ":ToggleTerm<CR>", opts)
 | 
			
		||||
 | 
			
		||||
--Escape Terminal
 | 
			
		||||
map('t', 'jj', [[<C-\><C-n>]], opts)
 | 
			
		||||
map('t', '<C-[>', [[<C-\><C-n>]], opts)
 | 
			
		||||
@@ -61,7 +63,7 @@ map("n", "<leader>gcon", ":G config user.name<Space>", opts)
 | 
			
		||||
map("n", "<leader>dt", ":NvimTreeToggle<CR>", opts)
 | 
			
		||||
 | 
			
		||||
--Transparency
 | 
			
		||||
map("n", "<leader>tt", ":TransparentToggle<CR>", opts)
 | 
			
		||||
-- map("n", "<leader>tt", ":TransparentToggle<CR>", opts)
 | 
			
		||||
 | 
			
		||||
--Telescope
 | 
			
		||||
map('n', '<leader>ff', ":Telescope find_files<CR>", opts)
 | 
			
		||||
 
 | 
			
		||||
@@ -100,6 +100,7 @@
 | 
			
		||||
        plugin = (nvim-treesitter.withPlugins (p: [
 | 
			
		||||
          p.tree-sitter-nix
 | 
			
		||||
          p.tree-sitter-c
 | 
			
		||||
          p.tree-sitter-cpp
 | 
			
		||||
          p.tree-sitter-lua
 | 
			
		||||
          p.tree-sitter-vim
 | 
			
		||||
          p.tree-sitter-python
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,44 @@ if not status then
 | 
			
		||||
    print('Error with plugin: ', plugin)
 | 
			
		||||
    return
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local highlight = {
 | 
			
		||||
    "RainbowRed",
 | 
			
		||||
    "RainbowYellow",
 | 
			
		||||
    "RainbowBlue",
 | 
			
		||||
    "RainbowOrange",
 | 
			
		||||
    "RainbowGreen",
 | 
			
		||||
    "RainbowViolet",
 | 
			
		||||
    "RainbowCyan",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local hooks = require "ibl.hooks"
 | 
			
		||||
-- create the highlight groups in the highlight setup hook, so they are reset
 | 
			
		||||
-- every time the colorscheme changes
 | 
			
		||||
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
 | 
			
		||||
    vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
plugin.setup{
 | 
			
		||||
    indent = {
 | 
			
		||||
        char = "│",
 | 
			
		||||
        highlight = highlight,
 | 
			
		||||
    },
 | 
			
		||||
    scope = {
 | 
			
		||||
        enabled = true,
 | 
			
		||||
    },
 | 
			
		||||
    exclude = {
 | 
			
		||||
        filetypes = { "help", "alpha", "dashboard", "Trouble", "lazy", "neo-tree" },
 | 
			
		||||
    },
 | 
			
		||||
    whitespace = {
 | 
			
		||||
        remove_blankline_trail = true,
 | 
			
		||||
    },
 | 
			
		||||
    -- show_current_context = true,
 | 
			
		||||
    -- show_current_context_start = true,
 | 
			
		||||
}
 | 
			
		||||
-- vim.g.indent_blankline_filetype_exclude = {'dashboard'}
 | 
			
		||||
}
 | 
			
		||||
@@ -27,6 +27,9 @@ in
 | 
			
		||||
  programs.home-manager.enable = true;
 | 
			
		||||
  nixpkgs.config.allowUnfree = true;
 | 
			
		||||
  nixpkgs.config.allowUnfreePredicate = _: true;
 | 
			
		||||
  nixpkgs.config.permittedInsecurePackages = [
 | 
			
		||||
    "electron-24.8.6"
 | 
			
		||||
  ];
 | 
			
		||||
  home.shellAliases = {
 | 
			
		||||
    home-switch = "home-manager switch --flake ${flake_path}#${username}";
 | 
			
		||||
    sudo = "sudo -E";
 | 
			
		||||
 
 | 
			
		||||
@@ -10,16 +10,22 @@
 | 
			
		||||
    })
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs.direnv.enable = true;
 | 
			
		||||
  programs.direnv = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableZshIntegration = true;
 | 
			
		||||
    nix-direnv.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  #Packages
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    betterbird
 | 
			
		||||
    # betterbird
 | 
			
		||||
    bottles
 | 
			
		||||
    brave
 | 
			
		||||
    btop
 | 
			
		||||
    clang-tools
 | 
			
		||||
    cliphist
 | 
			
		||||
    foot
 | 
			
		||||
    firefox
 | 
			
		||||
    gamemode
 | 
			
		||||
    gamescope
 | 
			
		||||
    glibc
 | 
			
		||||
@@ -27,12 +33,13 @@
 | 
			
		||||
    grim
 | 
			
		||||
    hplipWithPlugin
 | 
			
		||||
    inputs.maxfetch.packages.${pkgs.system}.default
 | 
			
		||||
    inputs.orcaslicer.packages.${pkgs.system}.orca-slicer
 | 
			
		||||
    # inputs.orcaslicer.packages.${pkgs.system}.orca-slicer
 | 
			
		||||
    jellycli
 | 
			
		||||
    jftui
 | 
			
		||||
    libreoffice
 | 
			
		||||
    lutris
 | 
			
		||||
    mpv
 | 
			
		||||
    minicom
 | 
			
		||||
    neofetch
 | 
			
		||||
    nix-prefetch-github
 | 
			
		||||
    obs-studio
 | 
			
		||||
@@ -52,6 +59,7 @@
 | 
			
		||||
    swaylock-effects
 | 
			
		||||
    swaynotificationcenter
 | 
			
		||||
    swww
 | 
			
		||||
    thunderbird
 | 
			
		||||
    vlc
 | 
			
		||||
    waybar
 | 
			
		||||
    wine-wayland
 | 
			
		||||
 
 | 
			
		||||
@@ -6,5 +6,6 @@
 | 
			
		||||
    ./vscodium.nix
 | 
			
		||||
    ./git.nix
 | 
			
		||||
    ./sops.nix
 | 
			
		||||
    ./orcaslicer.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +0,0 @@
 | 
			
		||||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.usbmuxd.enable = true;
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    libimobiledevice
 | 
			
		||||
    ifuse # optional, to mount using 'ifuse'
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										33
									
								
								nix/users/nicolaivds/programs/orcaslicer.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								nix/users/nicolaivds/programs/orcaslicer.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
{ appimageTools, lib, fetchzip }:
 | 
			
		||||
let
 | 
			
		||||
  pname = "orca-slicer";
 | 
			
		||||
  version = "1.6.3";
 | 
			
		||||
  name = "OrcaSlicer_V${version}_Linux";
 | 
			
		||||
 | 
			
		||||
  srcZipped = fetchzip {
 | 
			
		||||
    url = "https://github.com/SoftFever/OrcaSlicer/releases/download/v${version}/OrcaSlicer_V${version}_Linux.zip";
 | 
			
		||||
    sha256 = "n/D0qfli+kPPKgDIujsPdZHdoUPex3SFuSqLlhGzxJY=";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  appimageContents = appimageTools.extract {
 | 
			
		||||
    inherit pname version;
 | 
			
		||||
    src = "${srcZipped}/OrcaSlicer_V${version}_Linux.AppImage";
 | 
			
		||||
  };
 | 
			
		||||
in appimageTools.wrapType2 rec {
 | 
			
		||||
  inherit name version;
 | 
			
		||||
  src = "${srcZipped}/OrcaSlicer_V${version}_Linux.AppImage";
 | 
			
		||||
 | 
			
		||||
  extraInstallCommands = ''
 | 
			
		||||
    mkdir -p $out/bin
 | 
			
		||||
    mv $out/bin/${name} $out/bin/${pname}
 | 
			
		||||
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "orca Slicer is an open source slicer for FDM printers";
 | 
			
		||||
    homepage = "https://github.com/SoftFever/OrcaSlicer";
 | 
			
		||||
    license = licenses.agpl3Plus;
 | 
			
		||||
    maintainers = [ maintainers.aacebedo ];
 | 
			
		||||
    platforms = [ "x86_64-linux" ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -24,14 +24,10 @@
 | 
			
		||||
            package = pkgs.catppuccin-gtk.override { variant="mocha"; };
 | 
			
		||||
        };
 | 
			
		||||
        gtk3.extraConfig = {
 | 
			
		||||
            Settings = ''
 | 
			
		||||
                gtk-application-prefer-dark-theme=1
 | 
			
		||||
                '';
 | 
			
		||||
            gtk-application-prefer-dark-theme=1;
 | 
			
		||||
        };
 | 
			
		||||
        gtk4.extraConfig = {
 | 
			
		||||
            Settings = ''
 | 
			
		||||
                gtk-application-prefer-dark-theme=1
 | 
			
		||||
                '';
 | 
			
		||||
            gtk-application-prefer-dark-theme=1;
 | 
			
		||||
        };
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user