summaryrefslogtreecommitdiff
path: root/hosts/piframe/configuration.nix
blob: 1572512ea0470c50939da68eab48f7ef1dbf25ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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";
}