Skip to content

Commit

Permalink
Setup hyprpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Jun 16, 2024
1 parent f1ed84a commit 95fc64b
Show file tree
Hide file tree
Showing 12 changed files with 308 additions and 7 deletions.
213 changes: 211 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
};

hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprlock.url = "github:hyprwm/Hyprlock";
hyprpaper.url = "github:hyprwm/Hyprpaper";

nil = {
url = "github:oxalica/nil";
Expand Down
19 changes: 19 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
./ags
./alacritty
./chromium
./git
./gtk
./hyprland
./nushell
Expand All @@ -19,12 +20,30 @@

home.packages = with pkgs; [
git
gh
tree
wl-clipboard
ripgrep
zoxide
fastfetch
btop
speedtest-cli
yt-dlp

zig
bun
nodejs
go
python3

texliveFull
graphviz

signal-desktop
slack

neovim
vesktop
obsidian
];
}
18 changes: 18 additions & 0 deletions home/git/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
let
username = "lukas-dev";
in
{
programs.git = {
enable = true;

extraConfig = {
color.ui = true;
core.editor = "nvim";
github.user = username;
push.autoSetupRemote = true;
};

userEmail = "[email protected]";
userName = username;
};
}
9 changes: 5 additions & 4 deletions home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
{
imports = [
inputs.hyprland.homeManagerModules.default
# inputs.hyprlock.homeManagerModules.hyprlock

./bindings.nix
./window-rules.nix
./hyprpaper.nix
./settings.nix
./window-rules.nix
];

wayland.windowManager.hyprland = {
Expand All @@ -15,9 +17,8 @@
enable = true;
variables = [ "--all" ];
};
xwayland = {
enable = true;
};
xwayland.enable = true;
plugins = [];
};
}

20 changes: 20 additions & 0 deletions home/hyprland/hyprpaper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
services.hyprpaper = {
enable = true;

settings = {
ipc = "on";

splash = false;
splash_offset = 2.0;

preload = [
"~/nixos/wallpaper.png"
];

wallpaper = [
",~/nixos/wallpaper.png"
];
};
};
}
2 changes: 2 additions & 0 deletions home/hyprland/settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
wayland.windowManager.hyprland.settings = {
env = [
"XCURSOR_SIZE,24"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_QPA_PLATFORM,wayland"
];

monitor = [
Expand Down
2 changes: 2 additions & 0 deletions hosts/vega/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
imports = [
./hardware-configuration.nix

../../nixos/1password
../../nixos/bluetooth
../../nixos/fonts
../../nixos/i18n
../../nixos/nix-ld
../../nixos/nvidia
../../nixos/pipewire
../../nixos/polkit
../../nixos/users
../../nixos/xserver
];
Expand Down
Loading

0 comments on commit 95fc64b

Please sign in to comment.