-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
100 lines (96 loc) · 2.39 KB
/
Copy pathflake.nix
File metadata and controls
100 lines (96 loc) · 2.39 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
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
89
90
91
92
93
94
95
96
97
98
99
100
{
description = "dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
murp.url = "git+ssh://git@0xee.cc/smgt/murp.git";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
smgtvim.url = "git+https://0xee.cc/smgt/nix-nvim";
secrets = {
url = "git+ssh://git@0xee.cc/smgt/nix-secrets.git";
flake = false;
};
catppuccin.url = "github:catppuccin/nix";
};
outputs = {
self,
nixpkgs,
utils,
home-manager,
disko,
murp,
nixos-hardware,
nix-flatpak,
catppuccin,
smgtvim,
sops-nix,
...
} @ inputs: let
overlays = [];
mkHome = import ./nix/lib/mkhome.nix {
inherit
nixpkgs
home-manager
inputs
;
};
mkSystem = import ./nix/lib/mksystem.nix {
inherit
overlays
nixpkgs
inputs
;
};
in
{
# Home manager configurations
homeConfigurations.kale = mkHome "kale" {stateVersion = "25.05";};
homeConfigurations.sugarsnap = mkHome "sugarsnap" {stateVersion = "25.05";};
# NixOS configurations
nixosConfigurations = {
leek = mkSystem "leek" {};
fennel = mkSystem "fennel" {};
smgt-dev = mkSystem "smgt-dev" {};
fly = mkSystem "fly" {};
yam = mkSystem "yam" {
extraModules = [
# Fixes to suspend...
nixos-hardware.nixosModules.framework-amd-ai-300-series
];
};
};
}
//
# Per-system outputs (for development shells, etc.)
utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = [smgtvim.packages.${system}.default];
packages = with pkgs; [
stylua
lua-language-server
];
};
};
}
);
}