Compare commits
No commits in common. "9b662fc78030884a1dc19983b92eb96947dac8d7" and "83990a7d428dec26e42d2e96b24abe3a95167b44" have entirely different histories.
9b662fc780
...
83990a7d42
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
result
|
||||
**/dist-newstyle
|
||||
.direnv
|
||||
|
|
|
@ -10,12 +10,10 @@
|
|||
|
||||
../common/optional/key.nix
|
||||
|
||||
./programs
|
||||
./services
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
/* Boot configuration */
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelParams = [
|
||||
|
@ -26,7 +24,6 @@
|
|||
initrd.kernelModules = [ "amdgpu" ];
|
||||
};
|
||||
|
||||
/* Hardware configuration */
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
|
@ -49,12 +46,48 @@
|
|||
};
|
||||
};
|
||||
|
||||
/* Networking configuration */
|
||||
networking = {
|
||||
hostName = "fuchsia";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
direnv.enable = true;
|
||||
adb.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
# Enable necessary udev rules.
|
||||
udev.packages = with pkgs; [
|
||||
openrgb
|
||||
qmk-udev-rules
|
||||
];
|
||||
|
||||
# Setup our display server.
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "au";
|
||||
videoDrivers = [ "amdgpu" ];
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
|
||||
libinput = {
|
||||
enable = true;
|
||||
mouse = { accelProfile = "flat"; };
|
||||
};
|
||||
|
||||
# Get up and running with large language models locally.
|
||||
ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
};
|
||||
|
||||
# Enable a few other services.
|
||||
ratbagd.enable = true;
|
||||
pcscd.enable = true;
|
||||
};
|
||||
|
||||
# Use docker instead of podman for our containers.
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
# Load and unload environment variables.
|
||||
direnv.enable = true;
|
||||
# Android debug bridge: communicate with devices.
|
||||
adb.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -3,15 +3,5 @@
|
|||
{
|
||||
imports = [
|
||||
./amdgpu-clocks.nix
|
||||
./flatpak.nix
|
||||
./libinput.nix
|
||||
./ollama.nix
|
||||
./udev.nix
|
||||
./xserver.nix
|
||||
];
|
||||
|
||||
# Enable a few extra services.
|
||||
services = {
|
||||
pcscd.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Required to install flatpak
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.common.default = [ "gtk" ];
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
|
||||
};
|
||||
|
||||
services.flatpak.enable = true;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.libinput = {
|
||||
enable = true;
|
||||
mouse = { accelProfile = "flat"; };
|
||||
};
|
||||
|
||||
# DBus daemon to configure input devices.
|
||||
services.ratbagd.enable = true;
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Get up and running with large language models locally.
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
};
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable necessary udev rules.
|
||||
services.udev.packages = with pkgs; [
|
||||
openrgb
|
||||
qmk-udev-rules
|
||||
];
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Setup our display server
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "au";
|
||||
videoDrivers = [ "amdgpu" ];
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
}
|
|
@ -2,11 +2,4 @@
|
|||
|
||||
pkgs.haskellPackages.developPackage {
|
||||
root = ./.;
|
||||
source-overrides = {
|
||||
xmonad = (builtins.fetchTarball {
|
||||
url = "https://github.com/xmonad/xmonad/archive/refs/tags/v0.18.0.tar.gz";
|
||||
sha256 = "0jlc60n5jarcxgjxm1vcsgc3s2lwmn3c3n56hialhzx54wfskkbc";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -8,12 +8,11 @@ author: sajenim
|
|||
maintainer: its.jassy@pm.me
|
||||
build-type: Simple
|
||||
|
||||
executable xmonad
|
||||
executable xmonad-config
|
||||
main-is: xmonad.hs
|
||||
hs-source-dirs: src
|
||||
ghc-options: -Wall
|
||||
build-depends: base,
|
||||
X11,
|
||||
xmonad,
|
||||
xmonad-contrib
|
||||
default-language: Haskell2010
|
||||
|
|
Loading…
Reference in a new issue