Compare commits
4 commits
7943f84712
...
fc96d1d0ae
Author | SHA1 | Date | |
---|---|---|---|
Alexandre Cavalheiro | fc96d1d0ae | ||
Alexandre Cavalheiro | d217ebc911 | ||
Alexandre Cavalheiro | 108cfa8e80 | ||
Alexandre Cavalheiro | becce8eea2 |
|
@ -255,18 +255,6 @@
|
||||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
|
||||||
# Bind workspaces to specific monitors
|
|
||||||
workspace = 1, monitor:DP-2
|
|
||||||
workspace = 2, monitor:DP-3
|
|
||||||
workspace = 3, monitor:DP-2
|
|
||||||
workspace = 4, monitor:DP-3
|
|
||||||
workspace = 5, monitor:DP-2
|
|
||||||
workspace = 6, monitor:DP-3
|
|
||||||
workspace = 7, monitor:DP-2
|
|
||||||
workspace = 8, monitor:DP-3
|
|
||||||
workspace = 9, monitor:DP-2
|
|
||||||
workspace = 0, monitor:DP-3
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
|
|
@ -15,25 +15,11 @@ waybar &
|
||||||
#
|
#
|
||||||
xwaylandvideobridge &
|
xwaylandvideobridge &
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
## Start wallpaper daemon and set one.
|
# Start wallpaper daemon
|
||||||
#
|
#
|
||||||
OUTPUT_1="DP-2"
|
~/.local/share/scripts/wallpaper.sh &
|
||||||
IMAGE_1="/mnt/internal/personal/wallpapers/wallhaven-vqlvm8.jpg"
|
|
||||||
|
|
||||||
OUTPUT_2="DP-3"
|
|
||||||
IMAGE_2="/mnt/internal/personal/wallpapers/wallhaven-2yl6px.jpg"
|
|
||||||
|
|
||||||
function load_wallpapers() {
|
|
||||||
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
|
|
||||||
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_2 $IMAGE_2
|
|
||||||
}
|
|
||||||
|
|
||||||
if ! swww query; then
|
|
||||||
swww-daemon &
|
|
||||||
fi
|
|
||||||
|
|
||||||
load_wallpapers &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start notification daemon.
|
# Start notification daemon.
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Enable WOL on my ethernet interface.
|
|
||||||
networking.interfaces.enp5s0.wakeOnLan.enable = true;
|
|
||||||
|
|
||||||
# Define variables that will be initialized in PAM.
|
# Define variables that will be initialized in PAM.
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# Set env for Fcitx5
|
# Set env for Fcitx5
|
||||||
|
|
|
@ -29,11 +29,52 @@
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
# Create wallpaper script to be read by the start_services.sh script.
|
||||||
|
".local/share/scripts/wallpaper.sh" = {
|
||||||
|
executable = true;
|
||||||
|
text = # sh
|
||||||
|
''
|
||||||
|
#
|
||||||
|
## Start wallpaper daemon and set one.
|
||||||
|
#
|
||||||
|
OUTPUT_1="DP-2"
|
||||||
|
IMAGE_1="/mnt/internal/personal/wallpapers/wallhaven-vqlvm8.jpg"
|
||||||
|
|
||||||
|
OUTPUT_2="DP-3"
|
||||||
|
IMAGE_2="/mnt/internal/personal/wallpapers/wallhaven-2yl6px.jpg"
|
||||||
|
|
||||||
|
function load_wallpapers() {
|
||||||
|
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
|
||||||
|
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_2 $IMAGE_2
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! swww query; then
|
||||||
|
swww-daemon &
|
||||||
|
fi
|
||||||
|
|
||||||
|
load_wallpapers &
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Add monitor configuration to hyprland
|
# Add monitor configuration to hyprland
|
||||||
modules.hyprland.extraConfig = # hyprlang
|
modules.hyprland.extraConfig = # hyprlang
|
||||||
''
|
''
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor = DP-3, 1920x1080@74.973, 2560x0, 1
|
monitor = DP-3, 1920x1080@74.973, 2560x0, 1
|
||||||
monitor = DP-2, 2560x1440@165.00301, 0x0, 1
|
monitor = DP-2, 2560x1440@165.00301, 0x0, 1
|
||||||
|
|
||||||
|
# Bind workspaces to specific monitors
|
||||||
|
workspace = 1, monitor:DP-2
|
||||||
|
workspace = 2, monitor:DP-3
|
||||||
|
workspace = 3, monitor:DP-2
|
||||||
|
workspace = 4, monitor:DP-3
|
||||||
|
workspace = 5, monitor:DP-2
|
||||||
|
workspace = 6, monitor:DP-3
|
||||||
|
workspace = 7, monitor:DP-2
|
||||||
|
workspace = 8, monitor:DP-3
|
||||||
|
workspace = 9, monitor:DP-2
|
||||||
|
workspace = 0, monitor:DP-3
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,4 +131,11 @@
|
||||||
LC_TIME = "en_GB.UTF-8";
|
LC_TIME = "en_GB.UTF-8";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#
|
||||||
|
# NETWORK #
|
||||||
|
#
|
||||||
|
|
||||||
|
# Enable WOL on my ethernet interface.
|
||||||
|
networking.interfaces.enp5s0.wakeOnLan.enable = true;
|
||||||
}
|
}
|
||||||
|
|
53
specific/laptop/hardware-configuration.nix
Normal file
53
specific/laptop/hardware-configuration.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
# 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 = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/796d5ad8-db83-4c4f-883d-2f1f4f1937de";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."luks-94d233be-889a-46a4-9c20-b7f026980cbf".device = "/dev/disk/by-uuid/94d233be-889a-46a4-9c20-b7f026980cbf";
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/CA05-302F";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
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.wlp2s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
|
@ -28,11 +28,47 @@
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
# Create wallpaper script to be read by the start_services.sh script.
|
||||||
|
".local/share/scripts/wallpaper.sh" = {
|
||||||
|
executable = true;
|
||||||
|
text = # sh
|
||||||
|
''
|
||||||
|
#
|
||||||
|
## Start wallpaper daemon and set one.
|
||||||
|
#
|
||||||
|
OUTPUT_1="eDP-1"
|
||||||
|
IMAGE_1="/home/wizardlink/Pictures/wallhaven-x6p3y3.jpg"
|
||||||
|
|
||||||
|
function load_wallpapers() {
|
||||||
|
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! swww query; then
|
||||||
|
swww-daemon &
|
||||||
|
fi
|
||||||
|
|
||||||
|
load_wallpapers &
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Add monitor configuration to hyprland
|
# Add monitor configuration to hyprland
|
||||||
modules.hyprland.extraConfig = # hyprlang
|
modules.hyprland.extraConfig = # hyprlang
|
||||||
''
|
''
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor = DP-3, 1920x1080@74.973, 2561x0, 1
|
monitor = eDP-1, 1920x1080@60.01, 0x0, 1
|
||||||
monitor = DP-2, 2560x1440@165.00301, 0x0, 1
|
|
||||||
|
# Bind workspaces to specific monitors
|
||||||
|
workspace = 1, monitor:eDP-1
|
||||||
|
workspace = 2, monitor:eDP-1
|
||||||
|
workspace = 3, monitor:eDP-1
|
||||||
|
workspace = 4, monitor:eDP-1
|
||||||
|
workspace = 5, monitor:eDP-1
|
||||||
|
workspace = 6, monitor:eDP-1
|
||||||
|
workspace = 7, monitor:eDP-1
|
||||||
|
workspace = 8, monitor:eDP-1
|
||||||
|
workspace = 9, monitor:eDP-1
|
||||||
|
workspace = 0, monitor:eDP-1
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
|
./hardware-configuration.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue