initial commit

This commit is contained in:
2026-01-15 20:39:00 +01:00
commit a1026de8e1
4 changed files with 114 additions and 0 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
# Careful about copy/pasting, Makefiles want tabs!
.PHONY: update
update:
home-manager switch --flake .#avravels
.PHONY: clean
clean:
nix-collect-garbage -d

49
flake.lock generated Normal file
View File

@@ -0,0 +1,49 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1767910483,
"narHash": "sha256-MOU5YdVu4DVwuT5ztXgQpPuRRBjSjUGIdUzOQr9iQOY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "82fb7dedaad83e5e279127a38ef410bcfac6d77c",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1767799921,
"narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

30
flake.nix Normal file
View File

@@ -0,0 +1,30 @@
{
description = "My Home Manager configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
homeConfigurations = {
avravels = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# ✅ Load ZSH module properly
modules = [
./home.nix
];
};
};
};
}

27
home.nix Normal file
View File

@@ -0,0 +1,27 @@
{ pkgs, lib, ... }:
{
# Home Manager state version
home.stateVersion = "25.11";
home.username = "avravels";
home.homeDirectory = "/home/avravels";
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
theme = "agnoster";
};
};
home.packages = with pkgs; [
];
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
}