pre hyprland.nix import

This commit is contained in:
MichaelFisher1997 2024-06-05 23:04:40 +01:00
parent 3379f712ac
commit 9636126866
4 changed files with 34 additions and 21 deletions

View File

@ -9,6 +9,9 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./packages.nix
./mnt.nix
./docker.nix
./hyprland.nix
];
# Bootloader.
@ -21,10 +24,6 @@
networking.hostName = "hypr-nix"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
@ -86,11 +85,7 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
virtualisation.docker.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users.users.micqdf = {
isNormalUser = true;
@ -138,20 +133,9 @@
programs.gamemode.enable = true;
fileSystems."/mnt/BigNAS" = {
device = "10.27.27.239:/BigNAS";
fsType = "nfs";
};
fileSystems."/mnt/NV1" = {
device = "/dev/nvme1n1p2";
fsType = "btrfs";
};
# List services that you want to enable:
environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/user/.steam/root/compatibilitytools.d";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/mciqdf/.steam/root/compatibilitytools.d";
hyprshot = "/home/micqdf/flakes/hyprshot/Hyprshot";
};

8
docker.nix Normal file
View File

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
virtualisation.docker.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
}

8
hyprland.nix Normal file
View File

@ -0,0 +1,8 @@
{ inputs, pkgs, config, username, ... }:
{
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;
};
}

13
mnt.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
fileSystems."/mnt/BigNAS" = {
device = "10.27.27.239:/BigNAS";
fsType = "nfs";
};
fileSystems."/mnt/NV1" = {
device = "/dev/nvme1n1p2";
fsType = "btrfs";
};
}