This repository has been archived on 2023-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/configuration.nix

71 lines
1.6 KiB
Nix
Raw Permalink Normal View History

{ config, pkgs, lib, ... }@args:
2023-08-23 10:33:28 +00:00
2023-08-30 17:32:53 +00:00
let
stateVersion = "23.05";
2023-09-02 18:49:50 +00:00
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${stateVersion}.tar.gz";
2023-08-30 17:32:53 +00:00
in
2023-09-24 13:52:08 +00:00
{
2023-08-23 10:33:28 +00:00
imports =
2023-08-30 17:32:53 +00:00
[
2023-08-23 10:33:28 +00:00
./hardware-configuration.nix
2023-09-02 18:49:50 +00:00
(import "${home-manager}/nixos")
2023-08-23 10:33:28 +00:00
];
2023-09-04 05:28:36 +00:00
boot = {
loader.systemd-boot.enable = true;
kernelParams = [ "i915.enable_psr=0" ];
};
2023-08-30 17:32:53 +00:00
networking.hostName = "x260";
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
2023-08-23 10:33:28 +00:00
services.xserver = {
enable = true;
2023-09-02 17:24:36 +00:00
displayManager.gdm = {
enable = true;
};
2023-08-28 09:24:53 +00:00
desktopManager.gnome.enable = true;
excludePackages = with pkgs; [ xterm ];
2023-08-23 10:33:28 +00:00
};
home-manager.users.pim = import /home/pim/.config/home-manager/home.nix;
2023-08-23 10:33:28 +00:00
users.users.pim = {
isNormalUser = true;
2023-08-30 17:32:53 +00:00
extraGroups = [ "wheel" ];
2023-08-23 10:33:28 +00:00
};
2023-08-30 17:32:53 +00:00
environment = {
systemPackages = with pkgs; [
wget
curl
git
btop
2023-09-02 18:53:16 +00:00
ripgrep
2023-09-10 16:25:10 +00:00
vim
2023-08-30 17:32:53 +00:00
];
gnome.excludePackages = with pkgs; [ gnome.totem gnome-tour gnome.epiphany gnome.geary gnome-console ];
2023-08-30 17:32:53 +00:00
};
2023-08-23 10:33:28 +00:00
2023-08-30 17:32:53 +00:00
system.stateVersion = stateVersion;
programs.ssh.knownHosts = {
dmz = {
hostNames = ["*.dmz"];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x";
certAuthority = true;
};
hypervisors = {
hostNames = ["*.hyp"];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFzRkH3d/KVJQouswY/DMpenWbDFVOnI3Vut0xR0e1tb";
certAuthority = true;
};
};
2023-10-08 09:04:44 +00:00
security.sudo.extraConfig = ''
Defaults timestamp_timeout=30
'';
2023-08-23 10:33:28 +00:00
}