mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# hyprland.url = "github:hyprwm/Hyprland";
|
|
# split-monitor-workspaces = {
|
|
# url = "github:Duckonaut/split-monitor-workspaces";
|
|
# inputs.hyprland.follows = "hyprland";
|
|
# };
|
|
};
|
|
|
|
outputs = {nixpkgs, home-manager, ...}:
|
|
let
|
|
username = "theaninova";
|
|
system = "x86_64-linux";
|
|
stateVersion = "23.11";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
homeDirPrefix = if pkgs.stdenv.hostPlatform.isDarwin then "/Users" else "/home";
|
|
homeDirectory = "${homeDirPrefix}/${username}";
|
|
|
|
home = (import ./home.nix {
|
|
inherit homeDirectory pkgs stateVersion system username;
|
|
});
|
|
in {
|
|
homeConfigurations.theaninova = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
|
|
modules = [
|
|
# hyprland.homeManagerModules.default
|
|
home
|
|
];
|
|
};
|
|
};
|
|
}
|