move source config from module system to 1systems/*/source.nix
This commit is contained in:
parent
c462776406
commit
01fc0e14ef
@ -8,13 +8,13 @@ with lib;
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
<stockholm/nin>
|
||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
../2configs/copyq.nix
|
||||
../2configs/games.nix
|
||||
../2configs/git.nix
|
||||
../2configs/retiolum.nix
|
||||
../2configs/termite.nix
|
||||
#../2configs/copyq.nix
|
||||
<stockholm/nin/2configs/games.nix>
|
||||
<stockholm/nin/2configs/git.nix>
|
||||
<stockholm/nin/2configs/retiolum.nix>
|
||||
<stockholm/nin/2configs/termite.nix>
|
||||
];
|
||||
|
||||
krebs.build.host = config.krebs.hosts.hiawatha;
|
||||
@ -33,6 +33,11 @@ with lib;
|
||||
fsType = "tmpfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/fam/home";
|
||||
};
|
||||
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/2f319b08-2560-401d-b53c-2abd28f1a010";
|
||||
fsType = "ext2";
|
4
nin/1systems/hiawatha/source.nix
Normal file
4
nin/1systems/hiawatha/source.nix
Normal file
@ -0,0 +1,4 @@
|
||||
import <stockholm/nin/source.nix> {
|
||||
name = "hiawatha";
|
||||
secure = true;
|
||||
}
|
@ -6,11 +6,11 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
<stockholm/nin>
|
||||
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
|
||||
../2configs/retiolum.nix
|
||||
../2configs/weechat.nix
|
||||
../2configs/git.nix
|
||||
<stockholm/nin/2configs/retiolum.nix>
|
||||
<stockholm/nin/2configs/weechat.nix>
|
||||
<stockholm/nin/2configs/git.nix>
|
||||
];
|
||||
|
||||
krebs.build.host = config.krebs.hosts.onondaga;
|
4
nin/1systems/onondaga/source.nix
Normal file
4
nin/1systems/onondaga/source.nix
Normal file
@ -0,0 +1,4 @@
|
||||
import <stockholm/nin/source.nix> {
|
||||
name = "onondaga";
|
||||
secure = true;
|
||||
}
|
@ -3,7 +3,6 @@
|
||||
with import <stockholm/lib>;
|
||||
{
|
||||
imports = [
|
||||
../2configs/nixpkgs.nix
|
||||
../2configs/vim.nix
|
||||
{
|
||||
users.extraUsers =
|
||||
@ -62,14 +61,6 @@ with import <stockholm/lib>;
|
||||
search-domain = "r";
|
||||
build = {
|
||||
user = config.krebs.users.nin;
|
||||
source = let inherit (config.krebs.build) host; in {
|
||||
nixos-config.symlink = "stockholm/nin/1systems/${host.name}.nix";
|
||||
secrets.file =
|
||||
if getEnv "dummy_secrets" == "true"
|
||||
then toString <stockholm/nin/6tests/dummysecrets>
|
||||
else "/home/nin/secrets/${host.name}";
|
||||
stockholm.file = getEnv "PWD";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
krebs.build.source.nixpkgs.git = {
|
||||
url = https://github.com/nixos/nixpkgs;
|
||||
ref = "01c3847";
|
||||
};
|
||||
}
|
19
nin/source.nix
Normal file
19
nin/source.nix
Normal file
@ -0,0 +1,19 @@
|
||||
with import <stockholm/lib>;
|
||||
host@{ name, secure ? false }: let
|
||||
builder = if getEnv "dummy_secrets" == "true"
|
||||
then "buildbot"
|
||||
else "nin";
|
||||
_file = <stockholm> + "/nin/1systems/${name}/source.nix";
|
||||
in
|
||||
evalSource (toString _file) {
|
||||
nixos-config.symlink = "stockholm/nin/1systems/${name}/config.nix";
|
||||
secrets.file = getAttr builder {
|
||||
buildbot = toString <stockholm/nin/2configs/tests/dummy-secrets>;
|
||||
nin = "/home/nin/secrets/${name}";
|
||||
};
|
||||
stockholm.file = toString <stockholm>;
|
||||
nixpkgs.git = {
|
||||
url = https://github.com/nixos/nixpkgs;
|
||||
ref = "01c3847";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user