Modularize everything

This commit is contained in:
Paul-Henri Froidmont 2023-03-21 14:42:39 +01:00
parent d5cbf61286
commit 68d301c666
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
21 changed files with 536 additions and 240 deletions

View file

@ -1,18 +1,14 @@
{ inputs, config, lib, pkgs, ... }:
with lib;
with lib.my;
{
imports =
[ inputs.home-manager.nixosModules.home-manager ]
with lib.my; {
imports = [ inputs.home-manager.nixosModules.home-manager ]
++ (mapModulesRec' (toString ./modules) import);
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
nixPath = [
"nixpkgs=${inputs.nixpkgs-unstable}"
];
nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ];
settings = {
substituters = [
"https://nix-community.cachix.org"
@ -29,17 +25,32 @@ with lib.my;
system.configurationRevision = with inputs; mkIf (self ? rev) self.rev;
time.timeZone = lib.mkDefault "Europe/Amsterdam";
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
console = {
keyMap = lib.mkDefault "fr";
};
console = { keyMap = lib.mkDefault "fr"; };
environment.systemPackages = with pkgs; [
git
vim
wget
inetutils
man
htop
ncdu
nload
pciutils
lsof
dnsutils
unzip
];
networking.hosts = {
"127.0.0.1" = [ "localhost" "membres.yourcoop.local" ];
};
services.resolved.dnssec = "false";
}