mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2025-08-04 01:00:22 -04:00
revert: use old flake
This commit is contained in:
parent
d164e5e53d
commit
a2e660782f
20 changed files with 1158 additions and 3 deletions
55
hosts/common/global/default.nix
Normal file
55
hosts/common/global/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
# hosts/common/global/default.nix
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./locale.nix
|
||||
];
|
||||
|
||||
# Enable nix flakes
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Basic system packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
greetd.greetd
|
||||
greetd.tuigreet
|
||||
libinput
|
||||
libnotify
|
||||
kitty
|
||||
zsh
|
||||
ollama
|
||||
];
|
||||
|
||||
# Enable the OpenSSH daemon
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Greetd configuration
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "''${pkgs.greetd.tuigreet}/bin/tuigreet --time ";
|
||||
user = "fabric";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Display manager configuration
|
||||
services.displayManager.defaultSession = "hyprland";
|
||||
|
||||
# Default programs
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
# This value determines the NixOS release version
|
||||
system.stateVersion = "24.11";
|
||||
}
|
14
hosts/common/global/locale.nix
Normal file
14
hosts/common/global/locale.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
# hosts/common/global/locale.nix
|
||||
{...}: {
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Toronto";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_CA.UTF-8";
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
}
|
4
hosts/common/optional/docker.nix
Normal file
4
hosts/common/optional/docker.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
# hosts/common/optional/docker.nix
|
||||
{...}: {
|
||||
virtualisation.docker.enable = true;
|
||||
}
|
21
hosts/common/optional/nvidia.nix
Normal file
21
hosts/common/optional/nvidia.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
# hosts/common/optional/nvidia.nix
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
};
|
||||
}
|
4
hosts/common/optional/steam.nix
Normal file
4
hosts/common/optional/steam.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
# hosts/common/optional/steam.nix
|
||||
{...}: {
|
||||
programs.steam.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue