refactor: apply nixfmt
This commit is contained in:
@@ -1,23 +1,27 @@
|
||||
{ inputs, config, pkgs, lib, ... }:
|
||||
let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in
|
||||
{
|
||||
# Bootloader
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = lib.mkDefault "/dev/sda";
|
||||
|
||||
|
||||
# Networking
|
||||
networking.networkmanager.enable = true;
|
||||
services.openssh.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
|
||||
|
||||
# l10n and i8n
|
||||
time.timeZone = "Europe/Riga";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
|
||||
# Editor
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
@@ -26,13 +30,15 @@ in
|
||||
defaultEditor = true;
|
||||
};
|
||||
|
||||
|
||||
# Nix
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
settings = {
|
||||
trusted-users = [ "andrey" ];
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
flake-registry = "";
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
@@ -42,19 +48,26 @@ in
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
};
|
||||
|
||||
|
||||
# Users
|
||||
users.mutableUsers = false;
|
||||
users.users.andrey = {
|
||||
isNormalUser = true;
|
||||
initialHashedPassword = "$y$j9T$mGZT4otEkrc94e.Ile.P20$BoxfgxCiacs.tYoEp7S5AjcP.aMUBrsaCJYJkBot635";
|
||||
extraGroups = [ "wheel" "cdrom" "networkmanager" "audio" "dialout" "scanner" "lp" "adbusers" ];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"cdrom"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"dialout"
|
||||
"scanner"
|
||||
"lp"
|
||||
"adbusers"
|
||||
];
|
||||
};
|
||||
|
||||
security.sudo.execWheelOnly = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
|
||||
# Printers and scanners
|
||||
hardware.sane.enable = true;
|
||||
services.printing.enable = true;
|
||||
@@ -73,20 +86,24 @@ in
|
||||
stats.enable = true;
|
||||
};
|
||||
|
||||
|
||||
# Programs
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
config = {
|
||||
init.defaultBranch = "master";
|
||||
url."https://github.com/".insteadOf = [ "gh:" "github:" ];
|
||||
url."https://git.psf.lt/".insteadOf = [ "psf:" "gitea:" ];
|
||||
url."https://github.com/".insteadOf = [
|
||||
"gh:"
|
||||
"github:"
|
||||
];
|
||||
url."https://git.psf.lt/".insteadOf = [
|
||||
"psf:"
|
||||
"gitea:"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
alsa-utils
|
||||
@@ -97,13 +114,11 @@ in
|
||||
unzip
|
||||
];
|
||||
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings.General.Enable = "Source,Sink,Media,Socket";
|
||||
};
|
||||
|
||||
|
||||
# Xorg
|
||||
security.rtkit.enable = true;
|
||||
services = {
|
||||
|
@@ -28,8 +28,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
fonts.packages = lib.mkAfter (with pkgs; [
|
||||
vistafonts
|
||||
corefonts
|
||||
]);
|
||||
fonts.packages = lib.mkAfter (
|
||||
with pkgs;
|
||||
[
|
||||
vistafonts
|
||||
corefonts
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user