unfree packages no awawa

This commit is contained in:
Tasia Iso 2024-04-22 06:39:13 +02:00
parent eefe3cc4ba
commit 36e9a950b2
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
10 changed files with 52 additions and 41 deletions

View file

@ -7,10 +7,12 @@
...
}: {
imports = [
./locales/paris.nix
./packages/sshd.nix
./packages/neovim.nix
./packages/zsh.nix
./packages/git.nix
./locales/paris.nix
];
nixpkgs = {
@ -43,7 +45,19 @@
auto-optimise-store = true;
};
# systemd-boot
# Unfree packages that can be installe even if "allow-unfree.nix" isn't imported
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Steam
"steam"
"steam-original"
"steam-run"
# Nvidia drivers
"nvidia-x11"
"nvidia-settings"
];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View file

@ -0,0 +1,8 @@
{
# security.auditd.enable = true;
# security.audit.enable = true;
# security.audit.rules = [
# "-a exit,always -F arch=b64 -S execve"
# ];
# You can monitor these logs with journalctl -f. If you don't see any audit logs show up, ssh in from another window and run some commands like ls. You should see a flurry of them show up.
}

View file

@ -1,8 +1,8 @@
{
{lib, ...}: {
# File sync service
services.syncthing = {
enable = true;
user = "user";
user = lib.mkDefault "user";
group = "users";
openDefaultPorts = true;

View file

@ -8,9 +8,8 @@ in {
imports = [
./hardware-configuration.nix
../../common/default.nix
../../common/hardware/raspberry-pi.nix
../../common/packages/sshd.nix
../../common/hardware/raspberry-pi.nix
../../modules/nixos/vedirect-reader.nix
];

View file

@ -9,10 +9,11 @@ in {
./hardware-configuration.nix
../../common/default.nix
../../common/full-install.nix
../../common/allow-unfree.nix
../../common/tasia-packages.nix
../../common/locales/en.nix
../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/nvidia-gpu.nix
../../common/hardware/nvidia-gpu-offload.nix
@ -21,28 +22,18 @@ in {
../../common/hardware/latest-kernel.nix
../../common/de/plasma6.nix
# ../../common/de/hyprland.nix
../../common/de/hyprland.nix
../../common/tasia-packages.nix
../../common/packages/sshd.nix
../../common/packages/steam.nix
# ../../common/packages/syncthing.nix
../../common/packages/syncthing.nix
# ../../modules/nixos/vedirect-reader.nix
../../modules/nixos/vedirect-reader.nix
];
# boot.kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
hardware.nvidia.prime = {
intelBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:0:2:0";
};
networking = {
hostName = "new-new-phoenix";
firewall = {
enable = true;
allowedTCPPorts = [
8080 # ?
12345 # tildefriends
@ -54,6 +45,11 @@ in {
};
};
hardware.nvidia.prime = {
intelBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:0:2:0";
};
users.users.tasia = {
isNormalUser = true;
description = "User";
@ -72,8 +68,9 @@ in {
# services.flatpak.enable = false;
services.syncthing = {
dataDir = lib.mkForce "/home/user";
configDir = lib.mkForce "/data/sync/configuration/";
user = "tasia";
dataDir = lib.mkForce "/home/tasia/Sync/data";
configDir = lib.mkForce "/home/tasia/Sync/configuration";
};
# Needed to build enry
@ -83,13 +80,6 @@ in {
#
];
# security.auditd.enable = true;
# security.audit.enable = true;
# security.audit.rules = [
# "-a exit,always -F arch=b64 -S execve"
# ];
# You can monitor these logs with journalctl -f. If you don't see any audit logs show up, ssh in from another window and run some commands like ls. You should see a flurry of them show up.
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}

View file

@ -2,7 +2,7 @@
pkgs,
lib,
...
}: let
}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
imports = [
@ -11,12 +11,13 @@ in {
../../common/locales/en.nix
../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/ssd.nix
../../common/hardware/btrfs.nix
../../common/packages/syncthing.nix
../../common/packages/adguardhome.nix
../../common/packages/syncthing.nix
];
networking = {

View file

@ -2,17 +2,18 @@
pkgs,
lib,
...
}: let
}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
imports = [
./hardware-configuration.nix
../../common/default.nix
../../common/full-install.nix
../../common/allow-unfree.nix
../../common/tasia-packages.nix
../../common/locales/en.nix
../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/amd-gpu.nix
../../common/hardware/ssd.nix
@ -21,10 +22,9 @@ in {
../../common/de/plasma6.nix
../../common/tasia-packages.nix
../../common/packages/syncthing.nix
../../common/packages/adguardhome.nix
../../common/packages/steam.nix
../../common/packages/syncthing.nix
../../modules/nixos/vedirect-reader.nix
];

View file

@ -1,12 +1,13 @@
{pkgs, ...}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
in {
imports = [
./hardware-configuration.nix
../../common/default.nix
../../common/locales/fr.nix
../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/ssd.nix
../../common/hardware/btrfs.nix
@ -14,7 +15,6 @@ in {
../../common/de/plasma5.nix
../../common/packages/syncthing.nix
../../common/packages/sshd.nix
];
networking.hostName = "stuff";

View file

@ -2,7 +2,7 @@
pkgs,
lib,
...
}: let
}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
imports = [
@ -13,6 +13,7 @@ in {
../../common/locales/en.nix
../../common/locales/en-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/nvidia-gpu.nix
../../common/hardware/ssd.nix
@ -22,11 +23,9 @@ in {
../../common/de/plasma6.nix
# ../../common/de/hyprland.nix
../../common/tasia-packages.nix
../../common/packages/syncthing.nix
../../common/packages/adguardhome.nix
../../common/packages/steam.nix
../../common/packages/sshd.nix
];
networking = {