Skip to content

Commit

Permalink
feat: update hyprland config
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Aug 27, 2023
1 parent cfde205 commit df2352a
Show file tree
Hide file tree
Showing 17 changed files with 711 additions and 422 deletions.
296 changes: 232 additions & 64 deletions flake.lock

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,30 @@
xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
impermanence.url = "github:nix-community/impermanence";

nixpak = {
url = "github:nixpak/nixpak";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprpicker = {
url = "github:hyprwm/hyprpicker";
inputs.nixpkgs.follows = "nixpkgs";
};

schizofox = {
url = "github:schizofox/schizofox";
# url = "path:/home/sioodmy/dev/schizofox";
# url = "github:schizofox/schizofox";
url = "path:/home/sioodmy/dev/schizofox";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpak.follows = "nixpak";
};

anyrun = {
url = "github:Kirottu/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix = {
url = "github:yaxitech/ragenix";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
23 changes: 22 additions & 1 deletion modules/core/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,25 @@
inputs,
...
}: {
imports = [inputs.nh.nixosModules.default];
environment = {
# set channels (backwards compatibility)
sessionVariables.FLAKE = "/home/sioodmy/dev/dotfiles";
etc = {
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs;
"nix/flake-channels/home-manager".source = inputs.home-manager;
};

systemPackages = with pkgs; [git deadnix alejandra statix];
systemPackages = with pkgs; [git deadnix alejandra statix inputs.nh.packages.${pkgs.system}.default nix-output-monitor];
defaultPackages = [];
};

nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
};

nixpkgs = {
config = {
allowUnfree = false;
Expand All @@ -33,6 +41,17 @@
"nvidia-x11"
"nvidia-settings"
];
overlays = [
(
_: prev: {
# temp fix until https://github.com/NixOS/nixpkgs/pull/249382 is merged
gtklock = prev.gtklock.overrideAttrs (self: super: {
nativeBuildInputs = super.nativeBuildInputs ++ [prev.wrapGAppsHook];
buildInputs = super.buildInputs ++ [prev.librsvg];
});
}
)
];
};
};

Expand Down Expand Up @@ -97,6 +116,7 @@
"https://hyprland.cachix.org"
"https://nixpkgs-unfree.cachix.org"
"https://anyrun.cachix.org"
"https://viperml.cachix.org"
];

trusted-public-keys = [
Expand All @@ -107,6 +127,7 @@
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
];
};
};
Expand Down
8 changes: 2 additions & 6 deletions modules/core/schizo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
packages = [pkgs.apparmor-profiles];
};
pam = {
services.gtklock.text = "auth include login";
loginLimits = [
{
domain = "@wheel";
Expand All @@ -98,11 +99,6 @@
];
services = {
login.enableGnomeKeyring = true;
swaylock = {
text = ''
auth include login
'';
};
};
};

Expand Down Expand Up @@ -136,7 +132,7 @@
}
];
};
sudo.enable = false;
sudo.enable = true;
};

boot.kernel.sysctl = {
Expand Down
5 changes: 3 additions & 2 deletions modules/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config.home.stateVersion = "22.05";
config.home.extraOutputsToInstall = ["doc" "devdoc"];
imports = [
inputs.hyprland.homeManagerModules.default
# inputs.hyprland.homeManagerModules.default
inputs.nix-index-db.hmModules.nix-index
inputs.anyrun.homeManagerModules.default
inputs.spicetify-nix.homeManagerModule
Expand All @@ -32,7 +32,8 @@
./dunst
./bottom
./shell
./swaylock
./swayidle
./gtklock
./tools
./hyprland
./media
Expand Down
33 changes: 33 additions & 0 deletions modules/home/gtklock/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{pkgs, ...}: {
home.packages = with pkgs; [gtklock];

xdg.configFile."gtklock/style.css".text = ''
window {
background: rgba(0, 0, 0, .5);
font-family: Lexend;
}
grid > label {
color: transparent;
margin: -20rem;
}
button {
all: unset;
color: transparent;
margin: -20rem;
}
#clock-label {
font-size: 6rem;
margin-bottom: 4rem;
text-shadow: 0px 2px 10px rgba(0, 0, 0, .1);
}
entry {
border-radius: 16px;
margin: 6rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
'';
}
Loading

0 comments on commit df2352a

Please sign in to comment.