dotfiles/flake.nix

70 lines
1.4 KiB
Nix

{
description = "Emile's Nix Dotfiles";
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 = {
self,
nixpkgs,
home-manager,
hyprland,
...
}@inputs:
let
system = "x86_64-linux";
#system = pkgs.stdenv.hostPlatform.system;
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = false;
};
};
# this is just something I'm experimenting with
PROJECT_ROOT = builtins.toString ./.;
in {
nixosConfigurations = {
# i be on my puter fr
myputer = nixpkgs.lib.nixosSystem {
modules = [
./hosts/myputer
];
specialArgs = {
inherit inputs system; # inherit inputs outputs;
};
};
# my laptop 0w0
#lolcathost = nixpkgs.lib.nixosSystem {
# modules = [
# ./hosts/lolcathost
# ];
# specialArgs = {
# inherit system; # inherit inputs outputs;
# };
#};
};
homeConfigurations = {
me = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home/me
];
};
};
};
}