mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Added modules/
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./modules/services.nix
|
||||||
|
./modules/styling.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -28,6 +30,25 @@
|
|||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
networking.firewall.allowedUDPPorts = [ 25565 ];
|
||||||
|
networking.firewall.allowedTCPPorts = [ 25565 ];
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
open = true;
|
||||||
|
prime = {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
@@ -46,47 +67,17 @@
|
|||||||
LC_TIME = "it_IT.UTF-8";
|
LC_TIME = "it_IT.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
programs.fish.enable = true; # This must be true before initializing my user
|
||||||
users.users.r3ddy = {
|
users.users.r3ddy = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Patrick Canal";
|
description = "Patrick Canal";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
|
||||||
vesktop
|
|
||||||
kitty
|
|
||||||
heroic
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.fish.enable = true;
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true;
|
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
@@ -99,19 +90,21 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# CLI utils
|
# CLI utils
|
||||||
git
|
|
||||||
wget
|
|
||||||
fish
|
|
||||||
gcc
|
|
||||||
unzip
|
|
||||||
zip
|
|
||||||
ripgrep
|
|
||||||
jq
|
|
||||||
fzf
|
|
||||||
gnumake
|
|
||||||
cmake
|
|
||||||
zoxide
|
|
||||||
appimage-run
|
appimage-run
|
||||||
|
cmake
|
||||||
|
fish
|
||||||
|
fzf
|
||||||
|
gcc
|
||||||
|
git
|
||||||
|
gnumake
|
||||||
|
jq
|
||||||
|
ripgrep
|
||||||
|
tree
|
||||||
|
unzip
|
||||||
|
wget
|
||||||
|
zip
|
||||||
|
zoxide
|
||||||
|
zulu
|
||||||
|
|
||||||
vim # The only and one great editor
|
vim # The only and one great editor
|
||||||
neovim # The only and one great editor improved even further
|
neovim # The only and one great editor improved even further
|
||||||
@@ -120,48 +113,23 @@
|
|||||||
vulkan-tools
|
vulkan-tools
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
prismlauncher
|
heroic
|
||||||
mangohud
|
mangohud
|
||||||
|
prismlauncher
|
||||||
|
steam
|
||||||
|
vesktop
|
||||||
|
|
||||||
# Desktop utils
|
# Desktop utils
|
||||||
xdg-desktop-portal-kde
|
kitty
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-kde
|
||||||
|
|
||||||
# LSPs
|
# LSPs
|
||||||
nil # .nix
|
nil # .nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Styling
|
programs.steam.enable = true;
|
||||||
stylix.enable = true;
|
programs.steam.remotePlay.openFirewall = true;
|
||||||
stylix.image = pkgs.fetchurl {
|
|
||||||
url = "https://wallpaperaccess.com/full/4268145.jpg";
|
|
||||||
sha256 = "06c8jmm7m0n4xlfki8sx6msdjjjbyydpyxs4k71d1lxn20ga2zph";
|
|
||||||
};
|
|
||||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
||||||
stylix.cursor.package = pkgs.bibata-cursors;
|
|
||||||
stylix.cursor.name = "Bibata-Modern-Classic";
|
|
||||||
stylix.cursor.size = 24;
|
|
||||||
stylix.fonts = {
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
|
||||||
name = "JetBrainsMono Nerd Font";
|
|
||||||
};
|
|
||||||
sansSerif = {
|
|
||||||
package = pkgs.dejavu_fonts;
|
|
||||||
name = "DejaVu Sans";
|
|
||||||
};
|
|
||||||
serif = {
|
|
||||||
package = pkgs.dejavu_fonts;
|
|
||||||
name = "DejaVu Serif";
|
|
||||||
};
|
|
||||||
sizes = {
|
|
||||||
terminal = 16;
|
|
||||||
desktop = 10;
|
|
||||||
popups = 10;
|
|
||||||
applications = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
stylix.polarity = "dark";
|
|
||||||
|
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -227,11 +227,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725103162,
|
"lastModified": 1725432240,
|
||||||
"narHash": "sha256-Ym04C5+qovuQDYL/rKWSR+WESseQBbNAe5DsXNx5trY=",
|
"narHash": "sha256-+yj+xgsfZaErbfYM3T+QvEE2hU7UuE+Jf0fJCJ8uPS0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "12228ff1752d7b7624a54e9c1af4b222b3c1073b",
|
"rev": "ad416d066ca1222956472ab7d0555a6946746a80",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -40,20 +40,4 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
||||||
open = true;
|
|
||||||
prime = {
|
|
||||||
offload = {
|
|
||||||
enable = true;
|
|
||||||
enableOffloadCmd = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
home.username = "r3ddy";
|
home.username = "r3ddy";
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.zoxide.enable = true;
|
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|||||||
25
modules/services.nix
Normal file
25
modules/services.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
33
modules/styling.nix
Normal file
33
modules/styling.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
stylix.enable = true;
|
||||||
|
stylix.image = pkgs.fetchurl {
|
||||||
|
url = "https://wallpaperaccess.com/full/4268145.jpg";
|
||||||
|
sha256 = "06c8jmm7m0n4xlfki8sx6msdjjjbyydpyxs4k71d1lxn20ga2zph";
|
||||||
|
};
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||||
|
stylix.cursor.package = pkgs.bibata-cursors;
|
||||||
|
stylix.cursor.name = "Bibata-Modern-Classic";
|
||||||
|
stylix.cursor.size = 24;
|
||||||
|
stylix.fonts = {
|
||||||
|
monospace = {
|
||||||
|
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
||||||
|
name = "JetBrainsMono Nerd Font";
|
||||||
|
};
|
||||||
|
sansSerif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Sans";
|
||||||
|
};
|
||||||
|
serif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Serif";
|
||||||
|
};
|
||||||
|
sizes = {
|
||||||
|
terminal = 16;
|
||||||
|
desktop = 10;
|
||||||
|
popups = 10;
|
||||||
|
applications = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
stylix.polarity = "dark";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user