-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
28 lines (28 loc) · 755 Bytes
/
flake.nix
File metadata and controls
28 lines (28 loc) · 755 Bytes
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
{
description = "NixOS of zhews";
inputs = {
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { home-manager, nixpkgs, ... }:
let
hostname = "nixos";
pkgs = nixpkgs.legacyPackages.${system};
system = "x86_64-linux";
username = "zhews";
in
{
formatter.${system} = pkgs.nixpkgs-fmt;
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home ];
};
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./system ];
};
};
}