From e38c6d0f1ca2ba2f0e5289ab47fc234ac8ddfc90 Mon Sep 17 00:00:00 2001 From: chexit Date: Fri, 17 Apr 2026 22:37:03 +0300 Subject: [PATCH] add alias and flake.lock --- flake.lock | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ home.nix | 3 +++ 2 files changed, 51 insertions(+) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..66985fb --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1776454077, + "narHash": "sha256-7zSUFWsU0+jlD7WB3YAxQ84Z/iJurA5hKPm8EfEyGJk=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "565e5349208fe7d0831ef959103c9bafbeac0681", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1776169885, + "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", + "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.nix b/home.nix index 137c29c..2ddddb3 100644 --- a/home.nix +++ b/home.nix @@ -13,6 +13,9 @@ initExtra = '' source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme ''; + .shellAliases = { + rebuild = "sudo nixos-rebuild switch --flake ~/nixos-config#chexit"; + }; }; programs.home-manager.enable = true;