diff --git a/flake.lock b/flake.lock index 7c5aa16..ad38acd 100644 --- a/flake.lock +++ b/flake.lock @@ -313,22 +313,6 @@ "type": "github" } }, - "nixpkgs_4": { - "locked": { - "lastModified": 1707689078, - "narHash": "sha256-UUGmRa84ZJHpGZ1WZEBEUOzaPOWG8LZ0yPg1pdDF/yM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "f9d39fb9aff0efee4a3d5f4a6d7c17701d38a1d8", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "root": { "inputs": { "api-lyte-dev": "api-lyte-dev", @@ -370,11 +354,11 @@ "slippi-desktop": { "flake": false, "locked": { - "lastModified": 1706482760, - "narHash": "sha256-l6KunEEwadCGaL8MPSOJB1ZB41TXmDsoh27eVdxojoM=", + "lastModified": 1707981080, + "narHash": "sha256-Qd1jLAXWvxA5SHcafgHFRs1+XYz8yXLdQ27+qZ8MYxk=", "owner": "project-slippi", "repo": "slippi-desktop-app", - "rev": "5a32466751445f9963a3c0dedbe513ad127440f7", + "rev": "16ab255406f7ab86846a7786ff15e3543501397c", "type": "github" }, "original": { @@ -408,15 +392,17 @@ }, "ssbm": { "inputs": { - "nixpkgs": "nixpkgs_4", + "nixpkgs": [ + "nixpkgs" + ], "slippi-desktop": "slippi-desktop" }, "locked": { - "lastModified": 1707778705, - "narHash": "sha256-iTOcSrZgxLHotWJT0LZU5FYyfANgblsO6lsxt7nyyA8=", + "lastModified": 1708119120, + "narHash": "sha256-SuZbD4eGwS9OYeGL0V9uPVsW2SyL7MbLXBd5rngZB4c=", "owner": "lytedev", "repo": "ssbm-nix", - "rev": "1f73c658a5327023f6ea01fcb9e040a551e90acd", + "rev": "041f495ab6446e6edd22c1a5fbd48dd704c5b9a6", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index f4a88fc..1e1ec65 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ ssbm.url = "github:lytedev/ssbm-nix"; # I think if I force this to follow nixpkgs, I won't get caching benefits - # ssbm.inputs.nixpkgs.follows = "nixpkgs"; + ssbm.inputs.nixpkgs.follows = "nixpkgs"; # TODO: doesn't (can't?) support the forge mod loader yet # nix-minecraft.url = "github:Infinidoge/nix-minecraft"; diff --git a/modules/home-manager/melee.nix b/modules/home-manager/melee.nix index 0b8f00f..b5e1bf5 100644 --- a/modules/home-manager/melee.nix +++ b/modules/home-manager/melee.nix @@ -1,13 +1,13 @@ {inputs, ...}: { imports = [ {nixpkgs.overlays = [inputs.ssbm.overlay];} - inputs.ssbm.homeManagerModule + # inputs.ssbm.homeManagerModules.default ]; - ssbm = { - slippi-launcher = { - enable = true; - launchMeleeOnPlay = false; - }; - }; + # ssbm = { + # slippi-launcher = { + # enable = false; + # launchMeleeOnPlay = false; + # }; + # }; } diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 993949c..ee99183 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -3,11 +3,12 @@ lib, inputs, outputs, - system, pkgs, modulesPath, ... -}: { +}: let + inherit (pkgs) system; +in { networking.hostName = lib.mkDefault "nixoslyte"; imports = @@ -84,10 +85,10 @@ zellij # zstd ] - ++ (with inputs.home-manager.packages.${pkgs.system}; [ + ++ (with inputs.home-manager.packages.${system}; [ home-manager ]) - ++ (with inputs.helix.packages.${pkgs.system}; [ + ++ (with inputs.helix.packages.${system}; [ helix ]); }; @@ -261,14 +262,15 @@ }; nix = { + # This will additionally add your inputs to the system's legacy channels + # Making legacy nix commands consistent as well, awesome! + # Not sure why I would need this... + # nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; + # This will add each flake input as a registry # To make nix3 commands consistent with your flake registry = lib.mapAttrs (_: value: {flake = value;}) inputs; - # This will additionally add your inputs to the system's legacy channels - # Making legacy nix commands consistent as well, awesome! - nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; - settings = { trusted-users = ["root" "daniel"]; experimental-features = lib.mkDefault ["nix-command" "flakes"]; diff --git a/modules/nixos/melee.nix b/modules/nixos/melee.nix index 6d2dee6..d18e047 100644 --- a/modules/nixos/melee.nix +++ b/modules/nixos/melee.nix @@ -1,12 +1,12 @@ {inputs, ...}: { imports = [ {nixpkgs.overlays = [inputs.ssbm.overlay];} - inputs.ssbm.nixosModule + inputs.ssbm.nixosModules.default ]; ssbm = { cache.enable = true; - # overlay.enabled = true; + # overlay.enable = true; gcc = { rules.enable = true; diff --git a/nixos/base.nix b/nixos/base.nix index 332c866..c36072b 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -1,12 +1,8 @@ -{ - outputs, - flake, - ... -}: { +{outputs, ...}: { # a minimal, familiar setup that I can bootstrap atop imports = with outputs.nixosModules; [ # may need to be tweaked based on the machine's paritioning scheme - flake.diskoConfigurations.standard + outputs.diskoConfigurations.standard desktop-usage wifi ]; diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index 9d1955e..4f8535d 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -690,8 +690,9 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 virtualisation.oci-containers.backend = "podman"; virtualisation.oci-containers.containers = { - autoStart = false; minecraft-jland = { + autoStart = false; + # sending commands: https://docker-minecraft-server.readthedocs.io/en/latest/commands/ image = "docker.io/itzg/minecraft-server"; user = "${toString config.users.users.jland.uid}:${toString config.users.groups.jland.gid}"; diff --git a/nixos/dragon.nix b/nixos/dragon.nix index ae3d7c8..5da8a68 100644 --- a/nixos/dragon.nix +++ b/nixos/dragon.nix @@ -12,7 +12,7 @@ boot.supportedFilesystems = ["ntfs"]; imports = with outputs.nixosModules; [ - flake.diskoConfigurations.standard + outputs.diskoConfigurations.standard inputs.hardware.nixosModules.common-cpu-amd inputs.hardware.nixosModules.common-pc-ssd outputs.nixosModules.pipewire-low-latency @@ -36,15 +36,14 @@ pass firefox-no-tabs melee - # sway-laptop - hyprland + # hyprland ]; - ssbm = { - slippi-launcher = { - isoPath = "${config.home-manager.users.daniel.home.homeDirectory}/../games/roms/dolphin/melee.iso"; - }; - }; + # ssbm = { + # slippi-launcher = { + # isoPath = "${config.home-manager.users.daniel.home.homeDirectory}/../games/roms/dolphin/melee.iso"; + # }; + # }; wayland.windowManager.hyprland = { settings = { diff --git a/nixos/foxtrot.nix b/nixos/foxtrot.nix index 98dfe4a..b56237d 100644 --- a/nixos/foxtrot.nix +++ b/nixos/foxtrot.nix @@ -1,5 +1,4 @@ { - flake, inputs, outputs, # lib, @@ -12,7 +11,7 @@ in { networking.hostName = "foxtrot"; imports = with outputs.nixosModules; [ - flake.diskoConfigurations.standard + outputs.diskoConfigurations.standard inputs.hardware.nixosModules.framework-13-7040-amd desktop-usage # gnome diff --git a/nixos/htpc.nix b/nixos/htpc.nix index 1645281..205ab32 100644 --- a/nixos/htpc.nix +++ b/nixos/htpc.nix @@ -34,7 +34,6 @@ services.gnome.gnome-remote-desktop.enable = true; networking.networkmanager.enable = true; - nix.settings.experimental-features = ["nix-command" "flakes"]; home-manager.users.daniel = { imports = with outputs.homeManagerModules; [linux-desktop]; @@ -85,7 +84,7 @@ powerManagement.enable = false; - boot.loader.grub.enable = true; + # boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"]; diff --git a/nixos/musicbox.nix b/nixos/musicbox.nix index 172a0a9..30b4224 100644 --- a/nixos/musicbox.nix +++ b/nixos/musicbox.nix @@ -1,5 +1,4 @@ { - flake, outputs, # lib, # config, @@ -8,14 +7,11 @@ }: { networking.hostName = "musicbox"; - imports = - [ - flake.diskoConfigurations.unencrypted - ] - ++ (with outputs.nixosModules; [ - desktop-usage - wifi - ]); + imports = with outputs.nixosModules; [ + outputs.diskoConfigurations.unencrypted + desktop-usage + wifi + ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/nixos/router.nix b/nixos/router.nix index c0cb981..5e25367 100644 --- a/nixos/router.nix +++ b/nixos/router.nix @@ -1,5 +1,5 @@ { - flake, + outputs, lib, # outputs, # config, @@ -35,7 +35,7 @@ in { networking.useDHCP = false; imports = [ - flake.diskoConfigurations.unencrypted + outputs.diskoConfigurations.unencrypted ]; # TODO: perform a hardware scan diff --git a/nixos/thablet.nix b/nixos/thablet.nix index 953738f..dc859d9 100644 --- a/nixos/thablet.nix +++ b/nixos/thablet.nix @@ -1,5 +1,4 @@ { - flake, inputs, outputs, lib, @@ -11,7 +10,7 @@ imports = with outputs.nixosModules; [ (modulesPath + "/installer/scan/not-detected.nix") - flake.diskoConfigurations.standard + outputs.diskoConfigurations.standard inputs.hardware.nixosModules.lenovo-thinkpad-x1-yoga desktop-usage fonts diff --git a/nixos/thinker.nix b/nixos/thinker.nix index 15f6064..48ed09a 100644 --- a/nixos/thinker.nix +++ b/nixos/thinker.nix @@ -1,5 +1,4 @@ { - flake, inputs, outputs, lib, @@ -10,7 +9,7 @@ networking.hostName = "thinker"; imports = with outputs.nixosModules; [ - flake.diskoConfigurations.thinker + outputs.diskoConfigurations.thinker inputs.hardware.nixosModules.lenovo-thinkpad-t480 inputs.hardware.nixosModules.common-pc-laptop-ssd desktop-usage