This commit is contained in:
Arthur Wambst 2025-04-02 00:27:50 +02:00
parent 8700058231
commit 3eb0da9f17
3 changed files with 52 additions and 6 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1743315132,
"narHash": "sha256-6hl6L/tRnwubHcA4pfUUtk542wn2Om+D4UnDhlDW9BE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "52faf482a3889b7619003c0daec593a1912fddc1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,5 +1,20 @@
(self: super: { {
waybar = super.waybar.overrideAttrs (oldAttrs: { description = "Flake avec un overlay et un module NixOS";
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
}); inputs = {
}) nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: {
overlays.default = import ./overlay.nix;
nixosModules.default = { config, pkgs, ... }: {
nixpkgs.overlays = [ self.overlays.default ];
environment.systemPackages = with pkgs; [
waybar
];
};
};
}

View File

@ -1 +1,5 @@
(self: super: { vtop = super.vesktop; }) (self: super: {
waybar = super.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
})