adwaita issue
This commit is contained in:
+61
-86
@@ -341,96 +341,71 @@ 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
|
||||||
{
|
outputs =
|
||||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
inputs@{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
emacs-overlay,
|
||||||
|
catppuccin,
|
||||||
|
zen-browser,
|
||||||
|
hyprland,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
system = "x86_64-linux";
|
||||||
|
user = import ./assets/flake/users/henrov.nix;
|
||||||
|
machines = [
|
||||||
|
"traveldroid"
|
||||||
|
"maindroid"
|
||||||
|
];
|
||||||
|
flakeRoot = ./.; # Define flakeRoot here
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations = lib.genAttrs machines (
|
||||||
|
machine:
|
||||||
|
lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
# Standard NixOS modules
|
||||||
|
nixpkgs.nixosModules.nixos
|
||||||
|
|
||||||
inputs = {
|
# Import machine-specific configurations
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
./assets/flake/machines/traveldroid/top.nix
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
# Catppuccin theme module
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
|
# Anchoring all the other nixes
|
||||||
|
./generated/top.nix
|
||||||
|
|
||||||
|
# Home Manager module
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
||||||
|
userMachine:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit system;
|
||||||
|
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
||||||
|
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||||||
|
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
||||||
};
|
};
|
||||||
emacs-overlay = {
|
|
||||||
url = "github:nix-community/emacs-overlay";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
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@{
|
|
||||||
self,
|
|
||||||
nixpkgs,
|
|
||||||
home-manager,
|
|
||||||
emacs-overlay,
|
|
||||||
catppuccin,
|
|
||||||
zen-browser,
|
|
||||||
hyprland,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
lib = nixpkgs.lib;
|
|
||||||
system = "x86_64-linux";
|
|
||||||
user = import ./assets/flake/users/henrov.nix;
|
|
||||||
machines = [
|
|
||||||
"traveldroid"
|
|
||||||
"maindroid"
|
|
||||||
];
|
|
||||||
flakeRoot = ./.; # Define flakeRoot here
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixosConfigurations = lib.genAttrs machines (
|
|
||||||
machine:
|
|
||||||
lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
|
|
||||||
# Standard NixOS modules
|
|
||||||
nixpkgs.nixosModules.default
|
|
||||||
|
|
||||||
# Import machine-specific configurations
|
|
||||||
./assets/flake/machines/traveldroid/top.nix
|
|
||||||
|
|
||||||
# Catppuccin theme module
|
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
|
||||||
|
|
||||||
# Anchoring all the other nixes
|
|
||||||
./generated/top.nix
|
|
||||||
|
|
||||||
# Home Manager module
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
specialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
|
||||||
userMachine:
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit system;
|
|
||||||
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
|
||||||
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
|
||||||
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
||||||
|
|||||||
+61
-87
@@ -1,90 +1,64 @@
|
|||||||
{
|
outputs =
|
||||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
inputs@{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
emacs-overlay,
|
||||||
|
catppuccin,
|
||||||
|
zen-browser,
|
||||||
|
hyprland,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
system = "x86_64-linux";
|
||||||
|
user = import ./assets/flake/users/henrov.nix;
|
||||||
|
machines = [
|
||||||
|
"traveldroid"
|
||||||
|
"maindroid"
|
||||||
|
];
|
||||||
|
flakeRoot = ./.; # Define flakeRoot here
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations = lib.genAttrs machines (
|
||||||
|
machine:
|
||||||
|
lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
# Standard NixOS modules
|
||||||
|
nixpkgs.nixosModules.nixos
|
||||||
|
|
||||||
inputs = {
|
# Import machine-specific configurations
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
./assets/flake/machines/traveldroid/top.nix
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
# Catppuccin theme module
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
|
# Anchoring all the other nixes
|
||||||
|
./generated/top.nix
|
||||||
|
|
||||||
|
# Home Manager module
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
||||||
|
userMachine:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit system;
|
||||||
|
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
||||||
|
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||||||
|
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
||||||
};
|
};
|
||||||
emacs-overlay = {
|
|
||||||
url = "github:nix-community/emacs-overlay";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
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@{
|
|
||||||
self,
|
|
||||||
nixpkgs,
|
|
||||||
home-manager,
|
|
||||||
emacs-overlay,
|
|
||||||
catppuccin,
|
|
||||||
zen-browser,
|
|
||||||
hyprland,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
lib = nixpkgs.lib;
|
|
||||||
system = "x86_64-linux";
|
|
||||||
user = import ./assets/flake/users/henrov.nix;
|
|
||||||
machines = [
|
|
||||||
"traveldroid"
|
|
||||||
"maindroid"
|
|
||||||
];
|
|
||||||
flakeRoot = ./.; # Define flakeRoot here
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixosConfigurations = lib.genAttrs machines (
|
|
||||||
machine:
|
|
||||||
lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
|
|
||||||
# Standard NixOS modules
|
|
||||||
nixpkgs.nixosModules.default
|
|
||||||
|
|
||||||
# Import machine-specific configurations
|
|
||||||
./assets/flake/machines/traveldroid/top.nix
|
|
||||||
|
|
||||||
# Catppuccin theme module
|
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
|
||||||
|
|
||||||
# Anchoring all the other nixes
|
|
||||||
./generated/top.nix
|
|
||||||
|
|
||||||
# Home Manager module
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
specialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
|
||||||
userMachine:
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit system;
|
|
||||||
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
|
||||||
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
|
||||||
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user