all repos — dotfiles @ 55a74361d288fd5959556da9dd1d0c3b9f65fe15

my *nix dotfiles

hosts/denna/configuration.nix (view raw)

 1{ config, pkgs, ... }:
 2
 3{
 4  imports =
 5    [
 6      ./hardware-configuration.nix
 7    ];
 8
 9  boot.loader.systemd-boot.enable = true;
10  boot.loader.efi.canTouchEfiVariables = true;
11
12  boot.initrd.luks.devices."luks-0ae4be28-55a1-4a0c-8518-c6d53540cb26".device = "/dev/disk/by-uuid/0ae4be28-55a1-4a0c-8518-c6d53540cb26";
13  networking.hostName = "denna"; # Define your hostname.
14
15  networking.networkmanager.enable = true;
16
17  time.timeZone = "Europe/Helsinki";
18
19  i18n.defaultLocale = "en_US.UTF-8";
20
21  i18n.extraLocaleSettings = {
22    LC_ADDRESS = "en_US.UTF-8";
23    LC_IDENTIFICATION = "en_US.UTF-8";
24    LC_MEASUREMENT = "en_US.UTF-8";
25    LC_MONETARY = "en_US.UTF-8";
26    LC_NAME = "en_US.UTF-8";
27    LC_NUMERIC = "en_US.UTF-8";
28    LC_PAPER = "en_US.UTF-8";
29    LC_TELEPHONE = "en_US.UTF-8";
30    LC_TIME = "en_US.UTF-8";
31  };
32
33  sound.enable = true;
34  hardware.pulseaudio.enable = true;
35  hardware.opengl = {
36    enable = true;
37    extraPackages = with pkgs; [
38      intel-media-driver
39      vaapiIntel
40      vaapiVdpau
41      libvdpau-va-gl
42      intel-compute-runtime
43    ];
44  };
45
46  users.users.icy = {
47    isNormalUser = true;
48    description = "icy";
49    extraGroups = [ "networkmanager" "wheel" ];
50    packages = with pkgs; [ ];
51  };
52
53  nixpkgs.config.allowUnfree = true;
54
55  environment.systemPackages = with pkgs; [
56    vim
57    wget
58    git
59  ];
60
61  services = {
62    openssh.enable = true;
63    tailscale.enable = true;
64  };
65
66  services.radicale = {
67    enable = true;
68    settings = {
69      server = {
70        hosts = [ "0.0.0.0:5232" ];
71      };
72      auth = {
73        type = "htpasswd";
74        htpasswd_filename = "/var/lib/radicale/users";
75        htpasswd_encryption = "bcrypt";
76      };
77      storage = {
78        filesystem_folder = "/var/lib/radicale/collections";
79      };
80    };
81  };
82
83  services.pixelfed = {
84    enable = true;
85    domain = "ani.place";
86    nginx = {
87      serverName = ${config.services.pixelfed.domain};
88    };
89  };
90
91  nix.settings.experimental-features = [ "nix-command" "flakes" ];
92  system.stateVersion = "24.05";
93
94}
95