mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add patch switch
This commit is contained in:
parent
9033ab614d
commit
ddf8280804
2 changed files with 8 additions and 4 deletions
|
|
@ -42,9 +42,8 @@
|
|||
];
|
||||
};
|
||||
pkgs = import pkgs' { inherit system; };
|
||||
nixpkgs = import pkgs { inherit system; };
|
||||
|
||||
utils = import ./utils.nix { inherit inputs system pkgs nixpkgs; };
|
||||
utils = import ./utils.nix { inherit builtins inputs system pkgs; };
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
# desktop
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
{ inputs, system, pkgs, nixpkgs, ... }: {
|
||||
{ builtins, inputs, system, pkgs, ... }: {
|
||||
mkHost = host:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system pkgs nixpkgs; };
|
||||
specialArgs = let name = builtins.match "muho" (builtins.toString host);
|
||||
in if name == "muho" then {
|
||||
inherit inputs system pkgs;
|
||||
} else {
|
||||
inherit inputs system;
|
||||
};
|
||||
|
||||
modules = [
|
||||
host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue