Skip to content

Commit

Permalink
More minimal builds for the embedded stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaumann committed Oct 4, 2024
1 parent 4c85997 commit e4c3643
Show file tree
Hide file tree
Showing 12 changed files with 283 additions and 194 deletions.
31 changes: 30 additions & 1 deletion common/core-pc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
./wifi.nix
./tailscale.nix
];
system.etc.overlay.enable = true;
boot.initrd.systemd.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader = {
Expand All @@ -24,6 +25,23 @@
minipro.enable = true;
adb.enable = true; #adbusers group
yazi.enable = true;
nix-index.enable = true;
nix-index-database.comma.enable = true;
};
services = {
fwupd = {
enable = true;
extraRemotes = ["lvfs-testing"];
};
gvfs.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
printing.enable = true;
udisks2.enable = true;
};
networking.bridges = {
lan = {
Expand All @@ -33,23 +51,34 @@
};
};
environment.systemPackages = with pkgs; [
btop
dfu-util
expect
fh
file
gcc-arm-embedded
gnumake
inotify-tools
jq
just
libnotify
lm_sensors
localsend
lsb-release
lurk
nix-du
nix-tree
openvpn
pv
qmk-udev-rules
quickemu
quickgui
s5cmd
sbctl
spice
spice-gtk
unzip
update-systemd-resolved
zip
];
environment.pathsToLink = ["/libexec"];
}
29 changes: 3 additions & 26 deletions common/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
};

security.sudo.wheelNeedsPassword = false;
environment.pathsToLink = ["/libexec"];

time.timeZone = "Africa/Casablanca";

Expand All @@ -74,6 +73,8 @@
console = {
keyMap = "us";
};
system.etc.overlay.enable = true;
boot.initrd.systemd.enable = true;

# add user's shell into /etc/shells
environment.shells = with pkgs; [
Expand All @@ -87,19 +88,10 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
inputs.ragenix.packages.x86_64-linux.default
btop
expect
file
gnumake
jq
lm_sensors
lsb-release
nix-output-monitor
nixpkgs-review
parallel
ripgrep
zip
unzip
# FIXME next version wcurl
];

Expand All @@ -117,28 +109,13 @@
userServices = true;
};
};
dbus.enable = true;
fstrim.enable = true;
dbus.implementation = "broker";
fwupd = {
enable = true;
extraRemotes = ["lvfs-testing"];
};
gvfs.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
printing.enable = true;
udisks2.enable = true;
dbus.enable = true;
};

programs = {
command-not-found.enable = false;
nix-index.enable = true;
nix-index-database.comma.enable = true;
fish.enable = true;
neovim.enable = true;
vim.defaultEditor = true;
Expand Down
2 changes: 2 additions & 0 deletions common/desktops/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
stylix.targets.plymouth.enable = true;
stylix.targets.console.enable = true;
stylix.autoEnable = true;

stylix.targets.regreet.enable = false;
programs.regreet = {
enable = true;
settings.background = {
Expand Down
41 changes: 41 additions & 0 deletions common/minimal.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This module defines a small NixOS configuration. It does not
# contain any graphical stuff.

{ config, lib, ... }:

with lib;

{

documentation.enable = mkDefault false;

documentation.doc.enable = mkDefault false;

documentation.info.enable = mkDefault false;

documentation.man.enable = mkDefault false;

documentation.nixos.enable = mkDefault false;

# Perl is a default package.
environment.defaultPackages = mkDefault [ ];

environment.stub-ld.enable = false;

# The lessopen package pulls in Perl.
programs.less.lessopen = mkDefault null;

# This pulls in nixos-containers which depends on Perl.
boot.enableContainers = mkDefault false;

programs.command-not-found.enable = mkDefault false;

services.logrotate.enable = mkDefault false;

services.udisks2.enable = mkDefault false;

xdg.autostart.enable = mkDefault false;
xdg.icons.enable = mkDefault false;
xdg.mime.enable = mkDefault false;
xdg.sounds.enable = mkDefault false;
}
Loading

0 comments on commit e4c3643

Please sign in to comment.