diff --git a/flake.nix b/flake.nix index 3730b5d..54bae0a 100644 --- a/flake.nix +++ b/flake.nix @@ -85,7 +85,7 @@ modules = modules ++ [ ./base.nix "${self}/hosts/${hostname}" tmpConfig ({ home-manager.extraSpecialArgs = { inherit inputs; - packages = self.packages.${system}; + flakes = flake inputs system; }; # still needed even if using networkd networking.hostName = hostname; @@ -100,12 +100,12 @@ # This makes commandline tools like 'nix run nixpkgs#hello' # and 'nix-shell -p hello' use the same channel as system was built with nix.registry.nixpkgs.flake = inputs.nixpkgs; - #nix.registry.nixpkgs-unstable.flake = inputs.unstable; - nix.registry.nixpkgs-unstable.flake = "github:NixOS/nixpkgs/nixos-unstable"; + nix.registry.nixpkgs-unstable.flake = inputs.unstable; + #nix.registry.nixpkgs-unstable.flake.url = "github:NixOS/nixpkgs/nixos-unstable"; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" - #"nixpkgs-unstable=${inputs.unstable}" - "nixpkgs-unstable=github:NixOS/nixpkgs/nixos-unstable" + "nixpkgs-unstable=${inputs.unstable}" + #"nixpkgs-unstable=github:NixOS/nixpkgs/nixos-unstable" ]; })]; }; @@ -133,14 +133,14 @@ sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia-nonprime ]); }; - homeConfigurations = forAllSystems ({ pkgs, system, ... }: let + homeConfigurations = forAllSystems ({ pkgs, flakes, ... }: let mkHome = user: home: modules: home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = modules ++ [{ home.username = user; home.homeDirectory = home; }]; - extraSpecialArgs.packages = self.packages.${system}; + extraSpecialArgs.flakes = flakes; }; in { pbsds = mkHome "pbsds" "/home/pbsds" [ ./users/pbsds/home ]; diff --git a/hosts/bolle/default.nix b/hosts/bolle/default.nix index 7df3648..e0615e1 100644 --- a/hosts/bolle/default.nix +++ b/hosts/bolle/default.nix @@ -10,7 +10,6 @@ ../../hardware/opengl-intel.nix ../../profiles/auto-upgrade.nix ../../profiles/sshd.nix - ../../profiles/podman.nix ../../users # home-manager ../../users/pbsds diff --git a/hosts/sopp/default.nix b/hosts/sopp/default.nix index 96de704..fa91619 100644 --- a/hosts/sopp/default.nix +++ b/hosts/sopp/default.nix @@ -26,6 +26,7 @@ ../../profiles/auto-upgrade.nix ../../profiles/sshd.nix ../../profiles/no-suspend.nix + ../../profiles/podman.nix ../../users # home-manager ../../users/pbsds diff --git a/profiles/no-suspend.nix b/profiles/no-suspend.nix index dbed9cf..59b9c5f 100644 --- a/profiles/no-suspend.nix +++ b/profiles/no-suspend.nix @@ -4,5 +4,5 @@ systemd.targets.hibernate.enable = false; systemd.targets.hybrid-sleep.enable = false; - services.xserver.displayManager.gdm.autoSuspend = true; + services.xserver.displayManager.gdm.autoSuspend = false; } diff --git a/profiles/podman.nix b/profiles/podman.nix index 9da58de..48fdb6b 100644 --- a/profiles/podman.nix +++ b/profiles/podman.nix @@ -1,8 +1,15 @@ +{ pkgs, ... }: { virtualisation.podman.enable = true; virtualisation.podman.dockerCompat = true; # alias docker to podman virtualisation.oci-containers.backend = "podman"; # default + environment.systemPackages = with pkgs; [ + #podman-compose + podman-tui + ]; + + # Required for containers under podman-compose to be able to talk to each other. #virtualisation.defaultNetwork.settings.dns_enabled = true; diff --git a/users/pbsds/home/profiles/mpv.nix b/users/pbsds/home/profiles/mpv.nix index 55521b3..898047e 100644 --- a/users/pbsds/home/profiles/mpv.nix +++ b/users/pbsds/home/profiles/mpv.nix @@ -11,7 +11,7 @@ #thumbnail # TOO SLOW #mpris # TODO: thumbfast - flakes.self.pkg.mpv-webm # activate with SHIFT+w + flakes.self.pkgs.mpv-webm # activate with SHIFT+W # from https://github.com/mpv-player/mpv/issues/9767#issuecomment-1024831645 ({ scriptName = "dynamic-subs.lua"; } // (pkgs.writeTextDir "share/mpv/scripts/dynamic-subs.lua" '' mp.add_hook('on_load', 10, function()