octoflake?
This commit is contained in:
parent
d122c3b418
commit
2015647f67
2 changed files with 22 additions and 19 deletions
37
flake.nix
37
flake.nix
|
|
@ -14,30 +14,33 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
octofriend = {
|
||||
url = "path:./appflakes/octofriend";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, plasma-manager, hyprland }:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, plasma-manager, octofriend }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
# Common specialArgs for all systems
|
||||
commonSpecialArgs = {
|
||||
pkgs-unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Helper function to create a system configuration
|
||||
mkSystem = { modules, hardware ? [] }: nixpkgs.lib.nixosSystem {
|
||||
|
||||
commonSpecialArgs = {
|
||||
pkgs-unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
specialArgs = commonSpecialArgs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
] ++ hardware ++ modules;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
|
||||
inherit octofriend-nix;
|
||||
};
|
||||
|
||||
mkSystem = { modules, hardware ? [] }: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = commonSpecialArgs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
] ++ hardware ++ modules;
|
||||
};
|
||||
};
|
||||
# Common desktop modules
|
||||
commonDesktopModules = [
|
||||
./systems/common.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue