Sync config

This commit is contained in:
Valentin Brandl 2021-12-29 13:06:12 +01:00
parent 0fc2854aee
commit 02f58e26b6
4 changed files with 45 additions and 6 deletions

View File

@ -13,5 +13,5 @@
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "20.09"; # Did you read the comment?
system.stateVersion = "21.11"; # Did you read the comment?
}

View File

@ -19,7 +19,7 @@
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6456-8B97";
{ device = "/dev/disk/by-uuid/0DD8-8BF6";
fsType = "vfat";
};

View File

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
radare2
ghidra-bin
gdb
];
}

View File

@ -3,10 +3,21 @@
{
nixpkgs.config.allowUnfree = true;
nix = {
# for ihp
nix.trustedUsers = [ "root" "me" ];
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
];
}