Compare commits
2 commits
33aadaaecd
...
25024f7fbd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25024f7fbd | ||
|
|
e45b2bfd7f |
4 changed files with 35 additions and 69 deletions
11
clan.nix
Normal file
11
clan.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
meta.name = "amarth-services";
|
||||||
|
|
||||||
|
inventory = {
|
||||||
|
machines = {
|
||||||
|
"test-darwin-machine" = {
|
||||||
|
machineClass = "darwin";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
devShells/flake-module.nix
Normal file
12
devShells/flake-module.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
perSystem = { pkgs, inputs', ... }: {
|
||||||
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
|
packages = with pkgs; [
|
||||||
|
bash
|
||||||
|
sops
|
||||||
|
|
||||||
|
inputs'.clan-core.packages.clan-cli
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
42
flake.lock
generated
42
flake.lock
generated
|
|
@ -56,24 +56,6 @@
|
||||||
"url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"
|
"url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devshell": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1741473158,
|
|
||||||
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -165,22 +147,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722073938,
|
|
||||||
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757745802,
|
"lastModified": 1757745802,
|
||||||
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
|
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
|
||||||
|
|
@ -199,9 +165,8 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"clan-core": "clan-core",
|
"clan-core": "clan-core",
|
||||||
"devshell": "devshell",
|
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -251,8 +216,9 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "systems",
|
"owner": "nix-systems",
|
||||||
"type": "indirect"
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
|
|
|
||||||
39
flake.nix
39
flake.nix
|
|
@ -15,24 +15,22 @@
|
||||||
inputs.flake-parts.follows = "flake-parts";
|
inputs.flake-parts.follows = "flake-parts";
|
||||||
};
|
};
|
||||||
|
|
||||||
devshell = {
|
systems = {
|
||||||
url = "github:numtide/devshell";
|
url = "github:nix-systems/default";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, systems, ... }:
|
inputs@{ flake-parts, clan-core, systems, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
||||||
systems = [
|
systems = import systems;
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
flake-parts.flakeModules.modules
|
flake-parts.flakeModules.modules
|
||||||
inputs.clan-core.flakeModules.default
|
clan-core.flakeModules.default
|
||||||
inputs.clan-core.flakeModules.testModule
|
clan-core.flakeModules.testModule
|
||||||
inputs.devshell.flakeModule
|
|
||||||
|
|
||||||
|
./devShells/flake-module.nix
|
||||||
./clanServices/flake-module.nix
|
./clanServices/flake-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -40,27 +38,6 @@
|
||||||
modules = {};
|
modules = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
clan = {
|
clan = import ./clan.nix;
|
||||||
meta.name = "amarth-services";
|
|
||||||
|
|
||||||
inventory = {
|
|
||||||
machines = {
|
|
||||||
"test-darwin-machine" = {
|
|
||||||
machineClass = "darwin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
perSystem = { system, pkgs, ... }: {
|
|
||||||
devshells = {
|
|
||||||
default = {
|
|
||||||
packages = [
|
|
||||||
pkgs.just
|
|
||||||
inputs.clan-core.packages.${system}.clan-cli
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue