more modules and move stuff to modules
This commit is contained in:
parent
8fd7302ace
commit
38949ee1b7
7 changed files with 80 additions and 55 deletions
|
@ -1,72 +1,26 @@
|
|||
{ inputs, pkgs, lib, config, ... }:
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
in {
|
||||
{ pkgs, config, ... }: {
|
||||
imports = [
|
||||
./containers
|
||||
./fonts
|
||||
./games
|
||||
./home
|
||||
./impermanence
|
||||
./networking
|
||||
./niri
|
||||
./nix
|
||||
./secureboot
|
||||
./user
|
||||
./utils
|
||||
./vm
|
||||
];
|
||||
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
nix = {
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
};
|
||||
|
||||
documentation.nixos.enable = false;
|
||||
|
||||
networking = {
|
||||
useDHCP = mkDefault true;
|
||||
wireless.iwd.enable = true;
|
||||
extraHosts =
|
||||
''
|
||||
10.10.11.245 surveillance.htb
|
||||
'';
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
alegreya
|
||||
alegreya-sans
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
roboto
|
||||
ubuntu_font_family
|
||||
];
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
serif = [ "Alegreya" ];
|
||||
sansSerif = [ "Alegreya Sans" ];
|
||||
monospace = [ "Fira Code Nerd Font" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue