Skip to content

Commit

Permalink
metal: move devtools to a module
Browse files Browse the repository at this point in the history
  • Loading branch information
pborzenkov committed Oct 6, 2024
1 parent 9cfa351 commit 1fddcbb
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 24 deletions.
3 changes: 0 additions & 3 deletions nixos/machines/gw/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{
config,
pkgs,
Expand Down
22 changes: 1 addition & 21 deletions nixos/machines/metal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,9 @@
"rd.systemd.show_status=false"
];
supportedFilesystems = ["ntfs"];

binfmt.registrations = {
DOSWin = {
interpreter = "${pkgs.wineWowPackages.waylandFull}/bin/wine64";
magicOrExtension = "MZ";
recognitionType = "magic";
};
};
};

environment.systemPackages = [
config.boot.kernelPackages.perf
pkgs.wineWowPackages.waylandFull
];

programs = {
adb.enable = true;
wireshark = {
enable = true;
package = pkgs.wireshark;
};
};
users.users.pbor.extraGroups = ["adbusers" "kvm" "wireshark"];
users.users.pbor.extraGroups = ["kvm"];

powerManagement = {
enable = true;
Expand Down
2 changes: 2 additions & 0 deletions nixos/machines/metal/modules/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{...}: {
imports = [
./devtools
./networking
./wine
];
}
18 changes: 18 additions & 0 deletions nixos/machines/metal/modules/devtools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
config,
pkgs,
...
}: {
environment.systemPackages = [
config.boot.kernelPackages.perf
];

programs = {
adb.enable = true;
wireshark = {
enable = true;
package = pkgs.wireshark;
};
};
users.users.pbor.extraGroups = ["adbusers" "wireshark"];
}
12 changes: 12 additions & 0 deletions nixos/machines/metal/modules/wine/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{pkgs, ...}: {
boot.binfmt.registrations = {
DOSWin = {
interpreter = "${pkgs.wineWowPackages.waylandFull}/bin/wine64";
magicOrExtension = "MZ";
recognitionType = "magic";
};
};
environment.systemPackages = [
pkgs.wineWowPackages.waylandFull
];
}

0 comments on commit 1fddcbb

Please sign in to comment.