mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-31 08:13:06 +01:00
149 lines
3.6 KiB
Nix
149 lines
3.6 KiB
Nix
{
|
||
inputs,
|
||
lib,
|
||
config,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
# You can import other NixOS modules here
|
||
imports = [
|
||
# If you want to use modules from other flakes (such as nixos-hardware):
|
||
# inputs.hardware.nixosModules.common-cpu-amd
|
||
# inputs.hardware.nixosModules.common-ssd
|
||
|
||
# Import your generated (nixos-generate-config) hardware configuration
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
nixpkgs = {
|
||
# You can add overlays here
|
||
overlays = [
|
||
# If you want to use overlays exported from other flakes:
|
||
# neovim-nightly-overlay.overlays.default
|
||
];
|
||
# Configure your nixpkgs instance
|
||
config = {
|
||
allowUnfree = true;
|
||
};
|
||
};
|
||
|
||
nix = {
|
||
# This will add each flake input as a registry
|
||
# To make nix3 commands consistent with your flake
|
||
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
||
|
||
# This will additionally add your inputs to the system's legacy channels
|
||
# Making legacy nix commands consistent as well, awesome!
|
||
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
||
|
||
settings = {
|
||
substituters = [
|
||
"https://cache.nixos.org?priority=10"
|
||
"https://nix-community.cachix.org"
|
||
];
|
||
|
||
auto-optimise-store = true;
|
||
builders-use-substitutes = true;
|
||
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||
keep-derivations = true;
|
||
keep-outputs = true;
|
||
max-jobs = "auto";
|
||
warn-dirty = false;
|
||
};
|
||
|
||
gc = {
|
||
automatic = true;
|
||
dates = "daily";
|
||
options = "--delete-older-than 3d";
|
||
};
|
||
};
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
networking.hostName = "nixos";
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Berlin";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "de_DE.UTF-8";
|
||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||
LC_MONETARY = "de_DE.UTF-8";
|
||
LC_NAME = "de_DE.UTF-8";
|
||
LC_NUMERIC = "de_DE.UTF-8";
|
||
LC_PAPER = "de_DE.UTF-8";
|
||
LC_TELEPHONE = "de_DE.UTF-8";
|
||
LC_TIME = "de_DE.UTF-8";
|
||
};
|
||
|
||
# Configure console keymap
|
||
console.keyMap = "de";
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
|
||
# Enable sound with pipewire.
|
||
sound.enable = true;
|
||
hardware.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
# Enable touchpad support (enabled default in most desktopManager).
|
||
# services.xserver.libinput.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users = {
|
||
jo = {
|
||
isNormalUser = true;
|
||
description = "Jo";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
packages = with pkgs; [
|
||
discord
|
||
# ciscoPacketTracer8
|
||
wireshark
|
||
];
|
||
};
|
||
|
||
work = {
|
||
isNormalUser = true;
|
||
description = "Work";
|
||
initialPassword = "fortnite";
|
||
extraGroups = [ "networkmanager" ];
|
||
packages = with pkgs; [
|
||
jetbrains.webstorm
|
||
jetbrains.phpstorm
|
||
teams-for-linux
|
||
enpass
|
||
];
|
||
};
|
||
};
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = with pkgs; [
|
||
nano
|
||
git
|
||
vscodium
|
||
firefox
|
||
thunderbird
|
||
|
||
gnome.gnome-tweaks
|
||
];
|
||
|
||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||
system.stateVersion = "23.05";
|
||
}
|