Initial commit

This commit is contained in:
2023-10-28 13:24:52 +02:00
commit 2bd9025c69
11 changed files with 366 additions and 0 deletions

40
flake.nix Normal file
View File

@@ -0,0 +1,40 @@
{
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";
};
outputs = {nixpkgs, home-manager, hyprland, ...}:
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.${username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
hyprland.homeManagerModules.default
home
];
};
};
}