dotfiles-nixos/nixos/machines/pc-mans/configuration.nix

68 lines
1.7 KiB
Nix
Raw Normal View History

2023-06-06 15:01:28 +00:00
# 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):
2023-06-10 08:59:31 +00:00
inputs.hardware.nixosModules.common-cpu-amd
2023-06-06 15:30:46 +00:00
# inputs.hardware.nixosModules.common-gpu-nvidia
2023-06-06 15:01:28 +00:00
2023-06-18 15:03:56 +00:00
# Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager
2023-06-06 15:01:28 +00:00
./network.nix
2023-06-13 14:12:09 +00:00
2023-06-18 14:32:51 +00:00
../../roles/base.nix
2023-06-18 15:03:56 +00:00
../../roles/desktop.nix
2023-06-06 15:01:28 +00:00
2023-06-18 15:03:56 +00:00
../../modules/mans.nix
../../modules/nvidia.nix
2023-06-18 16:33:03 +00:00
../../modules/docker.nix
2023-06-06 15:01:28 +00:00
2023-06-20 17:10:32 +00:00
../../modules/xmonad.nix
2023-06-06 15:01:28 +00:00
./hardware-configuration.nix
];
2023-06-18 15:03:56 +00:00
services.xserver.displayManager.setupCommands = ''
2023-06-18 14:32:51 +00:00
${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --rate 144.00 --size 1920x1080 --right-of HDMI-0 --primary --output HDMI-0 --auto
'';
2023-06-06 15:01:28 +00:00
2023-06-06 15:23:18 +00:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2023-06-18 14:32:51 +00:00
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
networking.hostId = "b28f793f";
2023-06-06 15:01:28 +00:00
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
2023-06-20 17:10:32 +00:00
services.xserver.displayManager.autoLogin.enable = false;
services.xserver.displayManager.autoLogin.user = "mans";
2023-06-11 07:16:41 +00:00
environment.systemPackages = with pkgs; [
wget
neovim
openssl
2023-06-20 17:10:32 +00:00
tree
file
inetutils
];
2023-06-11 07:16:41 +00:00
2023-06-06 15:01:28 +00:00
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
2023-06-11 15:57:47 +00:00
mans = import ../../../home-manager/home.nix;
2023-06-06 15:01:28 +00:00
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}