Compare commits

...

4 Commits

8 changed files with 83 additions and 36 deletions

57
flake.lock generated
View File

@ -36,6 +36,7 @@
"inputs": { "inputs": {
"cachix": "cachix", "cachix": "cachix",
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"git-hooks": "git-hooks", "git-hooks": "git-hooks",
"nix": "nix", "nix": "nix",
"nixpkgs": [ "nixpkgs": [
@ -43,11 +44,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755961020, "lastModified": 1758366037,
"narHash": "sha256-Fs0CWiUA78Qgbc9zVk+zUN7pEkMPffnd//JsDtUUWBM=", "narHash": "sha256-5PK0eHAWMtwaexQ7PR68gzpeo5WjMY9hq2BcEBHjSLA=",
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "abb198476023189fc45a01bd6502f5ca6ea62bd0", "rev": "ebb56bfe1aa0936de2f8a68c616dabff1285e905",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -76,16 +77,15 @@
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"devenv", "devenv",
"nix",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1733312601, "lastModified": 1756770412,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", "rev": "4524271976b625a4a605beefd893f270620fd751",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -167,11 +167,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755914636, "lastModified": 1758375677,
"narHash": "sha256-VJ+Gm6YsHlPfUCpmRQxvdiZW7H3YPSrdVOewQHAhZN8=", "narHash": "sha256-BLtD+6qWz7fQjPk2wpwyXQLGI0E30Ikgf2ppn2nVadI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8b55a6ac58b678199e5bba701aaff69e2b3281c0", "rev": "edc7468e12be92e926847cb02418e649b02b59dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -186,7 +186,10 @@
"devenv", "devenv",
"flake-compat" "flake-compat"
], ],
"flake-parts": "flake-parts", "flake-parts": [
"devenv",
"flake-parts"
],
"git-hooks-nix": [ "git-hooks-nix": [
"devenv", "devenv",
"git-hooks" "git-hooks"
@ -224,11 +227,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755404379, "lastModified": 1757822619,
"narHash": "sha256-Q6ZxZDBmD/B988Jjbx7/NchxOKIpOKBBrx9Yb0zMzpQ=", "narHash": "sha256-3HIpe3P2h1AUPYcAH9cjuX0tZOqJpX01c0iDwoUYNZ8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "ebbc1c05f786ae39bb5e04e57bf2c10c44a649e3", "rev": "050a5feb5d1bb5b6e5fc04a7d3d816923a87c9ea",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -239,11 +242,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1755615617, "lastModified": 1758277210,
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=", "narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "20075955deac2583bb12f07151c2df830ef346b4", "rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -282,11 +285,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1753595452, "lastModified": 1758273351,
"narHash": "sha256-vqkSDvh7hWhPvNjMjEDV4KbSCv2jyl2Arh73ZXe274k=", "narHash": "sha256-wOv1guIi9THD1NjOtBU2Xh/Avg9xv7nIjsfFSkr1NeQ=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "a5431dd02dc23d9ef1680e67777fed00fe5f7cda", "rev": "e9a574d919a89602d2868621576b2ccae54a5cb0",
"revCount": 665, "revCount": 675,
"type": "git", "type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell" "url": "https://git.outfoxxed.me/quickshell/quickshell"
}, },
@ -335,11 +338,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754988908, "lastModified": 1758007585,
"narHash": "sha256-t+voe2961vCgrzPFtZxha0/kmFSHFobzF00sT8p9h0U=", "narHash": "sha256-HYnwlbY6RE5xVd5rh0bYw77pnD8lOgbT4mlrfjgNZ0c=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "3223c7a92724b5d804e9988c6b447a0d09017d48", "rev": "f77d4cfa075c3de66fc9976b80e0c4fc69e2c139",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -370,11 +373,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754886070, "lastModified": 1757304371,
"narHash": "sha256-MZDmxOkVKL1HY72bliN8Gxh0SYkHUa3W/1fTU2ke36I=", "narHash": "sha256-EZ3Vwgh5xgXuiPUmr9e1a9dEu3hvEWhRurAKpsAwB2A=",
"owner": "youwen5", "owner": "youwen5",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "e37d2b326311320c8571111b3ef89b29d26d4b64", "rev": "3968348af022fe88468ef8de4f9683076e2e5e4b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -21,15 +21,19 @@
desktop = { desktop = {
hyprland.enable = true; hyprland.enable = true;
niri.enable = true; niri.enable = true;
waydroid.enable = true;
xserver = { xserver = {
enable = true; enable = true;
de = "gnome"; de = "gnome";
}; };
}; };
dev.docker = { dev = {
enable = true; docker = {
podman.enable = true; enable = true;
autoprune.enable = true; podman.enable = true;
autoprune.enable = true;
};
qemu.enable = true;
}; };
hardware = { hardware = {
amdgpu.enable = true; amdgpu.enable = true;

View File

@ -1,3 +1,8 @@
{ {
imports = [./hyprland.nix ./niri.nix ./xserver.nix]; imports = [
./hyprland.nix
./niri.nix
./waydroid.nix
./xserver.nix
];
} }

View File

@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.mySystem.desktop.waydroid;
in {
options.mySystem.desktop.waydroid.enable = mkEnableOption "Enables Waydroid";
config = mkIf cfg.enable {
virtualisation.waydroid.enable = cfg.enable;
environment.systemPackages = [ pkgs.waydroid-helper ];
};
}

View File

@ -1,3 +1,3 @@
{ {
imports = [./docker.nix]; imports = [./docker.nix ./qemu.nix];
} }

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
config, config,
pkgs,
... ...
}: }:
with lib; let with lib; let
@ -14,6 +15,9 @@ in {
}; };
config = { config = {
environment.systemPackages = mkIf cfg.podman.enable [
pkgs.podman-desktop
];
virtualisation = { virtualisation = {
docker = mkIf (cfg.enable && !cfg.podman.enable) { docker = mkIf (cfg.enable && !cfg.podman.enable) {
enable = true; enable = true;

19
system/dev/qemu.nix Normal file
View File

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.mySystem.dev.qemu;
in {
options.mySystem.dev.qemu.enable = mkEnableOption "Enable QEMU";
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
qemu
virt-manager
];
systemd.tmpfiles.rules = [ "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" ];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
};
}

View File

@ -74,10 +74,7 @@ with lib; {
dive # A tool for exploring each layer in a docker image dive # A tool for exploring each layer in a docker image
grype # Vulnerability scanner for container images and filesystems grype # Vulnerability scanner for container images and filesystems
kicad # Working on my custom keyboard kicad # Working on my custom keyboard
podman-desktop
podman-compose
tectonic # better LaTeX engine tectonic # better LaTeX engine
virt-manager
zeal zeal
## LSP servers ## LSP servers