summary refs log tree commit diff
path: root/host/Rory-discordbots/configuration.nix
blob: 7252a9e9aae4d40e1d9f5022fe5fad63ac508025 (plain) (blame)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{ config, pkgs, ... }:

{
  imports =
    [
       ../../../modules/packages/vim.nix
    ];

  boot = {
	loader = {
		grub = {
			enable = true;
			version = 2;
			device = "/dev/sda"; # nodev for EFI only
			
			# EFI
			efiSupport = false;
			efiInstallAsRemovable = false;
		};
	};
  };

  networking = {
	hostName = "RoryNix";
	networkmanager.enable = true;
	wireless.enable = false;
  	
	firewall = {
		enable = false;
		# allowedTCPPorts = [ ... ];
		# allowedUDPPorts = [ ... ];
	};
  };

  time.timeZone = "Europe/Brussels";
  i18n.defaultLocale = "en_US.UTF-8";

  services = {
 	xserver = {
		enable = true;
  		videoDrivers = [ "intel" ];
  		desktopManager.gnome.enable = true;
		libinput.enable = true;
		layout = "us";
		modules = [ pkgs.xorg.xf86videointel ];
	};
	gnome = {
		
    		core-developer-tools.enable = false;
		core-utilities.enable = false;
		tracker-miners.enable = false;
		tracker.enable = false;
	};

	printing.enable = false;
	openssh = {
          enable = true;
          extraConfig = ''
            MaxAuthTries 32
            '';
	};	
  };
  security.sudo.wheelNeedsPassword = false;
  nixpkgs.config.allowUnfree = true;

  sound.enable = true;
  hardware.pulseaudio.enable = true;

  users.users.Rory = {
    isNormalUser = true;
    extraGroups = [ "wheel" ];
    packages = with pkgs; [
      #xterm
      gnomeExtensions.vitals
      gnomeExtensions.runcat
    ];
    initialPassword = "password";
  };

  environment.systemPackages = with pkgs; [
    wget
    neofetch
    lnav
    pciutils
    zsh
    gnome-console
    feh
    git
    lsd
    #nerdfonts
    #element-web
    sshfs
    cinnamon.nemo
    firefox-bin
    kitty.terminfo
    glxinfo
    #epiphany
    # Various extensions...
    # - Gnome
    #gnomeExtensions.vitals
    #gnomeExtensions.runcat
    #  - Dont work on gnome 43:
    #gnomeExtensions.undecorate
    #gnomeExtensions.inactivity
    #gnomeExtensions.left-clock
    # - Vim
    vimPlugins.vim-nix
  ];
  fonts.fonts = with pkgs; [
    (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
  ];


  system.stateVersion = "22.11"; # DO NOT EDIT!
}