Skip to content

Commit 62e713d

Browse files
committed
feat: add ankama-launcher
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
1 parent 020d1e5 commit 62e713d

5 files changed

Lines changed: 48 additions & 35 deletions

File tree

flake.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,27 @@
6060
"wsl"
6161
];
6262
system = "x86_64-linux";
63+
6364
eachSystem =
6465
f: nixpkgs-stable.lib.genAttrs (import systems) (system: f nixpkgs-stable.legacyPackages.${system});
6566
lib = nixpkgs-stable.lib;
6667
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
68+
69+
allowUnfreePredicate =
70+
pkg:
71+
builtins.elem (lib.getName pkg) [
72+
"ankama-launcher"
73+
"nvidia-x11"
74+
"nvidia-settings"
75+
"steam"
76+
"steam-original"
77+
"steam-run"
78+
"steam-unwrapped"
79+
];
6780
in
6881
{
6982
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
83+
7084
checks = eachSystem (pkgs: {
7185
formatting = treefmtEval.${pkgs.system}.config.build.check self;
7286
});
@@ -81,9 +95,17 @@
8195
username
8296
inputs
8397
;
84-
pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux";
98+
# pkgs-unstable avec la configuration unfree
99+
pkgs-unstable = import nixpkgs-unstable {
100+
inherit system;
101+
config.allowUnfreePredicate = allowUnfreePredicate;
102+
};
85103
};
86-
modules = [ ./hosts ];
104+
modules = [
105+
./hosts
106+
# Configuration unfree pour nixpkgs stable
107+
{ nixpkgs.config.allowUnfreePredicate = allowUnfreePredicate; }
108+
];
87109
}
88110
);
89111
};

home/user/programs/hyprpanel.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
terminal = "ghostty";
159159

160160
theme = {
161-
name = "catppuccin_macchiato";
162161
font = {
163162
name = "Ubuntu Nerd Font";
164163
size = "1.0rem";

system/game.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
pkgs,
3+
pkgs-unstable,
34
config,
45
lib,
56
...
@@ -22,6 +23,7 @@ in
2223
protonup
2324
mangohud # monitoring FPS, temperatures, CPU/GPU load and more
2425
heroic # epic, gog games
26+
pkgs-unstable.ankama-launcher # game launcher
2527
];
2628

2729
programs = {

system/nixsettings.nix

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
inputs,
23
environment,
34
pkgs,
45
lib,
@@ -32,15 +33,4 @@
3233
options = "--delete-older-than 7d";
3334
};
3435
};
35-
36-
nixpkgs.config.allowUnfreePredicate =
37-
pkg:
38-
builtins.elem (lib.getName pkg) [
39-
"nvidia-x11"
40-
"nvidia-settings"
41-
"steam"
42-
"steam-original"
43-
"steam-run"
44-
"steam-unwrapped"
45-
];
4636
}

0 commit comments

Comments
 (0)