2019-12-20 05:54:26 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
2021-09-25 11:07:09 +02:00
|
|
|
../../system/desktop
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2021-09-25 11:07:09 +02:00
|
|
|
./hardware-configuration.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
./packages.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./tinc.nix
|
|
|
|
|
|
|
|
#./wifi-access-point.nix
|
2020-01-04 05:57:37 +01:00
|
|
|
#./wireshark.nix
|
2021-11-11 05:19:34 +01:00
|
|
|
./scanner.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
];
|
|
|
|
|
2022-06-22 21:54:57 +02:00
|
|
|
#sops.defaultSopsFile = ../../secrets/sterni.yaml;
|
2019-12-20 05:54:26 +01:00
|
|
|
networking.hostName = "sterni";
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
system.custom.wifi.interfaces = [ "wlp3s0" ];
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
security.wrappers = {
|
2022-01-13 13:40:18 +01:00
|
|
|
pmount = {
|
|
|
|
source = "${pkgs.pmount}/bin/pmount";
|
2022-01-23 20:23:47 +01:00
|
|
|
setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2022-01-13 13:40:18 +01:00
|
|
|
};
|
|
|
|
pumount = {
|
|
|
|
source = "${pkgs.pmount}/bin/pumount";
|
2022-01-23 20:23:47 +01:00
|
|
|
setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2022-01-13 13:40:18 +01:00
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# keybase
|
2019-12-12 06:04:31 +01:00
|
|
|
services.keybase.enable = false;
|
|
|
|
services.kbfs.enable = false;
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2021-05-26 19:20:08 +02:00
|
|
|
programs.custom.steam.enable = true;
|
2019-10-24 02:20:38 +02:00
|
|
|
programs.custom.video.enable = false;
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
# fonts
|
|
|
|
# -----
|
2019-12-20 05:54:26 +01:00
|
|
|
programs.custom.urxvt.fontSize = 12;
|
|
|
|
programs.custom.xterm.fontSize = 12;
|
2019-10-24 02:20:38 +02:00
|
|
|
system.custom.fonts.dpi = 100;
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
docker.enable = false;
|
|
|
|
|
|
|
|
virtualbox = {
|
2019-12-20 05:54:26 +01:00
|
|
|
host.enable = false;
|
|
|
|
guest.x11 = false;
|
2019-10-24 02:20:38 +02:00
|
|
|
guest.enable = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
configuration.desktop = {
|
|
|
|
width = 1366;
|
|
|
|
height = 768;
|
|
|
|
};
|
|
|
|
|
2021-08-18 21:19:27 +02:00
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
|
2019-12-02 23:56:29 +01:00
|
|
|
custom.samba-share = {
|
2022-05-25 18:32:53 +02:00
|
|
|
enable = true;
|
2019-12-02 23:56:29 +01:00
|
|
|
folders = {
|
2019-12-15 09:21:51 +01:00
|
|
|
#public = "/home/palo/movies";
|
|
|
|
share = "/home/share";
|
2022-05-25 18:32:53 +02:00
|
|
|
video = "/home/video-material";
|
2019-12-17 00:44:32 +01:00
|
|
|
#syncthing = "/mnt/syncthing";
|
2019-12-15 09:21:51 +01:00
|
|
|
#movies = "/mnt/syncthing/movies";
|
|
|
|
#series = "/mnt/syncthing/series";
|
2019-12-02 23:56:29 +01:00
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
2019-12-03 03:30:33 +01:00
|
|
|
# enable this to use sidequest
|
|
|
|
programs.adb.enable = true;
|
2020-12-30 01:18:37 +01:00
|
|
|
users.users.mainUser.extraGroups = [ "adbusers" "video" ];
|
|
|
|
|
|
|
|
# for congress and streaming
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
2021-05-15 11:27:34 +02:00
|
|
|
extraPackages = [ pkgs.vaapiIntel ];
|
2021-03-10 19:27:43 +01:00
|
|
|
driSupport = true;
|
2020-12-30 01:18:37 +01:00
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
|
|
};
|
2019-12-03 03:30:33 +01:00
|
|
|
|
2022-07-23 13:22:23 +02:00
|
|
|
# include all modules from flakes
|
|
|
|
# documentation.nixos.includeAllModules = true;
|
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
}
|
|
|
|
|