aboutsummaryrefslogtreecommitdiff
path: root/home-manager
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2025-10-06 01:12:35 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2025-10-06 01:12:35 +0530
commit03d0d14641e59fbb4834af1bc3de24144acf3826 (patch)
tree8f28f255862660d853ca2205b6405989250f3380 /home-manager
parenta1ff11b11c4a83a19839c4c50c7a1f6cb0a09670 (diff)
gruvbox terminal + foot + home-manager
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/flake.lock48
-rw-r--r--home-manager/flake.nix22
-rw-r--r--home-manager/home.nix46
3 files changed, 116 insertions, 0 deletions
diff --git a/home-manager/flake.lock b/home-manager/flake.lock
new file mode 100644
index 0000000..db647bc
--- /dev/null
+++ b/home-manager/flake.lock
@@ -0,0 +1,48 @@
+{
+ "nodes": {
+ "home-manager": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1751411489,
+ "narHash": "sha256-x+AJyQ5+4EPDU3NnQ1OPP/KuoG0C6UrbgptEW6PSLQ8=",
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "rev": "e96a8a325cf23538a7f58b9335b4c4c0b393bacf",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1751271578,
+ "narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "home-manager": "home-manager",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/home-manager/flake.nix b/home-manager/flake.nix
new file mode 100644
index 0000000..dfad9c8
--- /dev/null
+++ b/home-manager/flake.nix
@@ -0,0 +1,22 @@
+{
+ description = "Home Manager configuration";
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+ outputs =
+ { nixpkgs, home-manager, ... }:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+ homeConfigurations."aargh" = home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+ modules = [ ./home.nix ];
+ };
+ };
+}
diff --git a/home-manager/home.nix b/home-manager/home.nix
new file mode 100644
index 0000000..0671c9b
--- /dev/null
+++ b/home-manager/home.nix
@@ -0,0 +1,46 @@
+{ config, pkgs, ... }:
+{
+ home.username = "aargh";
+ home.homeDirectory = "/home/aargh";
+ home.stateVersion = "24.11";
+ home.packages = with pkgs; [
+ # # Adds the 'hello' command to your environment. It prints a friendly
+ # # "Hello, world!" when run.
+ # pkgs.hello
+
+ # # It is sometimes useful to fine-tune packages, for example, by applying
+ # # overrides. You can do that directly here, just don't forget the
+ # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
+ # # fonts?
+ # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
+
+ # # You can also create simple shell scripts directly inside your
+ # # configuration. For example, this adds a command 'my-hello' to your
+ # # environment:
+ # (pkgs.writeShellScriptBin "my-hello" ''
+ # echo "Hello, ${config.home.username}!"
+ # '')
+ ];
+
+ home.file = {
+ ".bashrc".text = ''
+ bash_starship_init_code=$(starship init bash)
+ STARSHIP_DEV_MODE=1
+ eval "$bash_starship_init_code"
+ '';
+ # # Building this configuration will create a copy of 'dotfiles/screenrc' in
+ # # the Nix store. Activating the configuration will then make '~/.screenrc' a
+ # # symlink to the Nix store copy.
+ # ".screenrc".source = dotfiles/screenrc;
+
+ # # You can also set the file content immediately.
+ # ".gradle/gradle.properties".text = ''
+ # org.gradle.console=verbose
+ # org.gradle.daemon.idletimeout=3600000
+ # '';
+ };
+ home.sessionVariables = {
+ # EDITOR = "emacs";
+ };
+ programs.home-manager.enable = true;
+}