testing flakes and home manager

This commit is contained in:
Julian Sutter 2023-01-04 22:38:13 -08:00
parent bea1e45f1d
commit f1e9ef91c3
2 changed files with 30 additions and 0 deletions

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
description = "Julian's Flaky Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
}
};
outputs = {nixpkgs, home-manager, ...}: {
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
homeConfigurations = {
"jsutter" = home-manager.lib.homeManagerConfiguration {
# Note: I am sure this could be done better with flake-utils or something
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home.nix ];
};
};
};
}

6
home.nix Normal file
View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
home.username = "jsutter";
home.homeDirectory = "/home/jsutter";
home.stateVersion = "23.05"; # To figure this out you can comment out the line and see what version it expected.
programs.home-manager.enable = true;
}