b
This commit is contained in:
parent
be5d0ed6af
commit
8f8c0daf1f
35
flake.lock
35
flake.lock
|
@ -71,23 +71,18 @@
|
||||||
"gitlab_artifacts_sync": {
|
"gitlab_artifacts_sync": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-unstable"
|
|
||||||
],
|
|
||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1660320402,
|
"lastModified": 1660422558,
|
||||||
"narHash": "sha256-g1BVWbJZHyD1JdcPlRgZR4mza0hqs36Acc5iS5pCl6Q=",
|
"narHash": "sha256-m7Q//YH+drJ2E+YDOaRJia3uWC2RNjubBSewxus5QGo=",
|
||||||
"owner": "ChaotiCryptidz",
|
"path": "/home/chaos/Projects/gitlab_artifacts_sync",
|
||||||
"repo": "gitlab_artifacts_sync",
|
"type": "path"
|
||||||
"rev": "3165cb93a9a68b71d467169e4d98f7fdadf051ad",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "ChaotiCryptidz",
|
"path": "/home/chaos/Projects/gitlab_artifacts_sync",
|
||||||
"repo": "gitlab_artifacts_sync",
|
"type": "path"
|
||||||
"type": "gitlab"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager-unstable": {
|
"home-manager-unstable": {
|
||||||
|
@ -202,6 +197,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1660410996,
|
||||||
|
"narHash": "sha256-arkfX1YYFmwMyDTCguzoOI4epABC41FGQU4J1/G3/9M=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "70b6236f3cbc815f2cae8d597418c714cf83d1c8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-22.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
musicutil.url = "gitlab:ChaotiCryptidz/musicutil";
|
musicutil.url = "gitlab:ChaotiCryptidz/musicutil";
|
||||||
musicutil.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
musicutil.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
|
||||||
gitlab_artifacts_sync.url =
|
gitlab_artifacts_sync.url = "path:/home/chaos/Projects/gitlab_artifacts_sync"; #"gitlab:ChaotiCryptidz/gitlab_artifacts_sync";
|
||||||
"gitlab:ChaotiCryptidz/gitlab_artifacts_sync";
|
|
||||||
gitlab_artifacts_sync.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { ... }@inputs: import ./outputs.nix inputs;
|
outputs = { ... }@inputs: import ./outputs.nix inputs;
|
||||||
|
|
|
@ -2,16 +2,12 @@ _: {
|
||||||
programs.ssh.enable = true;
|
programs.ssh.enable = true;
|
||||||
programs.ssh.matchBlocks = {
|
programs.ssh.matchBlocks = {
|
||||||
"lappy" = {
|
"lappy" = {
|
||||||
user = "lappy.tailscale-internal.genderfucked.monster";
|
user = "lappy.servers.genderfucked.monster";
|
||||||
hostname = "100.115.10.34";
|
hostname = "100.115.10.34";
|
||||||
};
|
};
|
||||||
"hetzner-vm" = {
|
"hetzner-vm" = {
|
||||||
user = "root";
|
user = "root";
|
||||||
hostname = "hetzner-vm.tailscale-internal.genderfucked.monster";
|
hostname = "hetzner-vm.servers.genderfucked.monster";
|
||||||
};
|
|
||||||
"raspberry" = {
|
|
||||||
user = "root";
|
|
||||||
hostname = "raspberry.tailscale-internal.genderfucked.monster";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,6 +143,23 @@ in {
|
||||||
options = "--delete-older-than 4d";
|
options = "--delete-older-than 4d";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
|
||||||
|
nix.buildMachines = [{
|
||||||
|
hostName = "hetzner-vm.servers.genderfucked.monster";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
maxJobs = 6;
|
||||||
|
speedFactor = 2;
|
||||||
|
sshUser = "chaos";
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatures = [ ];
|
||||||
|
}];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
|
||||||
networking.hostName = "lappy";
|
networking.hostName = "lappy";
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, inputs, ... }: {
|
{ lib, inputs, ... }: {
|
||||||
imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ];
|
imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ];
|
||||||
users.users.root.password = "password";
|
users.users.root.password = "owo";
|
||||||
users.users.chaos.password = "password";
|
users.users.chaos.password = "owo";
|
||||||
home-manager.users.chaos.home.sessionVariables = {
|
home-manager.users.chaos.home.sessionVariables = {
|
||||||
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue