From 8a7c6977bbcf6d80d776aa68ee33c9c27597be2b Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 25 Feb 2025 18:08:31 +0300 Subject: [PATCH] enable modules --- flake.nix | 2 +- hosts/harmonica/configuration.nix | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/flake.nix b/flake.nix index 56271ae..5214f9f 100644 --- a/flake.nix +++ b/flake.nix @@ -69,7 +69,7 @@ harmonica = nixpkgs.lib.nixosSystem { modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" - agenix.nixosModules.default + ./hosts/harmonica/configuration.nix { environment.systemPackages = [ diff --git a/hosts/harmonica/configuration.nix b/hosts/harmonica/configuration.nix index 8089104..09eace8 100644 --- a/hosts/harmonica/configuration.nix +++ b/hosts/harmonica/configuration.nix @@ -1,14 +1,28 @@ { config, lib, - modulesPath, + inputs, pkgs, ... }: { imports = [ ./sd-image.nix + ../../modules + inputs.agenix.nixosModules.default + inputs.home-manager.nixosModules.home-manager ]; + myModules = { + enableKDE = false; + enableFonts = false; + blockYoutube = false; + blockTwitter = false; + enableTailscale = true; + }; + + i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method + + # Some packages (ahci fail... this bypasses that) https://discourse.nixos.org/t/does-pkgs-linuxpackages-rpi3-build-all-required-kernel-modules/42509 nixpkgs.overlays = [ (final: super: { @@ -19,7 +33,6 @@ nixpkgs.hostPlatform = "aarch64-linux"; # ! Need a trusted user for deploy-rs. - nix.settings.trusted-users = ["@wheel"]; system.stateVersion = "25.05"; zramSwap = { @@ -149,26 +162,13 @@ }; }; - # Enable OpenSSH out of the box. - services.sshd.enable = true; - # NTP time sync. services.timesyncd.enable = true; - # ! Change the following configuration - users.users.osbm = { - isNormalUser = true; - home = "/home/osbm"; - description = "osbm"; - extraGroups = ["wheel" "networkmanager"]; - # ! Be sure to put your own public key here - openssh.authorizedKeys.keys = ["a public key"]; - }; security.sudo = { enable = true; wheelNeedsPassword = false; }; - # ! Be sure to change the autologinUser. services.getty.autologinUser = "osbm"; }