Ver 1.0
This commit is contained in:
parent
b6b87d5aed
commit
9c72a71585
3546 changed files with 18655 additions and 0 deletions
13
showcaseVM/REAME.md
Normal file
13
showcaseVM/REAME.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Just used to make some Showcasing/Developing
|
||||
|
||||
If you wanna use it make sure to click "View" -> "Grab on Hover" so you can use the SUPER key
|
||||
|
||||
|
||||
# For Developing:
|
||||
If you add any configurations/options to nixosVista then always write the example/showcase code to ./nixosVista.nix
|
||||
Always write the Default option
|
||||
|
||||
If for showcasing it makes sense to use a custom option (like a wallpaper or a Monitor name) then write it to ./nixosVista-custom.nix
|
||||
|
||||
To make Showcasing as Attractive as possible: Use only the most nessecarry programms or Programms that are relevant for basic Desktop use/important for the theme Showcase
|
||||
That way it doesn't bloat the nix-store of the people running it
|
||||
91
showcaseVM/configuration.nix
Normal file
91
showcaseVM/configuration.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
username = "icarus";
|
||||
gitUsername = "icarus";
|
||||
password = "icarus";
|
||||
in {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
users.mutableUsers = true;
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = gitUsername;
|
||||
createHome = true;
|
||||
home = "/home/${username}";
|
||||
initialPassword = password;
|
||||
|
||||
shell = pkgs.zsh;
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"libvirtd"
|
||||
"scanner"
|
||||
"lp"
|
||||
"video"
|
||||
"input"
|
||||
"audio"
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
fastfetch
|
||||
|
||||
btop
|
||||
|
||||
neovim
|
||||
|
||||
# test:
|
||||
mpv
|
||||
kitty
|
||||
|
||||
# hcange probably
|
||||
mate.caja
|
||||
mate.caja
|
||||
|
||||
alacritty
|
||||
librewolf
|
||||
vscodium
|
||||
zsh
|
||||
];
|
||||
|
||||
programs.neovim.enable = true;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
users.${username} = import ./home.nix {
|
||||
inherit pkgs inputs username;
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "nodev";
|
||||
useOSProber = false;
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostName = "NixOS-Vista";
|
||||
};
|
||||
|
||||
# Required for NixOS
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
12
showcaseVM/default.nix
Normal file
12
showcaseVM/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./nixosVista.nix
|
||||
./haveItrun.nix
|
||||
];
|
||||
}
|
||||
28
showcaseVM/hardware-configuration.nix
Normal file
28
showcaseVM/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-intel"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/9b55ed5e-ee45-443f-a5e8-1fb378fdad77";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
65
showcaseVM/haveItrun.nix
Normal file
65
showcaseVM/haveItrun.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
username = "icarus";
|
||||
gitUsername = "icarus";
|
||||
password = "icarus";
|
||||
in {
|
||||
# Enable Hyprland
|
||||
#programs.hyprland.enable = true;
|
||||
|
||||
# No display manager
|
||||
#services.displayManager.sddm.enable = false;
|
||||
|
||||
# Start Hyprland automatically after login
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.bash}/bin/bash -lc 'WLR_RENDERER=pixman start-hyprland'";
|
||||
user = username;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pciutils
|
||||
];
|
||||
|
||||
# does not work?
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 2048; # Use 2048 MiB of RAM
|
||||
cores = 3; # Use 3 CPU cores
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
WLR_RENDERER = "pixman";
|
||||
};
|
||||
|
||||
# temp enable ssh
|
||||
|
||||
# virtualisation.vmVariant = {
|
||||
# virtualisation.forwardPorts = [
|
||||
# {
|
||||
# from = "host";
|
||||
# host.port = 8222;
|
||||
# guest.port = 22;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
|
||||
# for testing:
|
||||
# services.openssh = {
|
||||
# enable = true;
|
||||
# settings = {
|
||||
# PasswordAuthentication = true;
|
||||
# PermitRootLogin = "yes"; # or "prohibit-password"
|
||||
# };
|
||||
# };
|
||||
}
|
||||
44
showcaseVM/home.nix
Normal file
44
showcaseVM/home.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
username = "icarus";
|
||||
gitUsername = "icarus";
|
||||
gitEmail = "icarus@nixos.vista";
|
||||
in {
|
||||
#copy wallpaper files
|
||||
home.file."Pictures/wallpapers" = {
|
||||
source = ../Ressources/wallpapers;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
################################################################
|
||||
# Basic Setup
|
||||
################################################################
|
||||
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/${username}";
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
################################################################
|
||||
# Packages
|
||||
################################################################
|
||||
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
];
|
||||
|
||||
################################################################
|
||||
# Git
|
||||
################################################################
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = gitUsername;
|
||||
email = gitEmail;
|
||||
};
|
||||
};
|
||||
}
|
||||
161
showcaseVM/nixosVista.nix
Normal file
161
showcaseVM/nixosVista.nix
Normal file
|
|
@ -0,0 +1,161 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
############################################################
|
||||
# Enable NixOS Vista Core
|
||||
############################################################
|
||||
|
||||
nixosVista = {
|
||||
enable = true;
|
||||
|
||||
##########################################################
|
||||
# Core
|
||||
##########################################################
|
||||
|
||||
theme.enable = true;
|
||||
displayManager.enable = false;
|
||||
|
||||
##########################################################
|
||||
# Monitors
|
||||
##########################################################
|
||||
|
||||
monitor.list = {
|
||||
# "DP-1" = "1920x1080@144, 0x0, 1";
|
||||
# "HDMI-A-1" = "2560x1440@60, 1920x0, 1";
|
||||
};
|
||||
|
||||
monitor.defaultMonitor = "preferred, auto, 1";
|
||||
|
||||
##########################################################
|
||||
# Wallpaper
|
||||
##########################################################
|
||||
|
||||
hyprpaper = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
splash = false;
|
||||
|
||||
preload = [
|
||||
"/home/icarus/Pictures/wallpapers/main.png"
|
||||
];
|
||||
|
||||
wallpaper = [
|
||||
{
|
||||
monitor = "Virtual-1";
|
||||
path = "/home/icarus/Pictures/wallpapers/main.png";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
##########################################################
|
||||
# Hyprland
|
||||
##########################################################
|
||||
|
||||
hyprland = {
|
||||
special.noHardwareCursor = true;
|
||||
|
||||
style.animation.enabled = true;
|
||||
|
||||
input = {
|
||||
kb_layout = "us";
|
||||
follow_mouse = 1;
|
||||
sensitivity = 0.0;
|
||||
|
||||
touchpad.natural_scroll = true;
|
||||
};
|
||||
|
||||
variables = {
|
||||
#terminal = "kitty";
|
||||
terminal = "alacritty";
|
||||
fileManager = "caja";
|
||||
menu = "wofi --show drun";
|
||||
mainMod = "SUPER";
|
||||
};
|
||||
|
||||
env = {
|
||||
XCURSOR_SIZE = "24";
|
||||
HYPRCURSOR_SIZE = "24";
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
preset = "default";
|
||||
extra = [
|
||||
# "bind = SUPER, RETURN, exec, kitty"
|
||||
];
|
||||
};
|
||||
|
||||
startup = {
|
||||
preset = "default";
|
||||
|
||||
extraExecOnce = [
|
||||
];
|
||||
|
||||
extraExec = [
|
||||
];
|
||||
};
|
||||
|
||||
windowRules = {
|
||||
preset = "default";
|
||||
extra = [];
|
||||
};
|
||||
};
|
||||
|
||||
##########################################################
|
||||
# Waybar
|
||||
##########################################################
|
||||
|
||||
waybar = {
|
||||
enable = true;
|
||||
style.preset = "translucent";
|
||||
settings.extra = {};
|
||||
};
|
||||
|
||||
##########################################################
|
||||
# Wofi
|
||||
##########################################################
|
||||
|
||||
wofi = {
|
||||
enable = true;
|
||||
style.preset = "translucent";
|
||||
settings.extra = {};
|
||||
};
|
||||
|
||||
##########################################################
|
||||
# Terminal
|
||||
##########################################################
|
||||
|
||||
terminal = {
|
||||
package = pkgs.kitty;
|
||||
command = "kitty";
|
||||
};
|
||||
|
||||
##########################################################
|
||||
# EWW
|
||||
##########################################################
|
||||
|
||||
eww = {
|
||||
enable = true;
|
||||
|
||||
widgets = {
|
||||
daybox.enable = true;
|
||||
|
||||
menu.enable = true;
|
||||
|
||||
gif1.enable = true;
|
||||
gif2.enable = true;
|
||||
gif3.enable = true;
|
||||
|
||||
diinkitemperature = {
|
||||
enable = true;
|
||||
apiKey = "abc123"; # Replace with real key
|
||||
cityID = "2643743"; # London
|
||||
unit = "metric"; # or "imperial"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue