Renewed flake.nix

This commit is contained in:
2026-03-06 23:25:37 +01:00
parent f341ab27c6
commit f07e34f39c
3 changed files with 486 additions and 456 deletions
+334 -324
View File
File diff suppressed because it is too large Load Diff
+44 -34
View File
@@ -341,41 +341,51 @@ This section contains the Org blocks for tangling Nix code into the generated fo
** =flake.nix= ** =flake.nix=
The Nix flake definition for Droidnix. The Nix flake definition for Droidnix.
#+BEGIN_SRC nix :tangle flake.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle flake.nix :noweb tangle :mkdirp yes :eval never-html
url = "github:nix-community/emacs-overlay"; {
inputs.nixpkgs.follows = "nixpkgs"; description = "Droidnix: A dendritic NixOS + Home Manager configuration";
};
catppuccin = {
url = "github:catppuccin/nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = inputs = {
inputs@{ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs, home-manager = {
home-manager, url = "github:nix-community/home-manager";
emacs-overlay, inputs.nixpkgs.follows = "nixpkgs";
catppuccin, };
zen-browser, emacs-overlay = {
hyprland, url = "github:nix-community/emacs-overlay";
... inputs.nixpkgs.follows = "nixpkgs";
}: };
let catppuccin = {
lib = nixpkgs.lib; url = "github:catppuccin/nix";
system = "x86_64-linux"; # Define the system explicitly inputs.nixpkgs.follows = "nixpkgs";
user = import ./assets/flake/users/henrov.nix; };
machines = [ zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs =
inputs@{
nixpkgs,
home-manager,
emacs-overlay,
catppuccin,
zen-browser,
hyprland,
...
}:
let
lib = nixpkgs.lib;
system = "x86_64-linux"; # Define the system explicitly
user = import ./assets/flake/users/henrov.nix;
machines = [
"traveldroid" "traveldroid"
"maindroid" "maindroid"
]; ];
in in
{ {
nixosConfigurations = lib.genAttrs machines ( nixosConfigurations = lib.genAttrs machines (
machine: machine:
lib.nixosSystem { lib.nixosSystem {
inherit system; inherit system;
@@ -394,9 +404,9 @@ nixosConfigurations = lib.genAttrs machines (
]; ];
specialArgs = { inherit user inputs; }; specialArgs = { inherit user inputs; };
} }
); );
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix { devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
inherit (nixpkgs) mkShell; inherit (nixpkgs) mkShell;
}; };
}; };
+44 -34
View File
@@ -1,38 +1,48 @@
url = "github:nix-community/emacs-overlay"; {
inputs.nixpkgs.follows = "nixpkgs"; description = "Droidnix: A dendritic NixOS + Home Manager configuration";
};
catppuccin = {
url = "github:catppuccin/nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = inputs = {
inputs@{ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs, home-manager = {
home-manager, url = "github:nix-community/home-manager";
emacs-overlay, inputs.nixpkgs.follows = "nixpkgs";
catppuccin, };
zen-browser, emacs-overlay = {
hyprland, url = "github:nix-community/emacs-overlay";
... inputs.nixpkgs.follows = "nixpkgs";
}: };
let catppuccin = {
lib = nixpkgs.lib; url = "github:catppuccin/nix";
system = "x86_64-linux"; # Define the system explicitly inputs.nixpkgs.follows = "nixpkgs";
user = import ./assets/flake/users/henrov.nix; };
machines = [ zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs =
inputs@{
nixpkgs,
home-manager,
emacs-overlay,
catppuccin,
zen-browser,
hyprland,
...
}:
let
lib = nixpkgs.lib;
system = "x86_64-linux"; # Define the system explicitly
user = import ./assets/flake/users/henrov.nix;
machines = [
"traveldroid" "traveldroid"
"maindroid" "maindroid"
]; ];
in in
{ {
nixosConfigurations = lib.genAttrs machines ( nixosConfigurations = lib.genAttrs machines (
machine: machine:
lib.nixosSystem { lib.nixosSystem {
inherit system; inherit system;
@@ -51,9 +61,9 @@ nixosConfigurations = lib.genAttrs machines (
]; ];
specialArgs = { inherit user inputs; }; specialArgs = { inherit user inputs; };
} }
); );
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix { devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
inherit (nixpkgs) mkShell; inherit (nixpkgs) mkShell;
}; };
}; };