diff --git a/containers/forgejo/forgejo.nix b/containers/forgejo/forgejo.nix new file mode 100644 index 0000000..2390992 --- /dev/null +++ b/containers/forgejo/forgejo.nix @@ -0,0 +1,46 @@ +{ config, pkgs, lib, ... }: +with lib; +let + cfg = config.services.forgejo; +in { + options.services.forgejo = { + enable = mkEnableOption (mdDoc "Enable forgejo"); + hostAddress = mkOption { + type = types.str; + default = "192.168.0.221"; + }; + localAddress = mkOption { + type = types.str; + default = "192.168.0.222"; + }; + stateDir = mkOption { + type = types.str; + default = "/var/lib/forgejo"; + }; + package = mkOption { + type = types.package; + default = pkgs.forgejo; + }; + + }; + config = mkIf cfg.enable { + containers = { + forgejo = { + autoStart = true; + privateNetwork = true; + hostAddress = cfg.hostAddress; + localAddress = cfg.localAddress; + config = ( cfg: { config, pkgs, ... }: { + services.gitea = cfg; /*{ + enable = true; + package = pkgs.forgejo; + stateDir = /var/lib/forgejo; + + }; */ + networking.useHostResolvConf = mkForce false; + } cfg ); + }; + }; + }; +} + diff --git a/flake.nix b/flake.nix index 4deadff..90dda22 100644 --- a/flake.nix +++ b/flake.nix @@ -63,9 +63,9 @@ }; hermes = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - specialArgs = { inherit inputs; }; + # specialArgs = { inherit inputs; }; modules = [ - ./hosts/hermes/configuration.nix + ( import ./hosts/hermes/configuration.nix inputs ) { environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath; nix.nixPath = [ diff --git a/hosts/titan/configuration.nix b/hosts/titan/configuration.nix index b4ac24c..7faf0a5 100644 --- a/hosts/titan/configuration.nix +++ b/hosts/titan/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, lib, inputs, ... }: +inputs: { config, pkgs, lib, ... }: let nix-software-center = inputs.nix-software-center.packages.${pkgs.system}.nix-software-center; # doom-emacs = inputs.nix-doom-emacs.packages.${pkgs.system}.default; @@ -10,8 +10,9 @@ let in { imports = [ # Include the results of the hardware scan. - ./hardware-configuration.nix + ./hardware/hardware-configuration.nix ./cachix.nix + ( import ./hardware/nvidia.nix inputs ) inputs.nix-but-gigachad.nixosModules.default ]; nh = { @@ -304,20 +305,10 @@ in { }; - # NVIDIA config -# services.xserver.videoDrivers = [ "nvidia" ]; + hardware = { - opengl = { - enable = true; - driSupport = true; - driSupport32Bit = true; - }; - /* - nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.latest; - modesetting.enable = true; - }; - */ + + # bluetooth config bluetooth = { diff --git a/hosts/titan/hardware-configuration.nix b/hosts/titan/hardware/hardware-configuration.nix similarity index 100% rename from hosts/titan/hardware-configuration.nix rename to hosts/titan/hardware/hardware-configuration.nix diff --git a/hosts/titan/hardware/nvidia.nix b/hosts/titan/hardware/nvidia.nix new file mode 100644 index 0000000..8bce86e --- /dev/null +++ b/hosts/titan/hardware/nvidia.nix @@ -0,0 +1,19 @@ +inputs: { config, pkgs, lib, ... }: { + # NVIDIA config + services.xserver.videoDrivers = [ "nvidia" ]; + hardware = { + opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + + nvidia = { + package = config.boot.kernelPackages.nvidiaPackages.stable; + modesetting.enable = true; + powerManagement.enable = true; + open = true; + nvidiaSettings = true; + }; + }; +} \ No newline at end of file diff --git a/users/ultra/home.nix b/users/ultra/home.nix index 85fcef2..c37613d 100644 --- a/users/ultra/home.nix +++ b/users/ultra/home.nix @@ -150,8 +150,13 @@ in { htmlq lite comma - heroic - steam-run + heroic-launcher + steam-run + (lutris.override { + extraPkgs = pkgs: [ + pkgs.wine64Packages.stagingFull + ]; + }) ]; }; @@ -230,6 +235,13 @@ in { jnoortheen.nix-ide # Nix stuff # eamodio.gitlens # Giga git, but with some paid stuff kahole.magit # Giga git + ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ + { + name = "hungry-delete"; + publisher = "jasonlhy"; + version = "1.7.0"; + sha256 = "sha256-TDs6i0/o0j9XFLQvWze4iloa6yRXce/xIqd2CnA5nug="; + } ]; userSettings = { nix = {