dotfiles/home-nix/flake.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-06 20:23:10 +00:00
{
description = "simple home-manager config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
2022-11-07 18:36:01 +00:00
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
2022-11-06 20:23:10 +00:00
pkgs = nixpkgs.legacyPackages.${system};
2022-11-07 18:36:01 +00:00
in
{
2022-11-06 20:23:10 +00:00
homeConfigurations.nixos = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2022-11-07 18:36:01 +00:00
modules = [
./home.nix
{
home = {
username = "nixos";
homeDirectory = "/home/nixos";
};
}
];
2022-11-06 20:23:10 +00:00
};
2022-11-07 10:14:16 +00:00
homeConfigurations.ubuntu_admin = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2022-11-07 18:36:01 +00:00
modules = [
./home.nix
{
home = {
username = "ubuntu_admin";
homeDirectory = "/home/ubuntu_admin";
};
}
];
};
homeConfigurations.hwtr = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2022-11-07 18:36:01 +00:00
modules = [
./home.nix
{
home = {
username = "hwtr";
homeDirectory = "/home/hwtr";
};
}
];
2022-11-07 10:14:16 +00:00
};
2022-11-06 20:23:10 +00:00
};
}