dotfiles-nixos/nixos/machines/pc-mans/configuration.nix
2023-06-20 19:10:32 +02:00

68 lines
1.7 KiB
Nix

# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
# https://github.com/Misterio77/nix-starter-configs
{ inputs, lib, config, pkgs, ... }: {
# You can import other NixOS modules here
imports = [
# If you want to use modules from other flakes (such as nixos-hardware):
inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-gpu-nvidia
# Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager
./network.nix
../../roles/base.nix
../../roles/desktop.nix
../../modules/mans.nix
../../modules/nvidia.nix
../../modules/docker.nix
../../modules/xmonad.nix
./hardware-configuration.nix
];
services.xserver.displayManager.setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --rate 144.00 --size 1920x1080 --right-of HDMI-0 --primary --output HDMI-0 --auto
'';
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
networking.hostId = "b28f793f";
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
services.xserver.displayManager.autoLogin.enable = false;
services.xserver.displayManager.autoLogin.user = "mans";
environment.systemPackages = with pkgs; [
wget
neovim
openssl
tree
file
inetutils
];
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
mans = import ../../../home-manager/home.nix;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}