aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-08-01 18:05:58 +0800
committerZhongheng Liu <z.liu@outlook.com.gr>2024-08-01 18:05:58 +0800
commit4fe4ebefc87d0fb0be6f16d66f13d0334a55988d (patch)
treee2fd7eba8192b6d2c9776d755e41d21d6b1f0bb8 /nixos
parent0770a70d0bb4899cc2496662482ec20b0b6588c5 (diff)
downloadnixos-configuration-4fe4ebefc87d0fb0be6f16d66f13d0334a55988d.tar.gz
nixos-configuration-4fe4ebefc87d0fb0be6f16d66f13d0334a55988d.tar.bz2
nixos-configuration-4fe4ebefc87d0fb0be6f16d66f13d0334a55988d.zip
feat: decent shell configuration with starship and zsh
direnv and devenv integrated support experimental nginx test configuration sway and foot configuration updated created initial sddm configuration for login manager
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configuration.nix19
-rw-r--r--nixos/fonts.nix29
-rw-r--r--nixos/greetd-sway.nix10
-rw-r--r--nixos/nvidia.nix4
-rw-r--r--nixos/services/nginx.service.nix6
5 files changed, 67 insertions, 1 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
index dde33e1..bfed15f 100644
--- a/nixos/configuration.nix
+++ b/nixos/configuration.nix
@@ -10,7 +10,10 @@
{
imports = [
./variables.nix
- ./nvidia.nix
+ #./greetd-sway.nix
+ #./nvidia.nix
+ ./fonts.nix
+ ./services/nginx.service.nix
./hardware-configuration.nix
];
boot.loader = {
@@ -31,6 +34,18 @@
'';
};
};
+ services.displayManager.sddm = {
+ enable = true;
+ wayland.enable = true;
+ };
+ systemd.user.services.kanshi = {
+ description = "kanshi daemon";
+ serviceConfig = {
+ Type = "simple";
+ ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'';
+ };
+ };
+
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
programs.sway = {
@@ -53,6 +68,7 @@
flake-registry = "";
nix-path = config.nix.nixPath;
};
+ channel.enable = false;
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
};
@@ -79,6 +95,7 @@
PasswordAuthentication = false;
};
};
+ services.automatic-timezoned.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05";
}
diff --git a/nixos/fonts.nix b/nixos/fonts.nix
new file mode 100644
index 0000000..968b101
--- /dev/null
+++ b/nixos/fonts.nix
@@ -0,0 +1,29 @@
+{pkgs, ...}: {
+ fonts.packages = with pkgs; [
+ #helvetica-neue-lt-std
+ aileron
+ #corefonts
+ #vistafonts
+ #vistafonts-chs
+ noto-fonts
+ #noto-fonts-cjk
+ noto-fonts-emoji
+ #liberation_ttf
+ #mplus-outline-fonts.githubRelease
+ #dina-font
+ #proggyfonts
+ #glasstty-ttf
+ (
+ nerdfonts.override {
+ fonts = [
+ "FiraCode"
+ "IBMPlexMono"
+ #"IntelOneMono"
+ #"CascadiaMono"
+ #"CommitMono"
+ #"JetBrainsMono"
+ ];
+ }
+ )
+ ];
+}
diff --git a/nixos/greetd-sway.nix b/nixos/greetd-sway.nix
new file mode 100644
index 0000000..2177c38
--- /dev/null
+++ b/nixos/greetd-sway.nix
@@ -0,0 +1,10 @@
+{pkgs, config, lib, ...}: {
+ services.greetd = {
+ enable = true;
+ settings = {
+ default_session = {
+ command = "${pkgs.sway}/bin/sway";
+ };
+ };
+ };
+}
diff --git a/nixos/nvidia.nix b/nixos/nvidia.nix
index e75a77a..6615468 100644
--- a/nixos/nvidia.nix
+++ b/nixos/nvidia.nix
@@ -14,6 +14,10 @@
};
};
};
+ hardware.opengl = {
+ enable = true;
+ };
+ services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
prime = {
offload.enable = false;
diff --git a/nixos/services/nginx.service.nix b/nixos/services/nginx.service.nix
new file mode 100644
index 0000000..ae374c7
--- /dev/null
+++ b/nixos/services/nginx.service.nix
@@ -0,0 +1,6 @@
+{...}:
+{
+ services.nginx = {
+ enable = true;
+ };
+}