Skip to content

Commit

Permalink
carokann: switch to hyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
sweenu committed Mar 15, 2024
1 parent 79b9fe9 commit 682c139
Show file tree
Hide file tree
Showing 10 changed files with 329 additions and 94 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This repo is structured with the [digga](https://digga.divnix.com) flake library

### Software I use on my personal computer (carokann)

- Wayland compositor: [sway](https://swaywm.org)
- Wayland compositor: [hyprland](https://hyprland.org)
- Wayland bar: [Waybar](https://github.com/Alexays/Waybar) (style copied from [@KubquoA](https://github.com/KubqoA)'s [config](https://github.com/KubqoA/dotfiles))
- Notification manager: [mako](https://wayland.emersion.fr/mako)
- Editor: [kakoune](https://github.com/mawww/kakoune)
Expand Down
243 changes: 228 additions & 15 deletions flake.lock

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

8 changes: 3 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,22 @@

# pin because of some bug
agenix.url = "github:ryantm/agenix/2994d002dcff5353ca1ac48ec584c7f6589fe447";
agenix.inputs.nixpkgs.follows = "nixos";

deploy.url = "github:serokell/deploy-rs";
deploy.inputs.nixpkgs.follows = "nixos";

nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixos";

arion.url = "github:hercules-ci/arion";
arion.inputs.nixpkgs.follows = "nixos";

ig-story-fetcher.url = "github:sweenu/ig-story-fetcher";
ig-story-fetcher.inputs.nixpkgs.follows = "nixos";

flake-utils-plus.url = "github:gytis-ivaskevicius/flake-utils-plus";

hyprland.url = "github:hyprwm/Hyprland";
};

outputs = { self, nixos, nixos-hardware, digga, home, agenix, deploy, nixos-generators, arion, ig-story-fetcher, flake-utils-plus } @ inputs:
outputs = { self, nixos, nixos-hardware, digga, home, agenix, deploy, nixos-generators, arion, ig-story-fetcher, flake-utils-plus, hyprland } @ inputs:
digga.lib.mkFlake {
inherit self inputs;

Expand Down
1 change: 1 addition & 0 deletions modules/vars.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ with lib;
username = mkOption { type = types.str; };
terminal = mkOption { type = types.str; };
terminalBin = mkOption { type = types.str; };
compositor = mkOption { type = types.str; };

home = mkOption { type = types.str; };
configHome = mkOption { type = types.str; };
Expand Down
13 changes: 13 additions & 0 deletions profiles/graphical/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ inputs, pkgs, ... }:

{
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};

nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
};
}
Loading

0 comments on commit 682c139

Please sign in to comment.