Files
TheaninovOS/flake.nix
2023-11-01 10:52:13 +01:00

43 lines
985 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
ags = {
url = "github:Aylur/ags";
};
};
outputs = {nixpkgs, home-manager, ags, ...}:
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 = [
ags.homeManagerModules.default
home
];
};
};
}