feat: use hm for hyprland
This commit is contained in:
parent
0658cddcfb
commit
f0682d5742
4 changed files with 13 additions and 6 deletions
14
flake.nix
14
flake.nix
|
@ -6,8 +6,9 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
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
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -22,13 +23,18 @@
|
||||||
tsuki = lib.nixosSystem {
|
tsuki = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/tsuki/default.nix
|
./hosts/tsuki
|
||||||
hyprland.nixosModules.default
|
hyprland.nixosModules.default
|
||||||
{programs.hyprland.enable = true;}
|
{programs.hyprland.enable = true;}
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = 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 {
|
hime = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/hime/default.nix
|
./hosts/hime
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,8 +11,10 @@ imports = [
|
||||||
./dunst
|
./dunst
|
||||||
./helix
|
./helix
|
||||||
./git
|
./git
|
||||||
|
./lazygit
|
||||||
./lf
|
./lf
|
||||||
./waybar
|
./waybar
|
||||||
|
./wayland/hyprland
|
||||||
];
|
];
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
@ -81,3 +81,4 @@ let
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
default,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
wayland.windowManager.hyprland.extraConfig = ''
|
wayland.windowManager.hyprland.extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue