multi host maybe

This commit is contained in:
voidarclabs
2026-01-04 12:08:59 +00:00
parent 70a636c513
commit 0d36888cfa
4 changed files with 128 additions and 28 deletions

View File

@@ -49,20 +49,20 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking settings
networking.hostName = "mobile02"; # Define your hostname.
# networking.hostName = "mobile02"; # Define your hostname.
networking.networkmanager.enable = true;
# Enable bluetooth
hardware.bluetooth.enable = true;
# Opengl and vulkan
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-vaapi-driver
libva-vdpau-driver
];
};
# # Opengl and vulkan
# hardware.graphics = {
# enable = true;
# extraPackages = with pkgs; [
# intel-vaapi-driver
# libva-vdpau-driver
# ];
# };
# Set your time zone.
time.timeZone = "Europe/London";
@@ -84,11 +84,11 @@
# Windowing Systems
services.xserver.enable = true;
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha-mauve";
package = pkgs.kdePackages.sddm;
};
# services.displayManager.sddm = {
# enable = true;
# theme = "catppuccin-mocha-mauve";
# package = pkgs.kdePackages.sddm;
# };
programs.hyprland.enable = true;
security.polkit.enable = true;
@@ -120,7 +120,7 @@
# Ricing
bibata-cursors
catppuccin-gtk
inputs.way-edges.packages.${pkgs.system}.way-edges
# inputs.way-edges.packages.${pkgs.system}.way-edges
waybar
hyprlock
swaynotificationcenter
@@ -135,15 +135,14 @@
carapace
kitty
github-cli
light
# light
bluetuith
wget
playerctl
git
fastfetch
lsd
juce
stow
doot
fzf
ripgrep
zsh-autocomplete
@@ -208,12 +207,12 @@
environment.systemPackages = with pkgs; [
# Catppuccin sddm theme
(pkgs.catppuccin-sddm.override {
flavor = "mocha";
font = "Fira Mono Nerd Font";
fontSize = "11";
background = null;
})
# (pkgs.catppuccin-sddm.override {
# flavor = "mocha";
# font = "Fira Mono Nerd Font";
# fontSize = "11";
# background = null;
# })
# Terminal things
(pkgs.symlinkJoin {
name = "nvim-with-lsp";
@@ -264,3 +263,4 @@
system.stateVersion = "25.05"; # Did you read the comment?
}

43
configuration-laptop.nix Normal file
View File

@@ -0,0 +1,43 @@
{ config, lib, pkgs, inputs, ... }:
{
networking.hostName = "mobile02"; # Define your hostname.
# Opengl and vulkan
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-vaapi-driver
libva-vdpau-driver
];
};
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha-mauve";
package = pkgs.kdePackages.sddm;
};
# Catppuccin sddm theme
(pkgs.catppuccin-sddm.override {
flavor = "mocha";
font = "Fira Mono Nerd Font";
fontSize = "11";
background = null;
})
# Local User
users.users.user01 = {
extraGroups = [ ];
packages = with pkgs; [
# Ricing
inputs.way-edges.packages.${pkgs.system}.way-edges
inputs.chataigne.packages.${pkgs.system}.chataigne
# Terminal
light
# Apps
];
};
}

43
configuration-pc.nix Normal file
View File

@@ -0,0 +1,43 @@
{ config, lib, pkgs, inputs, ... }:
{
networking.hostName = "HACKSTATION"; # Define your hostname.
# Opengl and vulkan
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-vaapi-driver
libva-vdpau-driver
];
};
# services.displayManager.sddm = {
# enable = true;
# theme = "catppuccin-mocha-mauve";
# package = pkgs.kdePackages.sddm;
# };
services.getty.autologinUser = "user01"
# Catppuccin sddm theme
# (pkgs.catppuccin-sddm.override {
# flavor = "mocha";
# font = "Fira Mono Nerd Font";
# fontSize = "11";
# background = null;
# })
# Local User
users.users.user01 = {
extraGroups = [ ];
packages = with pkgs; [
# Ricing
# Terminal
# Apps
];
};
}

View File

@@ -1,5 +1,5 @@
{
description = "Impure NixOS flake for mobile02";
description = "Impure NixOS flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -14,7 +14,7 @@
};
outputs = { self, chataigne, nixpkgs, ... }@inputs: let
stdenv.hostPlatform.system = "x86_64-linux"; # adjust if needed
stdenv.hostPlatform.system = "x86_64-linux";
system = stdenv.hostPlatform.system;
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
in
@@ -24,7 +24,21 @@
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
./configuration-laptop.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;
}
];
};
nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./configuration-pc.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;