mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: move to flakes
This commit is contained in:
parent
3447fa3d12
commit
7c5836558a
31 changed files with 921 additions and 726 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ meta, config, lib, sources, tf, ... }:
|
||||
{ meta, config, lib, inputs, tf, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ with lib;
|
|||
type = types.attrsOf (types.submoduleWith {
|
||||
modules = singleton meta.modules.home;
|
||||
specialArgs = {
|
||||
inherit sources tf meta;
|
||||
inherit inputs tf meta;
|
||||
nixos = config;
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, sources, ... }:
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
boot.loader.grub.configurationLimit = 8;
|
||||
|
|
@ -9,10 +9,10 @@
|
|||
experimental-features = nix-command flakes
|
||||
'';
|
||||
nixPath = [
|
||||
"nixpkgs=${sources.nixpkgs}"
|
||||
"nur=${sources.nur}"
|
||||
"arc=${sources.arcexprs}"
|
||||
"ci=${sources.ci}"
|
||||
"nixpkgs=${inputs.nixpkgs}"
|
||||
"nur=${inputs.nur}"
|
||||
"arc=${inputs.arcexprs}"
|
||||
"ci=${inputs.ci}"
|
||||
];
|
||||
sandboxPaths = [
|
||||
"/var/run/nscd/socket"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, meta, lib, pkgs, ... }:
|
||||
{ config, meta, inputs, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = lib.optional (meta.trusted ? secrets) meta.trusted.secrets;
|
||||
imports = lib.optional (meta.trusted ? secrets) meta.trusted.secrets;
|
||||
|
||||
secrets = {
|
||||
root = "/var/lib/kat/secrets";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue