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, ... }:
let
systems = [ "x86_64-linux" ];
hosts = [{
hosts = [
{
name = "wsl-kumatani";
isWSL = true;
}];
}
{
name = "tux";
isWSL = false;
}
];
in {
nixosConfigurations = builtins.listToAttrs (map (host: {
name = host.name;

View File

@@ -2,12 +2,12 @@
# 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`).
{ config, lib, pkgs, inputs, home-manager, ... }:
{ config, lib, pkgs, inputs, home-manager, meta, ... }:
{
imports =
[ # Include the results of the hardware scan.
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/default.nix
];
boot.loader.systemd-boot.enable = true;
@@ -19,28 +19,15 @@
networking.networkmanager.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "tux"; # Define your hostname.
# services.xserver = {
# enable = true;
# windowManager.i3.enable = true;
# };
#
# services.displayManager = {
# defaultSession = "none+i3";
# };
#programs.hyprland = {
# enable = true;
# xwayland.enable = true;
#};
networking.hostName = meta.hostname; # Define your hostname.
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
hm.enable = true;
i3.enable = true;
#programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;
programs.firefox.enable = true;
@@ -54,11 +41,7 @@
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common = {
default = [
"gtk"
];
};
config.common = { default = [ "gtk" ]; };
};
# Pick only one of the below networking options.
@@ -83,9 +66,6 @@
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
@@ -101,29 +81,20 @@
pulse.enable = true;
};
hardware = {
graphics.enable = true;
};
hardware = { graphics.enable = true; };
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# 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 = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
vesktop
nodejs_22
pnpm
];
packages = with pkgs; [ vesktop nodejs_22 pnpm ];
shell = pkgs.zsh;
hashedPassword = "$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3";
hashedPassword =
"$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3";
};
programs.zsh.enable = true;
# programs.firefox.enable = true;

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.useUserPackages = true;
home-manager.users.luca = import ../users/luca/home.nix;
users.users.luca.shell = pkgs.zsh;
programs.zsh.enable = true;
};
}

View File

@@ -16,11 +16,20 @@
settings.window.opacity = 0.6;
};
};
};
services.picom = {
enable = 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; };
};
config.i3.enable ?
home.packages = with pkgs; [
nodePackages_latest.typescript-language-server
nodejs_22