-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
88 lines (85 loc) · 2.42 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
80
81
82
83
84
85
86
87
88
{
description = "Jason's NixOS and Home Manager configurations";
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
# nixos-cosmic = {
# url = "github:lilyinstarlight/nixos-cosmic";
# inputs.nixpkgs.follows = "nixpkgs-stable";
# };
freckle.url = "github:freckle/flakes?dir=main";
ghostty.url = "github:ghostty-org/ghostty";
};
outputs =
{
self,
nixpkgs-stable,
nixpkgs-unstable,
nix-vscode-extensions,
# nixos-cosmic,
home-manager,
freckle,
ghostty,
}:
let
system = "x86_64-linux";
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
vscode-extensions = nix-vscode-extensions.extensions.${system};
mkNixos =
hostname:
nixpkgs-stable.lib.nixosSystem {
inherit system;
specialArgs = {
inherit
self
hostname
ghostty
;
};
modules = [
./nixos
freckle.nixosModules.docker-for-local-dev
# nixos-cosmic.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.backupFileExtension = "bak";
home-manager.users.jason.imports = [ ./home ];
home-manager.extraSpecialArgs = {
inherit
system
pkgs-unstable
vscode-extensions
freckle
;
};
}
];
};
in
{
nixosConfigurations = {
desktop = mkNixos "desktop";
laptop = mkNixos "laptop";
z560 = mkNixos "z560";
};
nixConfig = {
extra-substituters = [
"https://ghostty.cachix.org"
# "https://cosmic.cachix.org/"
];
extra-trusted-public-keys = [
"ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="
# "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
];
};
};
}