From 1584a9baa12a0edc19efa300d46964be96ac2b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 27 Feb 2024 04:43:43 +0100 Subject: [PATCH] Add podman --- configuration.nix | 2 +- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 18 ++++++++++++++++++ podman.nix | 10 ++++++++++ 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 podman.nix diff --git a/configuration.nix b/configuration.nix index d5897f8..5aa4177 100644 --- a/configuration.nix +++ b/configuration.nix @@ -23,7 +23,7 @@ # Define on which hard drive you want to install Grub. # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only - # networking.hostName = "nixos"; # Define your hostname. + networking.hostName = "prismo"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..391d4c2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1708807242, + "narHash": "sha256-sRTRkhMD4delO/hPxxi+XwLqPn8BuUq6nnj4JqLwOu0=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cd843ae --- /dev/null +++ b/flake.nix @@ -0,0 +1,18 @@ +{ + description = "Torjus nixos config flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + nixosConfigurations.prismo = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./configuration.nix + ./podman.nix + ]; + }; + }; +} diff --git a/podman.nix b/podman.nix new file mode 100644 index 0000000..36f3b52 --- /dev/null +++ b/podman.nix @@ -0,0 +1,10 @@ +{ pkgs, ...}: + +{ + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + }; + }; +}