-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
53 lines (49 loc) · 1.41 KB
/
Copy pathflake.nix
File metadata and controls
53 lines (49 loc) · 1.41 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "Configuration for Scott's computer";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# Use jujutsu flake to allow selecting unreleased versions easily
jujutsu-latest.url = "github:jj-vcs/jj/main";
# This plugin isn't available from nixpkgs
vim-jjdescription-src = {
url = "github:avm99963/vim-jjdescription";
flake = false;
};
# I haven't added a flake for this yet
jj-analyze-src = {
url = "github:scott2000/jj-analyze";
flake = false;
};
};
outputs =
inputs@{
self,
nixpkgs,
nixos-hardware,
home-manager,
...
}:
{
nixosConfigurations.scott-framework = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.framework-13-7040-amd
./scott-framework/configuration.nix
];
};
homeConfigurations.scott = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home.nix ];
extraSpecialArgs = inputs;
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
};
}