diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-06 18:38:44 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-06 18:38:44 -0600 |
| commit | 9ff124c8029f505ebfdc79ec53a233ed5228123f (patch) | |
| tree | dc9a7a504d9bc26177bf779e85bd7920cc6a9e0c /hosts/piframe | |
| parent | 9211292d8dff501f8529d2fd0eca3830dca9f160 (diff) | |
| download | nixos-9ff124c8029f505ebfdc79ec53a233ed5228123f.tar.xz nixos-9ff124c8029f505ebfdc79ec53a233ed5228123f.zip | |
piframe init
Diffstat (limited to 'hosts/piframe')
| -rw-r--r-- | hosts/piframe/configuration.nix | 34 | ||||
| -rw-r--r-- | hosts/piframe/hardware-configuration.nix | 24 |
2 files changed, 58 insertions, 0 deletions
diff --git a/hosts/piframe/configuration.nix b/hosts/piframe/configuration.nix new file mode 100644 index 0000000..1572512 --- /dev/null +++ b/hosts/piframe/configuration.nix @@ -0,0 +1,34 @@ +{ config, lib, pkgs, ... }: { + # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) + boot.loader.grub.enable = false; + # Enables the generation of /boot/extlinux/extlinux.conf + boot.loader.generic-extlinux-compatible.enable = true; + + # xserver + services.xserver = { + enable = true; + enableTearFree = true; + }; + + # Enable user timmy + _users.timmy = { + enable = true; + autologin.enable = true; + wifi.enable = true; + }; + + # Configure home + home-manager.users.timmy = { + home.file.".xinitrc" = { + text = '' + #!/bin/sh + exec pix.py + '' + }; + programs.zsh.profileExtra = '' + startx + ''; + }; + + system.stateVersion = "25.11"; +} diff --git a/hosts/piframe/hardware-configuration.nix b/hosts/piframe/hardware-configuration.nix new file mode 100644 index 0000000..ceb755a --- /dev/null +++ b/hosts/piframe/hardware-configuration.nix @@ -0,0 +1,24 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |
