-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
37 lines (36 loc) · 1.21 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
home-manager = {
# url = "github:nix-community/home-manager/release-24.05";
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; # ハードウェア設定のコレクション
xremap.url = "github:xremap/nix-flake"; # キー設定をいい感じに変更できるツール
vscode-server.url = "github:nix-community/nixos-vscode-server";
};
outputs = inputs: {
nixosConfigurations = (import ./hosts inputs).nixos;
homeConfigurations = (import ./hosts inputs).home-manager;
};
# // inputs.flake-utils.lib.eachDefaultSystem (system: let
# pkgs = import inputs.nixpkgs {
# inherit system;
# };
# scripts = with pkgs; [
# (writeScriptBin "switch-home" ''
# home-manager switch --flake ".#$@"
# '')
# (writeScriptBin "switch-nixos" ''
# sudo nixos-rebuild switch --flake ".#$@"
# '')
# ];
# in {
# formatter = pkgs.alejandra;
# devShell = pkgs.mkShell {
# packages = scripts;
# };
# });
}