Lint and format
This commit is contained in:
parent
9277dc6907
commit
9c0392359b
5 changed files with 68 additions and 64 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let strPalette = with pkgs.rice; pkgs.lib.rice.palette.toRgbHex rec {
|
let
|
||||||
|
strPalette = with pkgs.rice; pkgs.lib.rice.palette.toRgbHex rec {
|
||||||
foreground = colorPalette.normal.white;
|
foreground = colorPalette.normal.white;
|
||||||
background = colorPalette.normal.black;
|
background = colorPalette.normal.black;
|
||||||
color0 = colorPalette.normal.black;
|
color0 = colorPalette.normal.black;
|
||||||
|
|
@ -18,7 +19,7 @@ let strPalette = with pkgs.rice; pkgs.lib.rice.palette.toRgbHex rec {
|
||||||
color13 = colorPalette.bright.magenta;
|
color13 = colorPalette.bright.magenta;
|
||||||
color14 = colorPalette.bright.cyan;
|
color14 = colorPalette.bright.cyan;
|
||||||
color15 = colorPalette.bright.white;
|
color15 = colorPalette.bright.white;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,9 @@ with lib;
|
||||||
load printers = no
|
load printers = no
|
||||||
smb encrypt = required
|
smb encrypt = required
|
||||||
'';
|
'';
|
||||||
shares = let common = {
|
shares =
|
||||||
|
let
|
||||||
|
common = {
|
||||||
"public" = "no";
|
"public" = "no";
|
||||||
"writeable" = "yes";
|
"writeable" = "yes";
|
||||||
"create mask" = "0700";
|
"create mask" = "0700";
|
||||||
|
|
@ -107,7 +109,8 @@ with lib;
|
||||||
"guest ok" = "no";
|
"guest ok" = "no";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"force group" = "users";
|
"force group" = "users";
|
||||||
}; in
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
bertof = recursiveUpdate common {
|
bertof = recursiveUpdate common {
|
||||||
path = "/mnt/raid0/bertof";
|
path = "/mnt/raid0/bertof";
|
||||||
|
|
@ -238,7 +241,9 @@ with lib;
|
||||||
|
|
||||||
|
|
||||||
systemd.packages = with pkgs; [ syncthing ];
|
systemd.packages = with pkgs; [ syncthing ];
|
||||||
systemd.services = let common = {
|
systemd.services =
|
||||||
|
let
|
||||||
|
common = {
|
||||||
documentation = [ "man:syncthing(1)" ];
|
documentation = [ "man:syncthing(1)" ];
|
||||||
startLimitIntervalSec = 60;
|
startLimitIntervalSec = 60;
|
||||||
startLimitBurst = 4;
|
startLimitBurst = 4;
|
||||||
|
|
@ -267,7 +272,8 @@ with lib;
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
CapabilityBoundingSet = [ "~CAP_SYS_PTRACE" "~CAP_SYS_ADMIN" "~CAP_SETGID" "~CAP_SETUID" "~CAP_SETPCAP" "~CAP_SYS_TIME" "~CAP_KILL" ];
|
CapabilityBoundingSet = [ "~CAP_SYS_PTRACE" "~CAP_SYS_ADMIN" "~CAP_SETGID" "~CAP_SETUID" "~CAP_SETPCAP" "~CAP_SYS_TIME" "~CAP_KILL" ];
|
||||||
};
|
};
|
||||||
}; in
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
syncthing-bertof = recursiveUpdate common {
|
syncthing-bertof = recursiveUpdate common {
|
||||||
description = "Syncthing service bertof";
|
description = "Syncthing service bertof";
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/44c53e75-a00d-47bc-a99b-2544fe513e51";
|
device = "/dev/disk/by-uuid/44c53e75-a00d-47bc-a99b-2544fe513e51";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.initrd.kernelModules = [ "i915" ];
|
boot.initrd.kernelModules = [ "i915" ];
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.initrd.kernelModules = [ "i915" ];
|
boot.initrd.kernelModules = [ "i915" ];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue