commit 5e9a7d0837a597d7204953acc0fda9f85eb04b0f Author: Drew Galbraith Date: Thu Dec 26 16:55:11 2024 -0800 First home-manager commit. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..433765d --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1719827415, + "narHash": "sha256-pvh+1hStXXAZf0sZ1xIJbWGx4u+OGBC1rVx6Wsw0fBw=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "f2e3c19867262dbe84fdfab42467fc8dd83a2005", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-23.11", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1720535198, + "narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-23.11", + "type": "indirect" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..bb8c469 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + 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 = { + drew-profile = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ ./home.nix ]; + }; + }; + }; +} diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..a524808 --- /dev/null +++ b/home.nix @@ -0,0 +1,15 @@ +{ lib, pkgs, ... }: +{ + home = { + packages = with pkgs; [ + home-manager + + git jujutsu + ]; + + username = "drew"; + homeDirectory = "/home/drew"; + + stateVersion = "23.11"; + }; +} diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..ac584f5 --- /dev/null +++ b/update.sh @@ -0,0 +1,2 @@ +#! /bin/bash +home-manager switch --flake '.#drew-profile'