first home-manager commit
This commit is contained in:
commit
808246eecd
3 changed files with 42 additions and 0 deletions
3
Makefile
Normal file
3
Makefile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.PHONY: update
|
||||
update:
|
||||
home-manager switch --flake .#t470
|
||||
26
flake.nix
Normal file
26
flake.nix
Normal 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
13
home.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ lib, pkgs, ... }
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
hello
|
||||
];
|
||||
|
||||
username = "khais";
|
||||
homeDirectory = "/home/khais";
|
||||
|
||||
stateVersion = "23.11"
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue