-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.nix
executable file
·117 lines (111 loc) · 3.84 KB
/
temp.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# flake.nix
{
inputs = {
# ...
# aagl-gtk-on-nix = import (builtins.fetchTarball "https://github.com/ezKEa/aagl-gtk-on-nix/archive/main.tar.gz");
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
# aagl.inputs.nixpkgs.follows = "nixpkgs"; # Name of nixpkgs input you want to use
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat.url = "github:edolstra/flake-compat";
flake-compat.flake = false;
nix-software-center.url = "github:snowfallorg/nix-software-center";
arion.url = "github:hercules-ci/arion";
arion.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
# home-manager.url = "github:nix-community/home-manager/release-23.11";
# home-manager.inputs.nixpkgs.follows = "nixpkgs";
# flatpaks.url = "../";
};
outputs = inputs@{ self, nixpkgs, arion, home-manager, nix-flatpak, ... }:
let
system = "x86_64-linux";
defaultPackage.x86_64-darwin = home-manager.defaultPackage.x86_64-darwin;
in
{
# hostname = test-system-module
# nixosConfigurations.test-system-module = nixpkgs.lib.nixosSystem {
# inherit system;
# modules = [
# flatpaks.nixosModules.nix-flatpak
# ./configuration.nix
# ];
# };
# arion = {
# enable = true;
# defaultPackage = "my-arion-project";
# packages = {
# my-arion-project = {
# entrypoint = "shell.nix";
# };
# };
# };
# hostname = test-hm-module
nixosConfigurations = {
homeConfigurations = {
"spiderunderurbed" = {
packages = [
# Add your desired packages here
home-manager
arion
];
configuration = { home-manager, ... }: {
virtualisation = {
arion = {
backend = "docker";
"revsocks" = {
settings = {
services = {
"revsocks".service = {
build = {
context = "/etc/nixos/revsocks";
# target = "prod";
};
network_mode = "host";
command = ["./revsocks" "--connect" "100.71.106.52:8443" "-pass" "Password1234"];
restart = "unless-stopped";
#ports = ["1055:1055"];
#image = "jpillora/chisel";
#command = ["client" "0.0.0.0:3060 100.71.106.52:1080/tcp"];
#Cmd = "echo 'test'";
};
};
};
};
};
};
};
};
};
# defaultPackage = daspidercave;
daspidercave = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
# ./common.nix
home-manager.nixosModules.home-manager
{
# programs.arion.enable = true;
# virtualisation = {
# arion = {
# };#
# };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs.flake-inputs = inputs;
home-manager.users."spiderunderurbed".imports = [
nix-flatpak.homeManagerModules.nix-flatpak
./flatpak.nix
# ./arion.nix
];
home-manager.users.spiderunderurbed.home.stateVersion = "23.11";
}
];
};
};
};
}