making HM work better

This commit is contained in:
Chris Cochrun 2022-05-06 16:09:28 -05:00
parent 2aec145bde
commit 099e11b74e
2 changed files with 9 additions and 7 deletions

View file

@ -25,15 +25,16 @@
"locked": {
"lastModified": 1651726670,
"narHash": "sha256-dSGdzB49SEvdOJvrQWfQYkAefewXraHIV08Vz6iDXWQ=",
"owner": "NixOS",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c777cdf5c564015d5f63b09cc93bef4178b19b01",
"type": "github"
},
"original": {
"id": "nixpkgs",
"owner": "nixos",
"ref": "nixos-unstable",
"type": "indirect"
"repo": "nixpkgs",
"type": "github"
}
},
"root": {

View file

@ -2,7 +2,7 @@
description = "A very basic flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
@ -10,6 +10,7 @@
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
username = "chris";
pkgs = import nixpkgs {
inherit system;
@ -18,16 +19,16 @@
lib = nixpkgs.lib;
in {
homeManagerConfigurations = {
homeConfigurations = {
chris = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "chris";
inherit system pkgs username;
homeDirectory = "/home/chris";
configuration = {
imports = [
./user/home.nix
];
};
stateVersion = "22.05";
};
};