From 2f42b0dbc6152225f3bb2b151ea52f836e6a9a1a Mon Sep 17 00:00:00 2001 From: Isshi0417 Date: Thu, 4 Jul 2024 16:54:21 +0900 Subject: [PATCH] Enable and configure aagl --- flake.lock | 40 ++++++++++++++++++++++++++++++++- flake.nix | 15 ++++++++++++- hosts/default/configuration.nix | 5 ++--- hosts/default/home.nix | 1 - modules/nixos/gaming.nix | 13 +++++++++++ 5 files changed, 68 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 34116e9..f76e901 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "aagl": { + "inputs": { + "flake-compat": "flake-compat", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1719917903, + "narHash": "sha256-UJpEzS99Y/j1QiwpDaB5JLhK85AKBqJ/8jaEiIrEG8Q=", + "owner": "ezKEa", + "repo": "aagl-gtk-on-nix", + "rev": "55d7639b1e6aa6ed8ca5ab196b8acd1890d2fc38", + "type": "github" + }, + "original": { + "owner": "ezKEa", + "repo": "aagl-gtk-on-nix", + "type": "github" + } + }, "base16": { "inputs": { "fromYaml": "fromYaml" @@ -115,6 +136,22 @@ } }, "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_2": { "flake": false, "locked": { "lastModified": 1673956053, @@ -238,6 +275,7 @@ }, "root": { "inputs": { + "aagl": "aagl", "home-manager": "home-manager", "nixpkgs": "nixpkgs", "stylix": "stylix" @@ -252,7 +290,7 @@ "base16-kitty": "base16-kitty", "base16-tmux": "base16-tmux", "base16-vim": "base16-vim", - "flake-compat": "flake-compat", + "flake-compat": "flake-compat_2", "gnome-shell": "gnome-shell", "home-manager": "home-manager_2", "nixpkgs": "nixpkgs_2" diff --git a/flake.nix b/flake.nix index 759876f..3aebebb 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,11 @@ }; stylix.url = "github:danth/stylix"; + + aagl = { + url = "github:ezKEa/aagl-gtk-on-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, ... }@inputs: @@ -21,9 +26,17 @@ nixosConfigurations.alienware = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; modules = [ - inputs.home-manager.nixosModules.default + # Config ./hosts/default/configuration.nix + + # Home-manager + inputs.home-manager.nixosModules.default + + # Stylix inputs.stylix.nixosModules.stylix + + #Aagl + inputs.aagl.nixosModules.default ]; }; }; diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 1037ce9..274639c 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -112,7 +112,8 @@ extraGroups = [ "networkmanager" "wheel" ]; shell = pkgs.zsh; }; - + + # Home Manager home-manager = { extraSpecialArgs = { inherit inputs; }; users = { @@ -120,8 +121,6 @@ }; }; - home-manager.backupFileExtension = "backup"; - # Allow unfree packages nixpkgs.config.allowUnfree = true; diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 09fbbfa..fff9073 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -6,7 +6,6 @@ ../../modules/home-manager/git.nix ../../modules/home-manager/zsh.nix ../../modules/home-manager/themes/basic-gtk.nix - #../../modules/home-manager/vscode.nix ]; # Allow Unfree diff --git a/modules/nixos/gaming.nix b/modules/nixos/gaming.nix index 3c2d738..723ea70 100644 --- a/modules/nixos/gaming.nix +++ b/modules/nixos/gaming.nix @@ -16,4 +16,17 @@ winetricks lutris ]; + + # Aagl config + nix.settings = { + substituters = [ "https://ezkea.cachix.org" ]; + trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ]; + }; + + programs.anime-game-launcher.enable = true; + programs.anime-games-launcher.enable = true; + programs.anime-borb-launcher.enable = true; + programs.honkers-railway-launcher.enable = true; + programs.honkers-launcher.enable = true; + programs.wavey-launcher.enable = true; } \ No newline at end of file