multi host maybe
This commit is contained in:
@@ -49,20 +49,20 @@
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Networking settings
|
||||
networking.hostName = "mobile02"; # Define your hostname.
|
||||
networking.networkmanager.enable = true;
|
||||
# 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
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 = {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user