Compare commits
2 Commits
4fae4a44bf
...
d5d95c2dfa
| Author | SHA1 | Date |
|---|---|---|
|
|
d5d95c2dfa | |
|
|
fdc5db376f |
|
|
@ -38,8 +38,6 @@
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
system = builtins.currentSystem;
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
commonModules = host: user: [
|
commonModules = host: user: [
|
||||||
./hosts/${host}/hardware-configuration.nix
|
./hosts/${host}/hardware-configuration.nix
|
||||||
{
|
{
|
||||||
|
|
@ -48,7 +46,7 @@
|
||||||
(self: super: {utillinux = super.util-linux;})
|
(self: super: {utillinux = super.util-linux;})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
({pkgs, ...}: {
|
||||||
networking.hostName = host;
|
networking.hostName = host;
|
||||||
time.timeZone = "Asia/Bangkok";
|
time.timeZone = "Asia/Bangkok";
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|
@ -70,7 +68,7 @@
|
||||||
};
|
};
|
||||||
users.users.${user} = {
|
users.users.${user} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["wheel" "video"]; # Enable ‘sudo’ for the user.
|
extraGroups = ["wheel" "video"]; # Enable 'sudo' for the user.
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAa3tMzSCRuprEACrBsKI0F/o73o6J9L1qR3TaZn/N8 user@Kell"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAa3tMzSCRuprEACrBsKI0F/o73o6J9L1qR3TaZn/N8 user@Kell"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByLwLAdJbmoDV5sx4hg5NbzKbOh1GmWEhDOUJ1GQBhK user@Riva"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByLwLAdJbmoDV5sx4hg5NbzKbOh1GmWEhDOUJ1GQBhK user@Riva"
|
||||||
|
|
@ -85,7 +83,7 @@
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
})
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
||||||
|
|
@ -32,15 +32,6 @@ in {
|
||||||
smile
|
smile
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hyprpaper = {
|
|
||||||
settings = {
|
|
||||||
wallpaper = [
|
|
||||||
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
"eDP-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
"eDP-1,2560x1440@60.01,0x0,1"
|
"eDP-1,2560x1440@60.01,0x0,1"
|
||||||
|
|
|
||||||
|
|
@ -38,15 +38,6 @@ in {
|
||||||
jetbrains.rider
|
jetbrains.rider
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hyprpaper = {
|
|
||||||
settings = {
|
|
||||||
wallpaper = [
|
|
||||||
"DP-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
"DP-2,${./hyprland/files/wallpaper.png}"
|
|
||||||
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
"DP-2,preferred,0x550,1"
|
"DP-2,preferred,0x550,1"
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,6 @@ in {
|
||||||
jq
|
jq
|
||||||
rclone
|
rclone
|
||||||
];
|
];
|
||||||
services.hyprpaper = {
|
|
||||||
settings = {
|
|
||||||
wallpaper = [
|
|
||||||
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
"Virtual-1,2560x1440,0x0,1"
|
"Virtual-1,2560x1440,0x0,1"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
};
|
};
|
||||||
ignores = [
|
ignores = [
|
||||||
"*.direnv/"
|
"*.direnv/"
|
||||||
|
"*.nix/"
|
||||||
|
"uv.lock"
|
||||||
".dmypy.json"
|
".dmypy.json"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ in {
|
||||||
# (import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
# (import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
||||||
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
||||||
(import ../Common/android.nix {inherit pkgs;})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
|
|
@ -40,7 +39,6 @@ in {
|
||||||
nixpkgs.config.rocmSupport = true;
|
nixpkgs.config.rocmSupport = true;
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
acceleration = "rocm";
|
|
||||||
};
|
};
|
||||||
# nixpkgs.config.cudaSupport = true;
|
# nixpkgs.config.cudaSupport = true;
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue