aboutsummaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-23 13:44:24 +0100
committerMx Kookie <kookie@spacekookie.de>2020-12-23 13:44:24 +0100
commit02817098e005de516a266b70d344d3b525e9deea (patch)
treea8733b608f4601a4c93ff5fa6a34562ab4875ae1 /infra
parent29419948d7c668798274be78e639b4ace4ea63e5 (diff)
libkookie: add podman, and install additional modules to tempest set
Diffstat (limited to 'infra')
-rw-r--r--infra/libkookie/configuration/workstation/devel/default.nix33
-rw-r--r--infra/libkookie/roots/tempest.nix25
2 files changed, 56 insertions, 2 deletions
diff --git a/infra/libkookie/configuration/workstation/devel/default.nix b/infra/libkookie/configuration/workstation/devel/default.nix
index 968387a9b84d..337767245f61 100644
--- a/infra/libkookie/configuration/workstation/devel/default.nix
+++ b/infra/libkookie/configuration/workstation/devel/default.nix
@@ -19,7 +19,40 @@ in
# Direnv is used to trigger lorri env
direnv
+
+ # Configure userspace container runner
+ podman
];
+ xdg.configFile."podman/containers/libpod.conf" = {
+ text = ''
+ runtime_path = ["${pkgs.runc}/bin/runc"]
+ conmon_path = ["${pkgs.conmon}/bin/conmon"]
+ '';
+ };
+
+ xdg.configFile."podman/containers/policy.json" = {
+ text = builtins.toJSON {
+ default = [ { type = "insecureAcceptAnything"; } ];
+ };
+ };
+
+ xdg.configFile."podman/containers/registries.conf" = {
+ text = ''
+ [registries.search]
+ registries = ['docker.io']
+ '';
+ };
+
+ xdg.configFile."podman/containers/storage.conf" = {
+ text = ''
+ [storage]
+ driver = "zfs"
+ runroot = "/tmp/1000"
+ graphroot = "/home/.local/podman
+ '';
+ };
+
+ # Enable lorri service to build project environments
services.lorri.enable = true;
}
diff --git a/infra/libkookie/roots/tempest.nix b/infra/libkookie/roots/tempest.nix
index 61128d23d8f3..67f67f363d50 100644
--- a/infra/libkookie/roots/tempest.nix
+++ b/infra/libkookie/roots/tempest.nix
@@ -44,6 +44,11 @@ in
# Development tools
(loadModule <configuration/workstation/devel> "default")
+
+ # Various other graphical tools
+ (loadModule <configuration/workstation/pass> "default")
+ (loadModule <configuration/workstation/chat> "default")
+ (loadModule <configuration/workstation/creative> "default")
];
# Configure i3 with the amdgpu driver
@@ -62,6 +67,14 @@ in
#
#
###################################################################
+
+ ###################################################################
+ # NixOS base system options
+ #
+ #
+ #
+
+
# Use the GRUB 2 boot loader.
boot.loader.grub = {
@@ -109,8 +122,8 @@ in
# networking.firewall.allowedTCPPorts = [ 9000 ]; ?????
networking.useDHCP = false;
- networking.interfaces.enp8s0.useDHCP = true;
- #networking.interfaces.eth0.useDHCP = true;
+ #networking.interfaces.enp8s0.useDHCP = true;
+ networking.interfaces.eth0.useDHCP = true;
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
@@ -122,6 +135,14 @@ in
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
services.openssh.enable = true;
+ #
+ #
+ #
+ #
+ ###################################################################
+
+ # This setting is not really relevant on this desktop machine, so
+ # just update it when new stable NixOS releases are branched off
system.stateVersion = "20.09";
# Set a static password for this user