this repo has no description
1{
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
4 nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
5 # nur.url = "github:nix-community/NUR";
6
7 nix-darwin = {
8 url = "github:nix-darwin/nix-darwin";
9 inputs.nixpkgs.follows = "nixpkgs";
10 };
11
12 home-manager = {
13 url = "github:nix-community/home-manager";
14 inputs.nixpkgs.follows = "nixpkgs";
15 };
16
17 nix-index-database = {
18 url = "github:nix-community/nix-index-database";
19 inputs.nixpkgs.follows = "nixpkgs";
20 };
21
22 iosevka-solai = {
23 url = "github:ovyerus/iosevka-solai";
24 inputs.nixpkgs.follows = "nixpkgs";
25 };
26
27 niri-flake = {
28 url = "github:sodiboo/niri-flake";
29 inputs.nixpkgs.follows = "nixpkgs";
30 };
31
32 denix = {
33 url = "github:yunfachi/denix";
34 inputs.nixpkgs.follows = "nixpkgs";
35 inputs.nix-darwin.follows = "nix-darwin";
36 inputs.home-manager.follows = "home-manager";
37 };
38
39 dw-proton = {
40 url = "github:imaviso/dwproton-flake";
41 inputs.nixpkgs.follows = "nixpkgs";
42 };
43
44 # zen-browser = {
45 # url = "github:youwen5/zen-browser-flake";
46 # inputs.nixpkgs.follows = "nixpkgs";
47 # };
48 };
49
50 outputs = {
51 denix,
52 home-manager,
53 niri-flake,
54 nix-darwin,
55 nix-index-database,
56 nixpkgs,
57 self,
58 ...
59 } @ inputs: let
60 forSystems = fn:
61 nixpkgs.lib.genAttrs [
62 "aarch64-linux"
63 "aarch64-darwin"
64 "x86_64-darwin"
65 "x86_64-linux"
66 ] (system: fn nixpkgs.legacyPackages.${system});
67 defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;});
68
69 mkConfigurations = moduleSystem:
70 denix.lib.configurations (let
71 homeManagerUser = "ovy";
72 in {
73 inherit moduleSystem homeManagerUser;
74
75 paths = [./hosts ./modules]; #./rices];
76 specialArgs = {inherit inputs moduleSystem homeManagerUser;};
77 });
78 in {
79 packages = forSystems (pkgs: {
80 iconifydl = pkgs.callPackage ./pkgs/iconifydl.nix {};
81 });
82
83 devShells = defaultForSystems (pkgs:
84 pkgs.mkShell {
85 buildInputs = [pkgs.just];
86 });
87
88 nixosConfigurations = mkConfigurations "nixos";
89 darwinConfigurations = mkConfigurations "darwin";
90
91 # nixosModules.serverHomeManager = {...}: {
92 # imports = [home-manager.nixosModules.home-manager];
93
94 # home-manager = {
95 # useGlobalPkgs = true;
96 # useUserPackages = true;
97 # backupFileExtension = "backup";
98 # users.ovy = import ./home/server.nix;
99 # extraSpecialArgs = {inherit inputs;};
100 # };
101 # };
102
103 formatter = forSystems (pkgs: pkgs.alejandra);
104 };
105}