From f34d26332ee94060d32f7507f0ec4e0b10fc2e96 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Wed, 8 May 2024 13:12:51 +0200 Subject: [PATCH 1/2] Added podman --- configuration.nix | 26 +++++++++++++++++++++----- dotfiles/zshrc | 1 + 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7a4d756..6a15a10 100644 --- a/configuration.nix +++ b/configuration.nix @@ -92,10 +92,23 @@ in { # Allow unfree packages nixpkgs.config.allowUnfree = true; - virtualisation.docker.enable = true; - virtualisation.docker.rootless = { - enable = true; - setSocketVariable = true; + # virtualisation.docker.enable = true; + # virtualisation.docker.rootless = { + # enable = true; + # setSocketVariable = true; + # }; + + virtualisation.containers.enable = true; + virtualisation = { + podman = { + enable = true; + + # Create a `docker` alias for podman, to use it as a drop-in replacement + dockerCompat = true; + + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; }; # List packages installed in system profile. To search, run: @@ -149,7 +162,10 @@ in { bluez wl-clipboard home-manager - file + file + dive # look into docker image layers + podman-tui # status of containers in the terminal + podman-compose # start group of containers for dev (epsonscan2.override { withNonFreePlugins = true; }) ]; diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 2a64a87..81e4148 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -15,6 +15,7 @@ compinit export TERM="xterm" # Shorthands +alias ls='ls --color=yes' alias l='ls -l' alias la='ls -a' alias ll='ls -la' From dae3f8dc49e24836e20e4ec8352d473939b8f129 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Wed, 8 May 2024 20:50:43 +0200 Subject: [PATCH 2/2] Udisks, polkit, fixed boot, fuzzel --- configuration.nix | 8 ++++---- dotfiles/hypr/hyprland.conf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 6a15a10..eeed48f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,9 +14,7 @@ in { ]; # Bootloader. - boot.loader.grub.enable = true; - boot.loader.grub.device = "nodev"; - boot.loader.grub.useOSProber = true; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.supportedFilesystems = [ "ntfs" ]; boot.kernelModules = [ "v4l2loopback" ]; @@ -83,6 +81,8 @@ in { packages = with pkgs; []; }; + services.udisks2.enable = true; + # hardware.pulseaudio.enable = true; # hardware.pulseaudio.support32Bit = true; # nixpkgs.config.pulseaudio = true; @@ -116,7 +116,6 @@ in { environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. neovim - docker curl gsettings-desktop-schemas mlocate @@ -130,6 +129,7 @@ in { obsidian os-prober libsForQt5.kdeconnect-kde + polkit_gnome wireguard-tools git gnupg diff --git a/dotfiles/hypr/hyprland.conf b/dotfiles/hypr/hyprland.conf index b179a44..16c8380 100644 --- a/dotfiles/hypr/hyprland.conf +++ b/dotfiles/hypr/hyprland.conf @@ -114,7 +114,7 @@ bind = $mainMod, Q, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, dolphin bind = $mainMod, V, togglefloating, -bind = $mainMod, R, exec, fuzzel +bind = $mainMod, R, exec, fuzzel --terminal kitty bind = $mainMod, D, exec, dmenu_path | fuzzel -d | sh bind = $mainMod SHIFT, P, exec, ~/scripts/password-select.sh bind = $mainMod SHIFT, U, exec, ~/scripts/usernames.sh