mirror of
https://github.com/flynx/nixos.git
synced 2025-10-29 11:10:10 +00:00
Compare commits
3 Commits
7cc79e3e0d
...
82df41f2a4
| Author | SHA1 | Date | |
|---|---|---|---|
| 82df41f2a4 | |||
| 0b222b7990 | |||
| e76904016f |
@ -1,12 +1,13 @@
|
|||||||
#
|
#
|
||||||
# TODO:
|
# TODO:
|
||||||
# - second language layout
|
# - second language keyboard layout
|
||||||
# - language switching in Gnome (keyboard)
|
# - language switching in Gnome (keyboard)
|
||||||
# - hibernation
|
# - hibernation -- DONE
|
||||||
# - down works
|
# - suspend -- DONE
|
||||||
# - up broken
|
|
||||||
# - suspend (broken)
|
|
||||||
# - split into logical components (OS, hardware, ...)
|
# - split into logical components (OS, hardware, ...)
|
||||||
|
# - tablet-mode
|
||||||
|
# - sensors
|
||||||
|
# - latex -- DONE
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
@ -15,7 +16,24 @@
|
|||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
## LaTeX...
|
||||||
|
#let tex = pkg.texlive.combine {
|
||||||
|
# inherit (pkgs.texlive) scheme-basic
|
||||||
|
# kvoptions calc xargs ifthen iftex pgffor xint xinttools listofitems xkeyval
|
||||||
|
# etoolbox changepage pdfcomment eso-pic environ numprint trimclip xcolor
|
||||||
|
# pagecolor colorspace graphicx adjustbox textpos fancyvrb flowfram rotating
|
||||||
|
# fancyhdr pdfpages geometry;
|
||||||
|
# #(setq org-latex-compiler "lualatex")
|
||||||
|
# #(setq org-preview-latex-default-process 'dvisvgm)
|
||||||
|
#};
|
||||||
|
#in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@ -25,8 +43,18 @@
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# fix touchpad not working after resume on ThinkPad Yoga S1...
|
# XXX this is the same swap partition as fedora...
|
||||||
# XXX move to device-specific config file...
|
boot.resumeDevice = "/dev/disk/by-uuid/6ac0c126-f701-43a5-8576-09cc76be1409";
|
||||||
|
#boot.kernelParams = [ "systemd.unified_cgroup_hierarchy=0" "resume_offset=13465600" ];
|
||||||
|
swapDevices = [
|
||||||
|
# {
|
||||||
|
# device = "/var/lib/swapfile";
|
||||||
|
# size = 8*1024;
|
||||||
|
# }
|
||||||
|
{ device = "/dev/disk/by-uuid/6ac0c126-f701-43a5-8576-09cc76be1409"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
# XXX move to hardware-specific-file...
|
||||||
powerManagement.resumeCommands = ''
|
powerManagement.resumeCommands = ''
|
||||||
${pkgs.kmod}/bin/modprobe -r i2c_i801
|
${pkgs.kmod}/bin/modprobe -r i2c_i801
|
||||||
${pkgs.kmod}/bin/modprobe i2c_i801
|
${pkgs.kmod}/bin/modprobe i2c_i801
|
||||||
@ -115,10 +143,12 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
environment.localBinInPath = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@ -131,7 +161,7 @@
|
|||||||
#tdrop
|
#tdrop
|
||||||
tmux
|
tmux
|
||||||
tree
|
tree
|
||||||
htop
|
htop gtop
|
||||||
iotop
|
iotop
|
||||||
iftop
|
iftop
|
||||||
|
|
||||||
@ -145,31 +175,63 @@
|
|||||||
#syncthing
|
#syncthing
|
||||||
|
|
||||||
tldr
|
tldr
|
||||||
|
bat
|
||||||
|
|
||||||
|
# LaTeX
|
||||||
|
(texlive.combine {
|
||||||
|
inherit (texlive) scheme-medium
|
||||||
|
# missing:
|
||||||
|
# calc graphicx ifthen pgffor rotating trimclip xinttools
|
||||||
|
kvoptions xargs ifthenx iftex xint listofitems xkeyval
|
||||||
|
etoolbox changepage pdfcomment eso-pic environ numprint xcolor
|
||||||
|
pagecolor colorspace graphics adjustbox textpos fancyvrb flowfram
|
||||||
|
fancyhdr pdfpages geometry
|
||||||
|
hardwrap catchfile
|
||||||
|
# doc...
|
||||||
|
titlesec hypdoc doctools needspace xstring listings imakeidx
|
||||||
|
latexmk;
|
||||||
|
#(setq org-latex-compiler "lualatex")
|
||||||
|
#(setq org-preview-latex-default-process 'dvisvgm)
|
||||||
|
})
|
||||||
|
|
||||||
# GUI
|
# GUI
|
||||||
keepassxc
|
keepassxc
|
||||||
ulauncher
|
ulauncher
|
||||||
kitty
|
kitty
|
||||||
tilix
|
tilix
|
||||||
|
logseq
|
||||||
|
# XXX this does not work on default gnome...
|
||||||
|
#wl-gammactl
|
||||||
|
nerdfonts
|
||||||
|
nextcloud-client
|
||||||
|
|
||||||
|
# dev
|
||||||
|
gnumake
|
||||||
|
|
||||||
#gnomeExtensions.ddterm
|
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-tweaks
|
||||||
|
gnome.dconf-editor
|
||||||
|
gnomeExtensions.quick-settings-tweaker
|
||||||
gnomeExtensions.quake-mode
|
gnomeExtensions.quake-mode
|
||||||
gnomeExtensions.gsconnect
|
gnomeExtensions.gsconnect
|
||||||
gnomeExtensions.dash-to-panel
|
gnomeExtensions.dash-to-panel
|
||||||
gnomeExtensions.blur-my-shell
|
gnomeExtensions.blur-my-shell
|
||||||
gnomeExtensions.tray-icons-reloaded
|
gnomeExtensions.custom-accent-colors
|
||||||
|
#gnomeExtensions.tray-icons-reloaded
|
||||||
|
gnomeExtensions.appindicator
|
||||||
gnomeExtensions.date-menu-formatter
|
gnomeExtensions.date-menu-formatter
|
||||||
gnomeExtensions.lock-keys
|
gnomeExtensions.lock-keys
|
||||||
gnomeExtensions.clipboard-indicator
|
gnomeExtensions.clipboard-indicator
|
||||||
gnomeExtensions.hibernate-status-button
|
gnomeExtensions.hibernate-status-button
|
||||||
gnomeExtensions.caffeine
|
gnomeExtensions.caffeine
|
||||||
gnomeExtensions.grand-theft-focus
|
gnomeExtensions.grand-theft-focus
|
||||||
gnomeExtensions.syncthing-indicator
|
# does not seem to work...
|
||||||
|
#gnomeExtensions.syncthing-indicator
|
||||||
gnome.gedit
|
gnome.gedit
|
||||||
|
|
||||||
vlc
|
vlc
|
||||||
mpv
|
mpv
|
||||||
|
|
||||||
|
#texlive.combined.scheme-full
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.geary.enable = false;
|
programs.geary.enable = false;
|
||||||
@ -238,6 +300,22 @@
|
|||||||
# Laptop configuration...
|
# Laptop configuration...
|
||||||
services.logind.lidSwitch = "lock";
|
services.logind.lidSwitch = "lock";
|
||||||
|
|
||||||
|
# ulauncher...
|
||||||
|
systemd.user.services.ulauncher = {
|
||||||
|
enable = true;
|
||||||
|
description = "Start Ulauncher";
|
||||||
|
script = ''
|
||||||
|
${pkgs.coreutils-full}/bin/sleep 2
|
||||||
|
${pkgs.ulauncher}/bin/ulauncher --hide-window
|
||||||
|
'';
|
||||||
|
|
||||||
|
documentation = [ "https://github.com/Ulauncher/Ulauncher/blob/f0905b9a9cabb342f9c29d0e9efd3ba4d0fa456e/contrib/systemd/ulauncher.service" ];
|
||||||
|
# XXX this does not work for some reason...
|
||||||
|
#wantedBy = [ "graphical.target" ];
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
after = [ "display-manager.service" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user