Skip to content

Commit 4abc78e

Browse files
committed
feat: add majduri host for college
1 parent aaafe42 commit 4abc78e

File tree

5 files changed

+137
-0
lines changed

5 files changed

+137
-0
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-tree);
9898
nixosConfigurations = {
9999
Default = mkHost "Default";
100+
majduri = mkHost "majduri";
100101
auth = mkHost "auth";
101102
pork = mkHost "pork";
102103
authxth = mkHost "authxth";

hosts/majduri/configuration.nix

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{ lib, ... }:
2+
let
3+
vars = import ./variables.nix;
4+
in
5+
{
6+
imports = [
7+
./hardware-configuration.nix
8+
./host-packages.nix
9+
10+
# Core Modules (Don't change unless you know what you're doing)
11+
../../modules/scripts
12+
../../modules/core/boot.nix
13+
../../modules/core/bash.nix
14+
../../modules/core/zsh.nix
15+
../../modules/core/starship.nix
16+
../../modules/core/fonts.nix
17+
../../modules/core/hardware.nix
18+
../../modules/core/network.nix
19+
../../modules/core/dns.nix
20+
../../modules/core/nh.nix
21+
../../modules/core/packages.nix
22+
../../modules/core/printing.nix
23+
../../modules/core/sddm.nix
24+
../../modules/core/security.nix
25+
../../modules/core/services.nix
26+
../../modules/core/syncthing.nix
27+
../../modules/core/system.nix
28+
../../modules/core/users.nix
29+
# ../../modules/core/flatpak.nix
30+
# ../../modules/core/virtualisation.nix
31+
# ../../modules/core/dlna.nix
32+
33+
# Optional
34+
../../modules/hardware/drives # Automatically mount extra external/internal drives
35+
../../modules/hardware/video/${vars.videoDriver}.nix # Enable gpu drivers defined in variables.nix
36+
../../modules/desktop/${vars.desktop} # Set window manager defined in variables.nix
37+
../../modules/programs/browser/${vars.browser} # Set browser defined in variables.nix
38+
../../modules/programs/terminal/${vars.terminal} # Set terminal defined in variables.nix
39+
../../modules/programs/editor/${vars.editor} # Set editor defined in variables.nix
40+
../../modules/programs/cli/${vars.tuiFileManager} # Set file-manager defined in variables.nix
41+
../../modules/programs/cli/tmux
42+
../../modules/programs/cli/direnv
43+
../../modules/programs/cli/lazygit
44+
../../modules/programs/cli/cava
45+
# ../../modules/programs/cli/fastfetch
46+
../../modules/programs/cli/btop
47+
../../modules/programs/media/discord
48+
../../modules/programs/media/spicetify
49+
# ../../modules/programs/media/youtube-music
50+
# ../../modules/programs/media/thunderbird
51+
# ../../modules/programs/media/obs-studio
52+
../../modules/programs/media/mpv
53+
../../modules/programs/misc/tlp
54+
../../modules/programs/misc/thunar
55+
../../modules/programs/misc/lact # GPU fan, clock and power configuration
56+
]
57+
++ lib.optional (vars.games == true) ../../modules/core/games.nix;
58+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Do not modify this file! It was generated by ‘nixos-generate-config’
2+
# and may be overwritten by future invocations. Please make changes
3+
# to /etc/nixos/configuration.nix instead.
4+
{ config, lib, pkgs, modulesPath, ... }:
5+
6+
{
7+
imports =
8+
[ (modulesPath + "/installer/scan/not-detected.nix")
9+
];
10+
11+
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
12+
boot.initrd.kernelModules = [ ];
13+
boot.kernelModules = [ "kvm-intel" ];
14+
boot.extraModulePackages = [ ];
15+
16+
fileSystems."/" =
17+
{ device = "/dev/disk/by-uuid/b2d215dc-eabe-4ff7-ab9c-24170a147aa9";
18+
fsType = "ext4";
19+
};
20+
21+
fileSystems."/boot" =
22+
{ device = "/dev/disk/by-uuid/0A56-DA61";
23+
fsType = "vfat";
24+
options = [ "fmask=0077" "dmask=0077" ];
25+
};
26+
27+
swapDevices = [ ];
28+
29+
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
30+
# (the default) this is the recommended approach. When using systemd-networkd it's
31+
# still possible to use this option, but it's recommended to use it in conjunction
32+
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
33+
networking.useDHCP = lib.mkDefault true;
34+
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
35+
36+
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
37+
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
38+
}

hosts/majduri/host-packages.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{ pkgs, ... }:
2+
{
3+
environment.systemPackages = with pkgs; [
4+
obsidian
5+
vscode
6+
brave
7+
# localsend
8+
# xournalpp
9+
google-chrome
10+
# protonvpn-gui # VPN
11+
# github-desktop
12+
# pokego # Overlayed
13+
];
14+
}

hosts/majduri/variables.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
# User Configuration
3+
username = "sijanthapa"; # Your username (auto-set with install.sh, live-install.sh, rebuild)
4+
desktop = "gnome"; # Options: hyprland, i3-gaps, gnome, plasma6
5+
terminal = "kitty"; # Options: kitty, alacritty
6+
editor = "nixvim"; # Options: nixvim, vscode, helix, doom-emacs, nvchad, neovim
7+
browser = "firefox"; # Options: firefox, floorp, zen
8+
tuiFileManager = "yazi"; # Options: yazi, lf
9+
sddmTheme = "astronaut"; # Options: astronaut, black_hole, purple_leaves, jake_the_dog, hyprland_kath
10+
defaultWallpaper = "kurzgesagt.webp"; # to change wallpaper: SUPER + SHIFT + W
11+
hyprlockWallpaper = "evening-sky.webp"; # See modules/themes/wallpapers for options
12+
shell = "zsh"; # Options: zsh, bash
13+
games = true; # Whether to enable the gaming module
14+
15+
# Hardware Configuration
16+
videoDriver = "intel"; # CRITICAL: Choose your GPU driver (nvidia, amdgpu, intel)
17+
hostname = "majduri"; # Your system hostname
18+
19+
# Localization
20+
clock24h = true; # 24H or 12H clock in waybar
21+
locale = "en_US.UTF-8"; # System locale
22+
timezone = "Asia/Kathmandu"; # Your timezone
23+
kbdLayout = "us"; # Keyboard layout
24+
kbdVariant = ""; # Keyboard variant (can be empty)
25+
consoleKeymap = "us"; # TTY keymap
26+
}

0 commit comments

Comments
 (0)