summaryrefslogtreecommitdiffstats
path: root/jeschli/1systems/reagenzglas/config.nix
blob: 43d9ebf5d951c552bad687801328fed090d679af (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{ config, pkgs, ... }:

{
  imports =
    [
    <stockholm/jeschli>
    <stockholm/jeschli/2configs/emacs.nix>
    <stockholm/jeschli/2configs/firefox.nix>
    <stockholm/jeschli/2configs/rust.nix>
    <stockholm/jeschli/2configs/haskell.nix>
    <stockholm/jeschli/2configs/python.nix>
#       ./desktop.nix
#       ./i3-configuration.nix
       ./hardware-configuration.nix
    ];

  # EFI systemd boot loader
  boot.loader.systemd-boot.enable = true;

  # Wireless network with network manager
  krebs.build.host = config.krebs.hosts.reagenzglas;
  # networking.hostName = "nixos"; # Define your hostname.
  networking.networkmanager.enable = true;

  # Allow unfree
  nixpkgs.config.allowUnfree = true;

  # Select internationalisation properties.
  i18n = {
    consoleKeyMap = "us";
    defaultLocale = "en_US.UTF-8";
  };

  # Set your time zone.
  time.timeZone = "Europe/Berlin";

  # List packages installed in system profile. To search, run:
  # $ nix search wget
  environment.systemPackages = with pkgs; [
    ag
    alacritty
    google-chrome
    chromium
    copyq
    direnv
    go
    git
    rofi
    vim
    wget
  ];

  users.users.ombi = {
     isNormalUser = true;
     extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  };

  users.users.jeschli = {
    isNormalUser = true;
    extraGroups = [ "audio" ];
  };

#  services.xserver.synaptics.enable = true;
  services.xserver.libinput.enable = true;
  services.xserver.libinput.disableWhileTyping = true;

  hardware.pulseaudio.enable = true;

  #Enable ssh daemon
  services.openssh.enable = true;

  #Enable clight
  services.clight.enable = true;
  services.geoclue2.enable = true;
  location.provider = "geoclue2";

  users.users.root.openssh.authorizedKeys.keys = [
    "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDM1xtX/SF2IzfAIzrXvH4HsW05eTBX8U8MYlEPadq0DS/nHC45hW2PSEUOVsH0UhBRAB+yClVLyN+JAYsuOoQacQqAVq9R7HAoFITdYTMJCxVs4urSRv0pWwTopRIh1rlI+Q0QfdMoeVtO2ZKG3KoRM+APDy2dsX8LTtWjXmh/ZCtpGl1O8TZtz2ZyXyv9OVDPnQiFwPU3Jqs2Z036c+kwxWlxYc55FRuqwRtQ48c/ilPMu+ZvQ22j1Ch8lNuliyAg1b8pZdOkMJF3R8b46IQ8FEqkr3L1YQygYw2M50B629FPgHgeGPMz3mVd+5lzP+okbhPJjMrUqZAUwbMGwGzZ ombi@nixos"
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFXgtbgeivxlMKkoEJ4ANhtR+LRMSPrsmL4U5grFUME jeschli@nixos"
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG7C3bgoL9VeVl8pgu8sp3PCOs6TXk4R9y7JKJAHGsfm root@baeckerei"
  ];

  # This value determines the NixOS release with which your system is to be
  # compatible, in order to avoid breaking some software such as database
  # servers. You should change this only after NixOS release notes say you
  # should.
  system.stateVersion = "19.03"; # Did you read the comment?

}