Skip to content

Instantly share code, notes, and snippets.

@kuuote
Created November 8, 2024 16:51
Show Gist options
  • Save kuuote/4e971a7280770bcce8b1d754b42e00a2 to your computer and use it in GitHub Desktop.
Save kuuote/4e971a7280770bcce8b1d754b42e00a2 to your computer and use it in GitHub Desktop.
home-managerでkuusayを導入するための最高の設定
{
description = "A very basic flake";
inputs = {
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
kuusay.inputs.nixpkgs.follows = "nixpkgs";
kuusay.url = "github:times-yasunori/kuusay";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{
self,
nixpkgs,
home-manager,
kuusay,
...
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
homeConfigurations = {
alice = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home.username = "alice";
home.homeDirectory = "/home/alice";
home.stateVersion = "24.05";
home.packages = [ kuusay.packages.${system}.kuusay ];
}
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment