formatting with nixpkgs-fmt
This commit is contained in:
parent
aac13c2919
commit
6f0a899f7e
|
@ -4,7 +4,9 @@ let
|
|||
seaf-overlay = (import ./ov/seafile-overlay);
|
||||
in
|
||||
|
||||
[(self: super:
|
||||
[
|
||||
(
|
||||
self: super:
|
||||
rec {
|
||||
seafile-server = unstable.seafile-server;
|
||||
amarok = super.libsForQt5.callPackage ./ov/amarok.nix {};
|
||||
|
|
|
@ -8,23 +8,29 @@ let
|
|||
fsOptions = [ "noatime" "ssd" "space_cache" "compress=zstd" ];
|
||||
unstable = import <nixos-unstable> {};
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./packages.nix
|
||||
(builtins.fetchGit {
|
||||
(
|
||||
builtins.fetchGit {
|
||||
url = "https://github.com/NixOS/nixos-hardware";
|
||||
rev = "c0182a06982f82a47356c91d78d80d2af29bd7f1";
|
||||
} + "/lenovo/thinkpad/t440s")
|
||||
} + "/lenovo/thinkpad/t440s"
|
||||
)
|
||||
# home manager integration
|
||||
<home-manager/nixos>
|
||||
];
|
||||
|
||||
# encrypted partitions
|
||||
boot.initrd.luks =
|
||||
{ devices =
|
||||
{ "system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef";
|
||||
{
|
||||
devices =
|
||||
{
|
||||
"system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef";
|
||||
"cryptswap".device = "/dev/disk/by-uuid/ac586df6-6332-4809-beb1-f51906a2adaa";
|
||||
};
|
||||
reusePassphrases = true;
|
||||
|
@ -38,11 +44,12 @@ in {
|
|||
services.davfs2.enable = true;
|
||||
|
||||
# try newer kernels
|
||||
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
services.fstrim.enable = true;
|
||||
services.btrfs.autoScrub =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
fileSystems = [ "/" "/home" ];
|
||||
};
|
||||
|
||||
|
@ -50,14 +57,16 @@ in {
|
|||
#boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];
|
||||
|
||||
zramSwap =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
memoryPercent = 20;
|
||||
};
|
||||
boot.kernel.sysctl."vm.swappiness" = 9;
|
||||
|
||||
# powermanagement
|
||||
services.tlp =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
SATA_LINKPWR_ON_BAT=medium_power
|
||||
SATA_LINKPWR_ON_AC=max_performance
|
||||
|
@ -110,7 +119,8 @@ in {
|
|||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
drivers = [ pkgs.hplip ];
|
||||
};
|
||||
# scanners
|
||||
|
@ -154,12 +164,6 @@ in {
|
|||
# Flatpak support
|
||||
services.flatpak.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||
# nixpkgs.config.packageOverrides = pkgs:
|
||||
# {
|
||||
# flatpak = unstable.flatpak;
|
||||
# flatpak-builder = unstable.flatpak-builder;
|
||||
# ostree = unstable.ostree;
|
||||
# };
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.extraUsers.spiollinux = {
|
||||
|
@ -184,14 +188,16 @@ in {
|
|||
};
|
||||
|
||||
programs.zsh =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
autosuggestions.enable = true;
|
||||
};
|
||||
|
||||
services.psd.enable = true;
|
||||
|
||||
services.smartd =
|
||||
{ enable = true;
|
||||
{
|
||||
enable = true;
|
||||
devices = [ { device = "/dev/sda"; } { device = "/dev/sdb"; } ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue