Skip to content

Commit

Permalink
feat:hyprland nvidia patches & xdg
Browse files Browse the repository at this point in the history
  • Loading branch information
v4zha committed Jul 31, 2023
1 parent bbb9135 commit 23deaa2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
hyprland.homeManagerModules.default
{ wayland.windowManager.hyprland.enable = true; }
{
wayland.windowManager.hyprland = {
enable = true;
xwayland = {
enable = true;
hidpi = false;
};
nvidiaPatches = true;
};
}
./nix/v4zha/home-manager/home.nix
];
};
Expand Down
2 changes: 1 addition & 1 deletion nix/v4zha/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
rnix-lsp
];
programs.neovim.plugins = [
(pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [p.bash p.c p.cpp p.cmake p.comment p.css p.cuda p.dockerfile p.fish p.gitignore p.go p.html p.haskell p.javascript p.json p.lua p.latex p.make p.markdown p.markdown_inline p.nix p.regex p.rust p.scss p.svelte p.toml p.tsx p.typescript p.vim p.yaml p.yuck p.zig]))
(pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [ p.bash p.c p.cpp p.cmake p.comment p.css p.cuda p.dockerfile p.fish p.gitignore p.go p.html p.haskell p.javascript p.json p.lua p.latex p.make p.markdown p.markdown_inline p.nix p.regex p.rust p.scss p.svelte p.toml p.tsx p.typescript p.vim p.yaml p.yuck p.zig ]))
];
services.mpris-proxy.enable = true;
home.stateVersion = "23.11";
Expand Down
15 changes: 14 additions & 1 deletion nix/v4zha/system/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];

# Binary Cache for Haskell.nix
nix.settings.trusted-public-keys = [
# Binary Cache for Haskell.nix
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
nix.settings.substituters = [
"https://cache.iog.io"
"https://hyprland.cachix.org"
];

# Docker support
Expand All @@ -45,6 +47,16 @@
#keyMap = "us";
useXkbConfig = true;
};
# Xdg service
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};

services = {
# Enable the X11 windowing system.
Expand Down Expand Up @@ -75,6 +87,7 @@
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
# Bluetooth
hardware.bluetooth.enable = true;
Expand Down
1 change: 1 addition & 0 deletions nix/v4zha/system/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
fish.enable = true;

};
environment.sessionVariables.NIXOS_OZONE_WL = "1";

}

0 comments on commit 23deaa2

Please sign in to comment.