summaryrefslogtreecommitdiff
path: root/machines/owo/configuration.nix
blob: 162fa6310f4064d17b9af01c5603fa76e22eb979 (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
{ lib, inputs, pkgs, ... }:

{
  imports = [
    ./hardware-configuration.nix
    inputs.home-manager.nixosModules.default
  ] ++ (map (path: ../../modules/${path}) [
    "core/global.nix"
    "ssh.nix"
    "compromyse.nix"
  ]);

  networking.hostName = "owo";

  boot.loader.grub = {
    enable = true;
    forceInstall = true;
    device = "/dev/sda";
  };

  networking.firewall = {
    enable = lib.mkForce true;
    allowedTCPPorts = [ 80 443 22 ];
  };

  programs.fuse.userAllowOther = true;
  home-manager = {
    extraSpecialArgs = { inherit inputs; };
    useGlobalPkgs = true;
    useUserPackages = true;
    users = {
      compromyse = import ./home.nix;
    };
  };
}