dotfiles/hosts/x1carbon-ubuntu/flake.nix

37 lines
851 B
Nix
Raw Normal View History

2023-01-02 05:38:18 +00:00
{
description = "Tyrel Nix";
inputs = {
2023-01-02 06:35:11 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-01-02 05:38:18 +00:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2023-01-02 15:23:09 +00:00
outputs = { self, nixpkgs, home-manager } :
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
homeConfigurations = {
"tyrel" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-01-03 05:32:32 +00:00
2023-01-02 15:23:09 +00:00
modules = [
2023-01-03 05:32:32 +00:00
./default.nix
./home-manager.nix
2023-01-02 15:23:09 +00:00
{
home = {
homeDirectory = "/home/tyrel";
username = "tyrel";
stateVersion = "22.05";
};
}
2023-01-02 05:38:18 +00:00
];
2023-01-03 05:32:32 +00:00
2023-01-02 05:38:18 +00:00
};
};
};
}
2023-01-03 05:32:32 +00:00