wip
This commit is contained in:
@@ -10,10 +10,8 @@
|
|||||||
../common/global
|
../common/global
|
||||||
../common/features/laptop.nix
|
../common/features/laptop.nix
|
||||||
../common/features/networking.nix
|
../common/features/networking.nix
|
||||||
../common/features/intel-graphics.nix
|
../common/features/gpu/intel-graphics.nix
|
||||||
../common/features/wayland.nix
|
../common/features/display
|
||||||
../common/features/x11.nix
|
|
||||||
# ../common/features/greetd.nix
|
|
||||||
../common/features/pipewire.nix
|
../common/features/pipewire.nix
|
||||||
../common/features/docker.nix
|
../common/features/docker.nix
|
||||||
../common/features/fonts.nix
|
../common/features/fonts.nix
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.xserver.videoDrivers = [ "intel" ];
|
|
||||||
hardware.graphics = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
vpl-gpu-rt # or intel-media-sdk for QSV
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
open = false;
|
|
||||||
nvidiaSettings = true;
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
"WEBKIT_DISABLE_DMABUF_RENDERER" = "1";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
wl-clipboard
|
|
||||||
hyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
# thumbnail support for images
|
|
||||||
services.tumbler.enable = true;
|
|
||||||
|
|
||||||
environment.etc."xdg/wayland-sessions/hyprland.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Hyprland
|
|
||||||
Comment=Hyprland Wayland Compositor
|
|
||||||
Exec=Hyprland
|
|
||||||
Type=Application
|
|
||||||
DesktopNames=Hyprland
|
|
||||||
'';
|
|
||||||
|
|
||||||
nix.settings = {
|
|
||||||
substituters = [ "https://hyprland.cachix.org" ];
|
|
||||||
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
let
|
|
||||||
hyprland-session = pkgs.makeDesktopItem {
|
|
||||||
name = "Hyprland";
|
|
||||||
comment = "Hyprland (custom desktop file)";
|
|
||||||
desktopNames = "Hyprland";
|
|
||||||
exec = "Hyprland";
|
|
||||||
type = "Application";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager = {
|
|
||||||
startx.enable = true;
|
|
||||||
gdm.enable = true;
|
|
||||||
};
|
|
||||||
autoRepeatDelay = 250;
|
|
||||||
autoRepeatInterval = 30;
|
|
||||||
};
|
|
||||||
services.displayManager.sessionPackages = with pkgs; [
|
|
||||||
hyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
services.desktopManager = {
|
|
||||||
gnome.enable = true;
|
|
||||||
};
|
|
||||||
services.xserver.windowManager = {
|
|
||||||
i3 = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
dmenu
|
|
||||||
i3status
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.i3lock.enable = true;
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
services = {
|
|
||||||
sysprof.enable = true;
|
|
||||||
gnome = {
|
|
||||||
evolution-data-server.enable = true;
|
|
||||||
glib-networking.enable = true;
|
|
||||||
gnome-keyring.enable = true;
|
|
||||||
gnome-online-accounts.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
environment.gnome.excludePackages =
|
|
||||||
(with pkgs; [
|
|
||||||
gnome-photos
|
|
||||||
gnome-tour
|
|
||||||
gnome-console
|
|
||||||
gnome-text-editor
|
|
||||||
gedit
|
|
||||||
])
|
|
||||||
++ (with pkgs; [
|
|
||||||
cheese # webcam tool
|
|
||||||
gnome-music
|
|
||||||
gnome-terminal
|
|
||||||
epiphany # web browser
|
|
||||||
geary # email reader
|
|
||||||
evince # document viewer
|
|
||||||
totem # video player
|
|
||||||
tali # poker game
|
|
||||||
iagno # go game
|
|
||||||
hitori # sudoku game
|
|
||||||
atomix # puzzle game
|
|
||||||
gnome-contacts
|
|
||||||
gnome-initial-setup
|
|
||||||
gnome-shell-extensions
|
|
||||||
]);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -9,10 +9,8 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../common/global
|
../common/global
|
||||||
../common/features/networking.nix
|
../common/features/networking.nix
|
||||||
../common/features/nvidia.nix
|
../common/features/gpu/nvidia.nix
|
||||||
../common/features/wayland.nix
|
../common/features/display
|
||||||
../common/features/x11.nix
|
|
||||||
# ../common/features/greetd.nix
|
|
||||||
../common/features/pipewire.nix
|
../common/features/pipewire.nix
|
||||||
../common/features/docker.nix
|
../common/features/docker.nix
|
||||||
../common/features/fonts.nix
|
../common/features/fonts.nix
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
nixpkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
|
||||||
../common/global
|
|
||||||
../common/features/hyprland.nix
|
|
||||||
../common/features/docker.nix
|
|
||||||
../common/features/fonts.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
../common/global
|
|
||||||
../common/features/laptop.nix
|
|
||||||
../common/features/networking.nix
|
|
||||||
../common/features/nvidia.nix
|
|
||||||
../common/features/wayland.nix
|
|
||||||
../common/features/pipewire.nix
|
|
||||||
../common/features/docker.nix
|
|
||||||
../common/features/fonts.nix
|
|
||||||
../common/features/nix-ld.nix
|
|
||||||
../common/features/bluetooth.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "arrakis";
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
users.users.naps62 = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Miguel Palhas";
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"input"
|
|
||||||
"wheel"
|
|
||||||
"docker"
|
|
||||||
];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
initialHashedPassword = "$y$j9T$uRTzF/sBdrqVGZTRhPuR00$wgLgEGlq.lEmlCPiy69jkbtfC9HKpyaVPDHDdBGtE5D";
|
|
||||||
openssh.authorizedKeys.keys =
|
|
||||||
let
|
|
||||||
authorizedKeys = pkgs.fetchurl {
|
|
||||||
url = "https://github.com/naps62.keys";
|
|
||||||
sha256 = "sha256-dP8LjaburPwfIr2jhly9rMwOLJyUkQP7Em5IKH/qXbY=";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgs.lib.splitString "\n" (builtins.readFile authorizedKeys);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# 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 + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "rtsx_pci_sdmmc" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/d0c50eb6-ac06-4912-a28c-a9f21223b5c0";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-ea55a0cd-a045-44b8-8ea8-7d6f5820db58".device = "/dev/disk/by-uuid/ea55a0cd-a045-44b8-8ea8-7d6f5820db58";
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/84C0-4E34";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user