-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
79 lines (63 loc) · 2.12 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
description = "My NixOS configuration";
nixConfig = {
extra-substituters = [ "https://nix-community.cachix.org" ];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2311.tar.gz";
home-manager = {
url = "https://flakehub.com/f/nix-community/home-manager/0.2311.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
# pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs { inherit system; };
in {
packages.${system} = import ./pkgs { inherit pkgs; };
overlays = {
additions = (final: _prev: import ./pkgs { pkgs = final; });
};
nixosConfigurations = {
# Desktop
bridget = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self; };
modules = [
./hosts/configuration-desktop.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.philipp = import ./home/home.nix;
home-manager.extraSpecialArgs = inputs;
}
];
};
# Laptop
frieda = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self; };
modules = [
./hosts/configuration-laptop.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.philipp = import ./home/home.nix;
home-manager.extraSpecialArgs = inputs;
}
];
};
};
formatter.${system} = pkgs.nixpkgs-fmt;
};
}