multi host maybe
This commit is contained in:
@@ -49,20 +49,20 @@
|
|||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Networking settings
|
# Networking settings
|
||||||
networking.hostName = "mobile02"; # Define your hostname.
|
# networking.hostName = "mobile02"; # Define your hostname.
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Enable bluetooth
|
# Enable bluetooth
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
# Opengl and vulkan
|
# # Opengl and vulkan
|
||||||
hardware.graphics = {
|
# hardware.graphics = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
extraPackages = with pkgs; [
|
# extraPackages = with pkgs; [
|
||||||
intel-vaapi-driver
|
# intel-vaapi-driver
|
||||||
libva-vdpau-driver
|
# libva-vdpau-driver
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
@@ -84,11 +84,11 @@
|
|||||||
# Windowing Systems
|
# Windowing Systems
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
services.displayManager.sddm = {
|
# services.displayManager.sddm = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
theme = "catppuccin-mocha-mauve";
|
# theme = "catppuccin-mocha-mauve";
|
||||||
package = pkgs.kdePackages.sddm;
|
# package = pkgs.kdePackages.sddm;
|
||||||
};
|
# };
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
# Ricing
|
# Ricing
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
catppuccin-gtk
|
catppuccin-gtk
|
||||||
inputs.way-edges.packages.${pkgs.system}.way-edges
|
# inputs.way-edges.packages.${pkgs.system}.way-edges
|
||||||
waybar
|
waybar
|
||||||
hyprlock
|
hyprlock
|
||||||
swaynotificationcenter
|
swaynotificationcenter
|
||||||
@@ -135,15 +135,14 @@
|
|||||||
carapace
|
carapace
|
||||||
kitty
|
kitty
|
||||||
github-cli
|
github-cli
|
||||||
light
|
# light
|
||||||
bluetuith
|
bluetuith
|
||||||
wget
|
wget
|
||||||
playerctl
|
playerctl
|
||||||
git
|
git
|
||||||
fastfetch
|
fastfetch
|
||||||
lsd
|
lsd
|
||||||
juce
|
doot
|
||||||
stow
|
|
||||||
fzf
|
fzf
|
||||||
ripgrep
|
ripgrep
|
||||||
zsh-autocomplete
|
zsh-autocomplete
|
||||||
@@ -208,12 +207,12 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
# Catppuccin sddm theme
|
# Catppuccin sddm theme
|
||||||
(pkgs.catppuccin-sddm.override {
|
# (pkgs.catppuccin-sddm.override {
|
||||||
flavor = "mocha";
|
# flavor = "mocha";
|
||||||
font = "Fira Mono Nerd Font";
|
# font = "Fira Mono Nerd Font";
|
||||||
fontSize = "11";
|
# fontSize = "11";
|
||||||
background = null;
|
# background = null;
|
||||||
})
|
# })
|
||||||
# Terminal things
|
# Terminal things
|
||||||
(pkgs.symlinkJoin {
|
(pkgs.symlinkJoin {
|
||||||
name = "nvim-with-lsp";
|
name = "nvim-with-lsp";
|
||||||
@@ -264,3 +263,4 @@
|
|||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
43
configuration-laptop.nix
Normal file
43
configuration-laptop.nix
Normal 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
43
configuration-pc.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
20
flake.nix
20
flake.nix
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
description = "Impure NixOS flake for mobile02";
|
description = "Impure NixOS flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, chataigne, nixpkgs, ... }@inputs: let
|
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;
|
system = stdenv.hostPlatform.system;
|
||||||
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
|
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
|
||||||
in
|
in
|
||||||
@@ -24,7 +24,21 @@
|
|||||||
specialArgs = {inherit inputs;};
|
specialArgs = {inherit inputs;};
|
||||||
|
|
||||||
modules = [
|
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
|
hardwareConfig
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user