Created
September 22, 2023 06:13
-
-
Save tgummerer/49127ea932983d3b540dd6d366143929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
# Bootloader. | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.loader.grub.efiSupport = true; | |
boot.loader.grub.enable = true; | |
boot.loader.grub.device = "nodev"; | |
boot.loader.grub.useOSProber = true; | |
hardware.opengl.enable = true; | |
hardware.pulseaudio.enable = true; | |
networking.hostName = "paperweight"; # Define your hostname. | |
# Configure network proxy if necessary | |
# networking.proxy.default = "http://user:password@proxy:port/"; | |
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | |
# Enable networking | |
networking.networkmanager.enable = true; | |
# Set your time zone. | |
time.timeZone = "Europe/Madrid"; | |
# Select internationalisation properties. | |
i18n.defaultLocale = "en_US.UTF-8"; | |
i18n.extraLocaleSettings = { | |
LC_ADDRESS = "en_US.UTF-8"; | |
LC_IDENTIFICATION = "en_US.UTF-8"; | |
LC_MEASUREMENT = "en_US.UTF-8"; | |
LC_MONETARY = "en_US.UTF-8"; | |
LC_NAME = "en_US.UTF-8"; | |
LC_NUMERIC = "en_US.UTF-8"; | |
LC_PAPER = "en_US.UTF-8"; | |
LC_TELEPHONE = "en_US.UTF-8"; | |
LC_TIME = "en_US.UTF-8"; | |
}; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.users.tgummerer = { | |
isNormalUser = true; | |
description = "Thomas Gummerer"; | |
shell = pkgs.zsh; | |
extraGroups = [ "audio" "networkmanager" "wheel" "video" ]; | |
}; | |
programs.zsh.enable = true; | |
programs.light.enable = true; | |
# kanshi systemd service | |
systemd.user.services.kanshi = { | |
description = "kanshi daemon"; | |
serviceConfig = { | |
Type = "simple"; | |
ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file''; | |
}; | |
}; | |
# Allow unfree packages | |
nixpkgs.config.allowUnfree = true; | |
fonts.fonts = with pkgs; [ | |
fira-code | |
fira-code-symbols | |
font-awesome | |
siji | |
noto-fonts | |
noto-fonts-cjk | |
noto-fonts-emoji | |
liberation_ttf | |
mplus-outline-fonts.githubRelease | |
dina-font | |
proggyfonts | |
]; | |
nixpkgs.overlays = [ | |
(import (builtins.fetchTarball { | |
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; | |
})) | |
]; | |
# List packages installed in system profile. To search, run: | |
# $ nix search wget | |
environment.systemPackages = with pkgs; [ | |
# Basics | |
curl vim emacs-git git binutils btop psmisc file tailscale | |
zsh bash | |
home-manager | |
# Development tools | |
perl gnumake gcc10 openssl cacert docker ctags silver-searcher ruby | |
# Desktop programs | |
firefox kitty mu offlineimap spotify | |
wayland | |
]; | |
services.tailscale.enable = true; | |
# xdg-desktop-portal works by exposing a series of D-Bus interfaces | |
# known as portals under a well-known name | |
# (org.freedesktop.portal.Desktop) and object path | |
# (/org/freedesktop/portal/desktop). | |
# The portal interfaces include APIs for file access, opening URIs, | |
# printing and others. | |
services.dbus.enable = true; | |
security.polkit.enable = true; | |
# This value determines the NixOS release from which the default | |
# settings for stateful data, like file locations and database versions | |
# on your system were taken. It‘s perfectly fine and recommended to leave | |
# 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 = "23.05"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment