Compare commits

..

No commits in common. "75486c1abfaa2ffcac4f506d597575005f84afea" and "b1b40c6dba1b557533a94a0c06c1429dc82a9d82" have entirely different histories.

4 changed files with 14 additions and 72 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
result result
.miracle-sink.history

View File

@ -21,6 +21,14 @@ in {
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
services.xserver = {
enable = true;
# displayManager.lightdm.enable = true;
# desktopManager.gnome.enable = true;
videoDrivers = [ "fbdev" ];
};
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
@ -58,17 +66,12 @@ in {
services.xserver = { services.xserver = {
layout = "de"; layout = "de";
displayManager.startx.enable = true;
xkbVariant = ""; xkbVariant = "";
videoDrivers = [ "fbdev" ];
enable = true;
}; };
boot = { boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
kernelParams = [ "quiet" ];
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ]; initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
loader = { loader = {
grub.enable = false; grub.enable = false;
@ -110,32 +113,22 @@ in {
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
system.stateVersion = "23.11"; system.stateVersion = "23.11";
hardware.bluetooth.enable = false;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
hyfetch hyfetch
usbutils usbutils
pciutils pciutils
lm_sensors git
btop btop
git-lfs
lm_sensors
file file
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
raspberrypi-eeprom raspberrypi-eeprom
libraspberrypi libraspberrypi
xorg.xinit
xorg.xorgserver
xorg.xf86inputevdev
xorg.xf86inputsynaptics
xorg.xf86inputlibinput
xorg.xf86videofbdev
tigervnc
jq
(writeShellScriptBin "connectvnc" "startx `which vncviewer` -fullscreen -viewonly grimmauld-nixos:5900 -passwd /root/.vnc/passwd --") # fixme: change address
]; ];
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -20,10 +20,9 @@
nixos-hardware.nixosModules.raspberry-pi-4 nixos-hardware.nixosModules.raspberry-pi-4
agenix.nixosModules.default agenix.nixosModules.default
./miraclecast.nix ./miraclecast.nix
./modules/toolchains.nix
]; ];
}; };
formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra; # formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
}; };
} }

View File

@ -1,49 +0,0 @@
{config, pkgs, ...}: let
git_user = "Grimmauld";
in {
environment.systemPackages = with pkgs; [
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
mkpasswd
];
programs.git = {
enable = true;
lfs.enable = true;
config = {
init.defaultBranch = "main";
credential.username = git_user;
core.editor = "${pkgs.neovim}/bin/nvim";
user.name = git_user;
user.email = "${git_user}@grimmauld.de";
};
};
programs.tmux = {
enable = true;
historyLimit = 42000;
#keyMode = "vi";
};
programs.neovim = {
enable = true;
viAlias = true;
defaultEditor = true;
configure = {
customRC = ''
set number
set hidden
set nocompatible
'';
packages.myVimPackage = with pkgs.vimPlugins; {
# loaded on launch
start = [ vim-nix vim-scala fugitive autoclose-nvim ];
# manually loadable by calling `:packadd $plugin-name`
opt = [ ];
};
};
};
programs.xonsh.enable = true;
}