init nix stuff

This commit is contained in:
Zhongheng Liu 2026-01-18 04:18:58 +01:00
commit 83f5134c93
Signed by untrusted user who does not match committer: steven
GPG key ID: 805A28B071DAD84B
5 changed files with 145 additions and 1 deletions

31
home-manager/flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "Home Manager configuration of steven";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
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."steven" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./home.nix ];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
}