first home-manager commit

This commit is contained in:
Khaïs COLIN 2024-07-14 16:41:22 +02:00
commit 808246eecd
3 changed files with 42 additions and 0 deletions

3
Makefile Normal file
View file

@ -0,0 +1,3 @@
.PHONY: update
update:
home-manager switch --flake .#t470

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
description = "My Home Manager configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
homeConfigurations = {
t470 = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
};
};
};
}

13
home.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, pkgs, ... }
{
home = {
packages = with pkgs; [
hello
];
username = "khais";
homeDirectory = "/home/khais";
stateVersion = "23.11"
};
}