feat: add tux

This commit is contained in:
2025-01-22 00:55:50 +00:00
parent d2022efd78
commit 658274939a
6 changed files with 52 additions and 67 deletions

View File

@@ -11,10 +11,16 @@
outputs = inputs@{ nixpkgs, home-manager, nixos-wsl, ... }: outputs = inputs@{ nixpkgs, home-manager, nixos-wsl, ... }:
let let
systems = [ "x86_64-linux" ]; systems = [ "x86_64-linux" ];
hosts = [{ hosts = [
name = "wsl-kumatani"; {
isWSL = true; name = "wsl-kumatani";
}]; isWSL = true;
}
{
name = "tux";
isWSL = false;
}
];
in { in {
nixosConfigurations = builtins.listToAttrs (map (host: { nixosConfigurations = builtins.listToAttrs (map (host: {
name = host.name; name = host.name;

View File

@@ -2,13 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, home-manager, ... }: { config, lib, pkgs, inputs, home-manager, meta, ... }:
{ {
imports = imports = [ # Include the results of the hardware scan.
[ # Include the results of the hardware scan. ./hardware-configuration.nix
./hardware-configuration.nix ../../modules/default.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@@ -19,28 +19,15 @@
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "tux"; # Define your hostname. networking.hostName = meta.hostname; # Define your hostname.
# services.xserver = {
# enable = true;
# windowManager.i3.enable = true;
# };
#
# services.displayManager = {
# defaultSession = "none+i3";
# };
#programs.hyprland = {
# enable = true;
# xwayland.enable = true;
#};
security.sudo = { security.sudo = {
enable = true; enable = true;
wheelNeedsPassword = false; wheelNeedsPassword = false;
}; };
hm.enable = true;
i3.enable = true;
#programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland; #programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;
programs.firefox.enable = true; programs.firefox.enable = true;
@@ -54,11 +41,7 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common = { config.common = { default = [ "gtk" ]; };
default = [
"gtk"
];
};
}; };
# Pick only one of the below networking options. # Pick only one of the below networking options.
@@ -83,9 +66,6 @@
# Enable the X11 windowing system. # Enable the X11 windowing system.
# services.xserver.enable = true; # services.xserver.enable = true;
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.xkb.layout = "us"; # services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape"; # services.xserver.xkb.options = "eurosign:e,caps:escape";
@@ -101,46 +81,37 @@
pulse.enable = true; pulse.enable = true;
}; };
hardware = { hardware = { graphics.enable = true; };
graphics.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true; # services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.luca = import ./home/home.nix;
users.users.luca = { users.users.luca = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [ packages = with pkgs; [ vesktop nodejs_22 pnpm ];
vesktop
nodejs_22
pnpm
];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPassword = "$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3"; hashedPassword =
"$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3";
}; };
programs.zsh.enable = true;
# programs.firefox.enable = true; # programs.firefox.enable = true;
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget wget
curl curl
ripgrep ripgrep
git git
neovim neovim
busybox busybox
dolphin dolphin
wireguard-tools wireguard-tools
gh gh
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View File

@@ -1,2 +1,4 @@
{ pkgs, lib, config, ... }: { imports = [ ./commonPackages.nix ./hm.nix ]; } { pkgs, lib, config, ... }: {
imports = [ ./commonPackages.nix ./hm.nix ./i3.nix ];
}

View File

@@ -5,7 +5,6 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.luca = import ../users/luca/home.nix; home-manager.users.luca = import ../users/luca/home.nix;
users.users.luca.shell = pkgs.zsh;
programs.zsh.enable = true; programs.zsh.enable = true;
}; };
} }

View File

@@ -16,11 +16,20 @@
settings.window.opacity = 0.6; settings.window.opacity = 0.6;
}; };
}; };
};
services.picom = { services.picom = {
enable = true; enable = true;
vSync = true; vSync = true;
};
xsession.windowManager.i3 = {
enable = true;
config = {
modifier = "Mod4";
defaultWorkspace = "workspace number 1";
terminal = "alacritty";
};
};
}; };
}; };
} }

View File

@@ -11,8 +11,6 @@
helix = import ./helix.nix { inherit pkgs; }; helix = import ./helix.nix { inherit pkgs; };
}; };
config.i3.enable ?
home.packages = with pkgs; [ home.packages = with pkgs; [
nodePackages_latest.typescript-language-server nodePackages_latest.typescript-language-server
nodejs_22 nodejs_22