mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-07 21:47:31 -06:00
Compare commits
7 commits
82f8f5b8a4
...
a39ecfa546
Author | SHA1 | Date | |
---|---|---|---|
a39ecfa546 | |||
a3b4ea2046 | |||
d7f3c7de3c | |||
d936ff9efa | |||
e3d0f01692 | |||
a811930cd2 | |||
8b435e6eea |
6 changed files with 61 additions and 39 deletions
30
flake.lock
30
flake.lock
|
@ -279,11 +279,11 @@
|
|||
"zig": "zig"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734893212,
|
||||
"narHash": "sha256-wLDWfQLih0VRc7fh5ZYlZ53qRn8WLXn0U/Vxv6A2YaE=",
|
||||
"lastModified": 1735053980,
|
||||
"narHash": "sha256-SEaK0ZkIT+2+Z6naqAsCxTC49jAVgtWmllyz4yT+580=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "28c40f9bae1386893ba4dd46d969b76d61682f78",
|
||||
"revCount": 8393,
|
||||
"rev": "f46a67696ec8606681f38f559e80e5eb95e04c4a",
|
||||
"revCount": 8431,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/ghostty-org/ghostty"
|
||||
},
|
||||
|
@ -388,11 +388,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734907157,
|
||||
"narHash": "sha256-6uf1g8Kz9E5LuIUNomMwH4dylF74DARc5FgW/DdPXl0=",
|
||||
"lastModified": 1734988658,
|
||||
"narHash": "sha256-L1qUns92rVum958hTKOJuU5wEYJdzZUCMGfYCHZ4fsU=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "5f7ad767dbf0bac9ddd6bf6c825fb9ed7921308a",
|
||||
"revCount": 5582,
|
||||
"rev": "2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72",
|
||||
"revCount": 5584,
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/hyprwm/Hyprland/"
|
||||
|
@ -914,16 +914,16 @@
|
|||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1734435836,
|
||||
"narHash": "sha256-kMBQ5PRiFLagltK0sH+08aiNt3zGERC2297iB6vrvlU=",
|
||||
"lastModified": 1734649271,
|
||||
"narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4989a246d7a390a859852baddb1013f825435cee",
|
||||
"rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -1088,11 +1088,11 @@
|
|||
},
|
||||
"stable": {
|
||||
"locked": {
|
||||
"lastModified": 1734529975,
|
||||
"narHash": "sha256-ze3IJksru9dN0keqUxY0WNf8xrwfs8Ty/z9v/keyBbg=",
|
||||
"lastModified": 1734835170,
|
||||
"narHash": "sha256-JG6n9tQET7ZLjvwjH9BdYE6pES/Alcduxv2FDXliuBM=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "72d11d40b9878a67c38f003c240c2d2e1811e72a",
|
||||
"rev": "6df924734e1b626efd70925545de844b1c25246f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
outputs = inputs: (import ./lib inputs).oizysFlake;
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
my-nixpkgs.url = "github:daylinmorgan/nixpkgs/nixos-unstable";
|
||||
|
||||
|
|
|
@ -15,6 +15,21 @@ let
|
|||
}
|
||||
);
|
||||
};
|
||||
|
||||
windows10Logo = pkgs.fetchurl {
|
||||
url = "https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png";
|
||||
hash = "sha256-uVNgGUo0NZN+mUmvMzyk0HKnhx64uqT4YWGSdeBz3T4=";
|
||||
};
|
||||
|
||||
windows-desktopItem = pkgs.makeDesktopItem {
|
||||
name = "win11-vm";
|
||||
exec = ''
|
||||
${pkgs.bash}/bin/sh -c "${pkgs.libvirt}/bin/virsh start win11 && ${pkgs.virt-viewer}/bin/virt-viewer --wait -c qemu:///system win11 && ${pkgs.libvirt}/bin/virsh shutdown win11"
|
||||
'';
|
||||
icon = "${windows10Logo}";
|
||||
desktopName = "Windows 11 VM";
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -45,4 +60,10 @@ in
|
|||
users.users.daylin = {
|
||||
extraGroups = [ "libvirtd" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
(pkgs.runCommand "windows-vm-desktop-item" { } ''
|
||||
install -Dm444 -t $out/share/applications ${windows-desktopItem}/share/applications/*.desktop
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,35 +1,34 @@
|
|||
{
|
||||
config,
|
||||
mkOizysModule,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
# win10vm = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
# name = "win10vm";
|
||||
# unpackPhase = "true";
|
||||
# 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}";
|
||||
# desktopName = "Windows 10 VM";
|
||||
# };
|
||||
# installPhase = ''
|
||||
# install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop
|
||||
# '';
|
||||
# };
|
||||
|
||||
win10vm = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
name = "win10vm";
|
||||
unpackPhase = "true";
|
||||
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}";
|
||||
desktopName = "Windows 10 VM";
|
||||
};
|
||||
installPhase = ''
|
||||
install -Dm0644 {${desktopItem},$out}/share/applications/win10vm.desktop
|
||||
'';
|
||||
};
|
||||
in
|
||||
mkOizysModule config "vbox" {
|
||||
# environment.systemPackages = [ win10vm ];
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
};
|
||||
users.extraGroups.vboxusers.members = [ "daylin" ];
|
||||
environment.systemPackages = [ win10vm ];
|
||||
}
|
||||
|
|
|
@ -10,11 +10,12 @@
|
|||
}:
|
||||
buildNimPackage (finalAttrs: {
|
||||
pname = "nimble";
|
||||
version = "0.16.4";
|
||||
version = "0.16.4-unstable";
|
||||
src = fetchFromGitHub {
|
||||
owner = "nim-lang";
|
||||
repo = "nimble";
|
||||
rev = "v${finalAttrs.version}";
|
||||
rev = "30e7014c8ea865f3b9fc051824fe6dbc6b1d917c";
|
||||
# rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ASodRov4rO/IhjQRRdqVnLWMG1voXWM9F6R6VJd9qkM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
|
1
todo.md
1
todo.md
|
@ -6,6 +6,7 @@
|
|||
|
||||
## software
|
||||
|
||||
- [ ] switch systemd desktop file to libvirt VM
|
||||
- [ ] why is my update ci always building llm and rofi?
|
||||
- [ ] include langservers for enabled languages?
|
||||
<!--[tracking issue](https://github.com/wez/wezterm/issues/5990)-->
|
||||
|
|
Loading…
Reference in a new issue