aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/config.nix31
-rw-r--r--modules/dashboard/links.nix16
-rw-r--r--modules/hardware/default.nix3
-rw-r--r--modules/packages.nix11
4 files changed, 52 insertions, 9 deletions
diff --git a/modules/config.nix b/modules/config.nix
new file mode 100644
index 0000000..a4b6c79
--- /dev/null
+++ b/modules/config.nix
@@ -0,0 +1,31 @@
+{ ... }:
+{
+ imports = [
+ ./hardware
+ ./users
+ ./network
+ ./media
+ ./dashboard
+ ./storage
+ ./notifications
+ ./monitoring
+ ./packages.nix
+ ];
+
+ time.timeZone = "Asia/Kolkata";
+ i18n.defaultLocale = "en_GB.UTF-8";
+
+ nix = {
+ settings = {
+ experimental-features = [ "nix-command" "flakes" ];
+ auto-optimise-store = true;
+ };
+ gc = {
+ automatic = true;
+ dates = "weekly";
+ };
+ };
+ nixpkgs.config.allowUnfree = true;
+
+ system.stateVersion = "25.05";
+}
diff --git a/modules/dashboard/links.nix b/modules/dashboard/links.nix
index 1ccded8..4ac0337 100644
--- a/modules/dashboard/links.nix
+++ b/modules/dashboard/links.nix
@@ -11,6 +11,13 @@ in [
color = "#AA5CC3";
}
{
+ title = "Immich";
+ key = "i";
+ url = "http://photos.local";
+ altUrl = "http://${host}:${toString ports.immich}";
+ color = "#fa2921";
+ }
+ {
title = "Jellyseer";
key = "l";
url = "http://jellyseerr.local";
@@ -64,13 +71,6 @@ in [
key = "f";
url = "http://send.local";
altUrl = "http://${host}:${toString ports.send}";
- color = "#AA5CC3";
- }
- {
- title = "Immich";
- key = "i";
- url = "http://photos.local";
- altUrl = "http://${host}:${toString ports.immich}";
- color = "#fa2921";
+ color = "#0a84ff";
}
]
diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix
index 098b3cc..34b7e7e 100644
--- a/modules/hardware/default.nix
+++ b/modules/hardware/default.nix
@@ -1,7 +1,8 @@
-{ lib, modulesPath, ... }:
+{ lib, nixos-hardware, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
+ "${nixos-hardware}/lenovo/ideapad"
./fs.nix
];
diff --git a/modules/packages.nix b/modules/packages.nix
new file mode 100644
index 0000000..a596fc1
--- /dev/null
+++ b/modules/packages.nix
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+{
+ environment.systemPackages = with pkgs; [
+ bottom
+ mtm
+ neovim
+ lf
+ util-linux
+ dig
+ ];
+}