From 8db057bc429ff24b2dc2322443920ed7b47d00b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sun, 7 Apr 2024 11:56:15 +0200 Subject: [PATCH] 272 current 1970-01-01 01:00:00 23.11.20240405.72da83d 6.1.84 * --- flake.nix | 16 +++++++++++----- hosts/MaxNixosLaptop/configuration.nix | 3 --- hosts/MaxNixosLaptop/home.nix | 3 +-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 801baf8..148b79e 100644 --- a/flake.nix +++ b/flake.nix @@ -25,16 +25,22 @@ ... } @ inputs: let system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; - in { - overlays = { - pkg-sets = final: prev: { - unstable = import inputs.unstable {system = final.system;}; + unstable = final: prev: { + unstable = import inputs.unstable { + system = final.system; + config = final.config; }; }; + pkgs = import nixpkgs { + inherit system; + overlays = [unstable]; + config.allowUnfree = true; + }; + in { nixosConfigurations."MaxNixosLaptop" = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; + inherit pkgs; }; system = "x86_64-linux"; modules = [ diff --git a/hosts/MaxNixosLaptop/configuration.nix b/hosts/MaxNixosLaptop/configuration.nix index 00943ee..88957a8 100644 --- a/hosts/MaxNixosLaptop/configuration.nix +++ b/hosts/MaxNixosLaptop/configuration.nix @@ -73,9 +73,6 @@ shell = pkgs.zsh; }; - # Allow unfree packages - nixpkgs.config.allowUnfree = true; - home-manager = { extraSpecialArgs = {inherit inputs;}; users = { diff --git a/hosts/MaxNixosLaptop/home.nix b/hosts/MaxNixosLaptop/home.nix index b59bfce..b76f969 100644 --- a/hosts/MaxNixosLaptop/home.nix +++ b/hosts/MaxNixosLaptop/home.nix @@ -26,8 +26,6 @@ home.username = "max"; home.homeDirectory = "/home/max"; - nixpkgs.config.allowUnfree = true; - # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes. @@ -66,6 +64,7 @@ freecad flatpak wine + unstable.gyroflow ]; home.sessionVariables = {