Compare commits

..

No commits in common. "b3858aca0eb0cfe0f9f72e7fbf3302da21fa3db7" and "85ed00a547b39fa903f32bd5594d998b21caa2d7" have entirely different histories.

6 changed files with 17 additions and 33 deletions

View file

@ -53,20 +53,17 @@ Usage:
Available Commands:
boot nixos rebuild boot
build nix build
build A brief description of your command
cache build and push to cachix
ci offload build to GHA
dry poor man's nix flake check
help Help about any command
output show nixosConfiguration attr
switch nixos rebuild switch
update update and run nixos rebuild
Flags:
--flake string path to flake ($OIZYS_DIR or $HOME/oizys)
-h, --help help for oizys
--host string host to build (current host)
-v, --verbose show verbose output
Use "oizys [command] --help" for more information about a command.
```
@ -80,4 +77,3 @@ Oizys was birthed by the goddess Nyx/Nix and embodies suffering and misery. Whic
> [!NOTE]
> I don't use home-manager to manager my shell/user configs. You can find those in my separate `chezmoi`-managed [`dotfiles`](https://git.dayl.in/daylin/dotfiles) repository.

View file

@ -6,5 +6,5 @@
}:
mkOizysModule config "docker" {
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ lazydocker ];
environment.systemPackages = with pkgs; [ lazydocker];
}

View file

@ -1,30 +1,18 @@
{
config,
mkOizysModule,
pkgs,
...
}:
{ config, mkOizysModule, pkgs,... }:
let
win10vm = pkgs.stdenvNoCC.mkDerivation rec {
# TODO: polish this up
win10vm = pkgs.stdenvNoCC.mkDerivation {
name = "win10vm";
unpackPhase = "true";
buildPhase = "mkdir $out";
version = "unstable";
windows10Logo = pkgs.fetchurl {
url = "https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png";
hash = "sha256-uVNgGUo0NZN+mUmvMzyk0HKnhx64uqT4YWGSdeBz3T4=";
};
desktopItem = pkgs.makeDesktopItem {
name = "win10vm";
exec = "VBoxManage startvm win10";
icon = "${windows10Logo}";
# icon = ""; # TODO: add windows icon
desktopName = "Windows 10 VM";
};
installPhase = ''
install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop
'';
};
};
in
mkOizysModule config "vbox" {
virtualisation.virtualbox = {

View file

@ -3,7 +3,7 @@ package cmd
import (
"os"
o "oizys/internal/oizys"
o "oizys/internal"
cc "github.com/ivanpirog/coloredcobra"
"github.com/spf13/cobra"

View file

@ -9,7 +9,6 @@ var updateCmd = &cobra.Command{
Short: "update and run nixos rebuild",
Run: func(cmd *cobra.Command, args []string) {
oizys.GitPull()
oizys.NixosRebuild("switch", args...)
},
}

View file

@ -193,7 +193,8 @@ func parseDryRun(buf string) (*packages, *packages) {
if len(parts[0])+len(parts[1]) == 0 {
log.Println("no changes...")
log.Fatalln("or failed to parse nix build --dry-run output")
log.Println("or I failed to parse it into the expected number of parts")
log.Fatalln("failed to parse nix build --dry-run output")
}
return parsePackages(parts[0], "packages to build"),