feat: use hm for hyprland

This commit is contained in:
notohh 2023-02-04 12:38:36 -05:00
parent 0658cddcfb
commit f0682d5742
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 13 additions and 6 deletions

View file

@ -6,8 +6,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, home-manager, hyprland, ... }:
outputs = { self, nixpkgs, home-manager, hyprland, flake-utils, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
@ -22,13 +23,18 @@
tsuki = lib.nixosSystem {
inherit system;
modules = [
./hosts/tsuki/default.nix
./hosts/tsuki
hyprland.nixosModules.default
{programs.hyprland.enable = true;}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.notoh = import ./modules/home/home.nix;
home-manager.users.notoh = {
imports = [
hyprland.homeManagerModules.default
./modules/home/home.nix
];
};
}
];
};
@ -37,7 +43,7 @@
hime = lib.nixosSystem {
inherit system;
modules = [
./hosts/hime/default.nix
./hosts/hime
];
};
};

View file

@ -11,8 +11,10 @@ imports = [
./dunst
./helix
./git
./lazygit
./lf
./waybar
./wayland/hyprland
];
systemd.user.startServices = "sd-switch";
programs.home-manager.enable = true;

View file

@ -81,3 +81,4 @@ let
}

View file

@ -1,7 +1,5 @@
{
config,
pkgs,
default,
...
}: {
wayland.windowManager.hyprland.extraConfig = ''