347 current 2025-03-29 20:41:46 24.11.20250320.7105ae3 6.12.10-zen1 *
This commit is contained in:
parent
cec7ed3818
commit
baf8c080f6
3 changed files with 85 additions and 80 deletions
|
@ -1,8 +1,9 @@
|
||||||
{ pkgs
|
{
|
||||||
, inputs
|
pkgs,
|
||||||
, modulesPath
|
inputs,
|
||||||
, nixos-unstable
|
modulesPath,
|
||||||
, ...
|
nixos-unstable,
|
||||||
|
...
|
||||||
}: {
|
}: {
|
||||||
networking.hostName = "crocoite"; # Define your hostname.
|
networking.hostName = "crocoite"; # Define your hostname.
|
||||||
|
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
|
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
|
||||||
# focused on correctness, usability, and growth –
|
# focused on correctness, usability, and growth –
|
||||||
|
@ -55,7 +56,6 @@
|
||||||
# steam and other stuff seems to depend on perl
|
# steam and other stuff seems to depend on perl
|
||||||
#"${modulesPath}/profiles/perlless.nix"
|
#"${modulesPath}/profiles/perlless.nix"
|
||||||
|
|
||||||
|
|
||||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||||
|
|
||||||
#nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
|
#nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
# move to homemanager?
|
# move to homemanager?
|
||||||
unstable.mumble
|
unstable.mumble
|
||||||
amberol
|
amberol
|
||||||
|
mpv
|
||||||
nuclear
|
nuclear
|
||||||
#zathura
|
#zathura
|
||||||
sioyek
|
sioyek
|
||||||
|
|
|
@ -1,24 +1,28 @@
|
||||||
{ nixos-unstable, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
|
nixos-unstable,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalInterfaces = [ "ve-+" ];
|
internalInterfaces = ["ve-+"];
|
||||||
externalInterface = "ens3";
|
externalInterface = "ens3";
|
||||||
# Lazy IPv6 connectivity for the container
|
# Lazy IPv6 connectivity for the container
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
containers.glitchtip =
|
containers.glitchtip = {
|
||||||
{
|
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostAddress = "192.168.100.10";
|
hostAddress = "192.168.100.10";
|
||||||
localAddress = "192.168.100.11";
|
localAddress = "192.168.100.11";
|
||||||
hostAddress6 = "fc00::1";
|
hostAddress6 = "fc00::1";
|
||||||
localAddress6 = "fc00::2";
|
localAddress6 = "fc00::2";
|
||||||
path = (nixos-unstable.lib.nixosSystem {
|
path =
|
||||||
|
(nixos-unstable.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [{
|
modules = [
|
||||||
|
{
|
||||||
boot.isContainer = true;
|
boot.isContainer = true;
|
||||||
#services.glitchtip = {
|
#services.glitchtip = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
@ -35,7 +39,6 @@
|
||||||
# };
|
# };
|
||||||
#};
|
#};
|
||||||
|
|
||||||
|
|
||||||
# imports = [
|
# imports = [
|
||||||
# #(modulesPath + "/profiles/perlless.nix")
|
# #(modulesPath + "/profiles/perlless.nix")
|
||||||
# (modulesPath + "/profiles/minimal.nix")
|
# (modulesPath + "/profiles/minimal.nix")
|
||||||
|
@ -51,9 +54,8 @@
|
||||||
# (modulesPath + "/profiles/base.nix")
|
# (modulesPath + "/profiles/base.nix")
|
||||||
# ];
|
# ];
|
||||||
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.allowedTCPPorts = [ 80 ];
|
firewall.allowedTCPPorts = [80];
|
||||||
|
|
||||||
# Use systemd-resolved inside the container
|
# Use systemd-resolved inside the container
|
||||||
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
||||||
|
@ -63,7 +65,9 @@
|
||||||
services.resolved.enable = true;
|
services.resolved.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}];
|
}
|
||||||
}).outPath;
|
];
|
||||||
|
})
|
||||||
|
.outPath;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue