Fixup
This commit is contained in:
parent
e1c562191b
commit
186fb9d017
6 changed files with 44 additions and 48 deletions
|
@ -4,7 +4,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = (lib.attrValues this.modules) ++ [
|
imports = (lib.attrValues this.modules) ++ [
|
||||||
../../modules/profiles/base
|
../../modules/profiles/laptop
|
||||||
<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>
|
<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ let
|
||||||
keys = ../../pkgs/keys/keys;
|
keys = ../../pkgs/keys/keys;
|
||||||
in {
|
in {
|
||||||
imports = (lib.attrValues this.modules) ++ [
|
imports = (lib.attrValues this.modules) ++ [
|
||||||
../../modules/profiles/base
|
|
||||||
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -134,17 +133,12 @@ in {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.ddclient = {
|
|
||||||
enable = true;
|
|
||||||
configFile = /var/lib/dyndns/config;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = false;
|
||||||
publish = {
|
publish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
workstation = true;
|
workstation = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,6 @@ let
|
||||||
in {
|
in {
|
||||||
options.dadada.networking = {
|
options.dadada.networking = {
|
||||||
useLocalResolver = mkEnableOption "Enable local caching name server";
|
useLocalResolver = mkEnableOption "Enable local caching name server";
|
||||||
domain = mkOption {
|
|
||||||
type = with types; nullOr str;
|
|
||||||
description = "Network domain name";
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
wanInterfaces = mkOption {
|
wanInterfaces = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
description = "WAN network interfaces";
|
description = "WAN network interfaces";
|
||||||
|
@ -24,7 +19,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.domain = cfg.domain;
|
|
||||||
networking.resolvconf.useLocalResolver = mkIf cfg.useLocalResolver true;
|
networking.resolvconf.useLocalResolver = mkIf cfg.useLocalResolver true;
|
||||||
services.unbound = mkIf cfg.useLocalResolver {
|
services.unbound = mkIf cfg.useLocalResolver {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -3,37 +3,13 @@ with lib;
|
||||||
{
|
{
|
||||||
imports = import ../../module-list.nix;
|
imports = import ../../module-list.nix;
|
||||||
|
|
||||||
config = {
|
networking.domain = mkDefault "dadada.li";
|
||||||
dadada = {
|
dadada.autoUpgrade = mkDefault true;
|
||||||
autoUpgrade.enable = mkDefault true;
|
|
||||||
networking = {
|
|
||||||
useLocalResolver = mkDefault true;
|
|
||||||
domain = mkDefault "dadada.li";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
i18n.defaultLocale = mkDefault "en_US.UTF-8";
|
i18n.defaultLocale = mkDefault "en_US.UTF-8";
|
||||||
console = {
|
console = mkDefault {
|
||||||
font = mkDefault "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
keyMap = mkDefault "us";
|
keyMap = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fonts = mkDefault (with pkgs; [
|
|
||||||
source-code-pro
|
|
||||||
]);
|
|
||||||
|
|
||||||
time.timeZone = mkDefault "Europe/Berlin";
|
|
||||||
|
|
||||||
programs.zsh = mkDefault {
|
|
||||||
enable = true;
|
|
||||||
autosuggestions.enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
histSize = 100000;
|
|
||||||
vteIntegration = true;
|
|
||||||
syntaxHighlighting = {
|
|
||||||
enable = true;
|
|
||||||
highlighters = [ "main" "brackets" "pattern" "cursor" "root" "line" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
34
modules/profiles/laptop/default.nix
Normal file
34
modules/profiles/laptop/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
imports = import ../../module-list.nix ++ [
|
||||||
|
../base
|
||||||
|
];
|
||||||
|
|
||||||
|
dadada = {
|
||||||
|
networking = {
|
||||||
|
useLocalResolver = mkDefault true;
|
||||||
|
domain = mkDefault "dadada.li";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
|
fonts.fonts = mkDefault (with pkgs; [
|
||||||
|
source-code-pro
|
||||||
|
]);
|
||||||
|
|
||||||
|
time.timeZone = mkDefault "Europe/Berlin";
|
||||||
|
|
||||||
|
programs.zsh = mkDefault {
|
||||||
|
enable = true;
|
||||||
|
autosuggestions.enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
histSize = 100000;
|
||||||
|
vteIntegration = true;
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
highlighters = [ "main" "brackets" "pattern" "cursor" "root" "line" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,8 +10,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.fwupd.enable = true;
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
useSandbox = true;
|
useSandbox = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue