summaryrefslogblamecommitdiff
path: root/hosts/cez/configuration.nix
blob: 6a801b05ecc6af7e9666d4efcbee4c43d75bd8b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                      
 


                              
 
             
                                

                         
                           
                         


                    


                                        
                                               
    
 


                    

                         

       
 
              



                          
                               
    

                             







                                                     
 
{ config, pkgs, ... }:

let
  user = config.userdata.user;
in
{
  imports = [
    ./hardware-configuration.nix
    ./modules/wayland.nix
    ./modules/sshfs.nix
    ./modules/wireguard.nix
    ./modules/network.nix
    ../../common.nix
  ];

  boot = {
    initrd.luks.reusePassphrases = true;
    consoleLogLevel = 3;
    kernelPackages = pkgs.linuxPackages_latest;
  };

  sound = {
    enable = true;
    extraConfig = ''
      defaults.pcm.card 1
      defaults.ctl.card 1
    '';
  };

  services = {
    pipewire = {
      enable = true;
      pulse.enable = true;
    };
    getty.autologinUser = user;
  };

  programs.adb.enable = true;
  users.users.${user} = {
    extraGroups = [ "adbusers" ];
    packages = with pkgs; [
      geoipWithDatabase
      ffmpeg
      (pass.withExtensions (exts: [ exts.pass-otp ]))
    ];
  };
}