-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
54 lines (49 loc) · 1.52 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "Configuration for Scott's computer";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-old.url = "github:NixOS/nixpkgs/nixos-24.05";
nixos-hardware.url = "github:NixOS/nixos-hardware";
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 = {
url = "github:avm99963/vim-jjdescription";
flake = false;
};
};
outputs =
inputs@{
self,
nixpkgs,
nixpkgs-old,
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;
};
# Old version of Zoom since new version has broken screen sharing
packages.x86_64-linux.zoom-us-old =
(import nixpkgs-old {
system = "x86_64-linux";
config.allowUnfree = true;
}).zoom-us;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
};
}