Compare commits

..

No commits in common. "f6b00862db9fc1131377364172b087e2015e5fab" and "562dff7a7c29ac0f25adb6ae92bd74b2228a0765" have entirely different histories.

6 changed files with 14 additions and 10 deletions

View file

@ -29,7 +29,7 @@
}; };
outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager
, nixos-hardware, ... }@attrs: , nixos-hardware, hyprland, ... }:
(flake-utils.lib.eachDefaultSystem (system: (flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
@ -48,10 +48,13 @@
# neodymium laptop # neodymium laptop
nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem { nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = attrs;
modules = [ modules = [
./hosts/neodymium/configuration.nix ./hosts/neodymium/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{
home-manager.users.laurent.imports =
[ hyprland.homeManagerModules.default ];
}
agenix.nixosModules.default agenix.nixosModules.default
lanzaboote.nixosModules.lanzaboote lanzaboote.nixosModules.lanzaboote
nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd

View file

@ -1,4 +1,4 @@
{ pkgs, hyprland, ... }: { { pkgs, ... }: {
imports = [ ./hardware-configuration.nix ./system ]; imports = [ ./hardware-configuration.nix ./system ];
# shorter timeout for systemd services # shorter timeout for systemd services
@ -23,7 +23,7 @@
# disable user creation/deletion # disable user creation/deletion
mutableUsers = false; mutableUsers = false;
# absolute gigachad # damn, who's this handsome guy?
users.laurent = { users.laurent = {
isNormalUser = true; isNormalUser = true;
initialPassword = "laurent"; initialPassword = "laurent";
@ -36,7 +36,6 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit hyprland; };
users.laurent = ./home; users.laurent = ./home;
}; };

View file

@ -1,8 +1,6 @@
{ hyprland, ... }: { { ... }: {
config.home.stateVersion = "22.11"; config.home.stateVersion = "22.11";
imports = [ imports = [
hyprland.homeManagerModules.default
./packages.nix ./packages.nix
./alacritty ./alacritty

View file

@ -9,7 +9,6 @@
services.mpris-proxy.enable = true; # media keys services.mpris-proxy.enable = true; # media keys
home.packages = with pkgs; [ home.packages = with pkgs; [
swaybg # wayland background
socat # socket cat socat # socket cat
jq # json utils jq # json utils
baobab # disk utils baobab # disk utils

View file

@ -65,6 +65,11 @@ in {
path = "$HOME/.zsh_history"; path = "$HOME/.zsh_history";
extended = true; extended = true;
}; };
loginExtra = ''
if [[ "$(tty)" == "/dev/tty1" ]]; then
exec sway
fi
'';
initExtra = '' initExtra = ''
bindkey -e bindkey -e
bindkey "^[[1;5C" forward-word bindkey "^[[1;5C" forward-word

View file

@ -5,7 +5,7 @@ monitor=eDP-2,1920x1080@120,0x0,1
# Execute your favorite apps at launch # Execute your favorite apps at launch
exec-once = eww open bar & swaybg -i ~/Pictures/wallpapers/kai-oberhauser-unsplash.jpg & mako & element-desktop & thunderbird & webcord & swayidle -w timeout 100 'swaylock -f --grace 3' timeout 130 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' timeout 300 'systemctl suspend' before-sleep 'swaylock -f' exec-once = GTK_THEME=adwaita waybar & mako & element-desktop & thunderbird & webcord & swayidle -w timeout 100 'swaylock -f --grace 3' timeout 130 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' timeout 300 'systemctl suspend' before-sleep 'swaylock -f'
# Source a file (multi-file configs) # Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf # source = ~/.config/hypr/myColors.conf