Sync config
This commit is contained in:
@ -3,10 +3,21 @@
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# for ihp
|
||||
nix.trustedUsers = [ "root" "me" ];
|
||||
nix = {
|
||||
# for ihp
|
||||
trustedUsers = [ "root" "me" ];
|
||||
# package = pkgs.nixUnstable;
|
||||
# extraOptions = ''
|
||||
# experimental-features = nix-command flakes
|
||||
# '';
|
||||
};
|
||||
|
||||
boot = {
|
||||
# function keys on keychron keyboard won't work otherwise
|
||||
# extraModprobeConfig = "options hid_apple fnmode=2";
|
||||
kernel.sysctl = {
|
||||
"module.hid_apple.parameters.fnmode" = 2;
|
||||
};
|
||||
# use latest kernel
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
@ -21,6 +32,9 @@
|
||||
preLVM = true;
|
||||
};
|
||||
};
|
||||
|
||||
# loopback webcam
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
};
|
||||
|
||||
networking.hostName = "w1n5t0n"; # Define your hostname.
|
||||
@ -68,13 +82,16 @@
|
||||
xfce.thunar-volman
|
||||
# mounting external devices in thunar
|
||||
gvfs
|
||||
|
||||
# loopback webcam
|
||||
linuxPackages.v4l2loopback
|
||||
];
|
||||
|
||||
# mounting external devices as user
|
||||
services.udisks2.enable = true;
|
||||
|
||||
# required for nextcloud
|
||||
services.gnome3.gnome-keyring.enable = true;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
@ -84,6 +101,7 @@
|
||||
# virtualisation.podman = {
|
||||
# enable = true;
|
||||
# dockerCompat = true;
|
||||
# dockerSocket.enable = true;
|
||||
# };
|
||||
# virtualisation.lxd.enable = true;
|
||||
# virtualisation.virtualbox.host.enable = true;
|
||||
@ -132,7 +150,13 @@
|
||||
# anonymousClients.allowAll = true;
|
||||
# };
|
||||
};
|
||||
opengl.driSupport32Bit = true;
|
||||
opengl = {
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocm-opencl-icd
|
||||
rocm-opencl-runtime
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# set keyboard layout
|
||||
@ -191,6 +215,8 @@
|
||||
"docker"
|
||||
"networkmanager"
|
||||
"plugdev"
|
||||
"users"
|
||||
"uucp"
|
||||
"vboxusers"
|
||||
"video"
|
||||
"wheel"
|
||||
@ -211,6 +237,10 @@
|
||||
# Enable NTFS support
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
|
||||
security.sudo = {
|
||||
extraConfig = "Defaults insults";
|
||||
};
|
||||
|
||||
imports =
|
||||
[
|
||||
./subroles/dev.nix
|
||||
@ -218,6 +248,7 @@
|
||||
./subroles/internet.nix
|
||||
./subroles/office.nix
|
||||
./subroles/photography.nix
|
||||
./subroles/reversing.nix
|
||||
./subroles/university.nix
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user