Update celerrime host

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-12-24 08:49:24 +03:00
parent 8aedc81916
commit 9017e9e97d
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
6 changed files with 16 additions and 20 deletions

View file

@ -23,6 +23,7 @@
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns4 = true;
}; };
services.chrony.enable = true; services.chrony.enable = true;

View file

@ -3,8 +3,10 @@
let let
cfg = config.my.users; cfg = config.my.users;
keys = [ keys = [
# Celerrime # Celerrime macOS
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF0GX4/09I5B7nVeU3EKw58VyKNsbwpi4KzuJrgpoVfR ivabus@celerrime-x" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF0GX4/09I5B7nVeU3EKw58VyKNsbwpi4KzuJrgpoVfR ivabus@celerrime-x"
# Celerrime NixOS
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKp/t0ImyVYqaxVda8XP6fcxJVkf+Sc4oo3x5a5j2Gk ivabus@celerrime"
]; ];
in rec { in rec {
options.my.users = { options.my.users = {

View file

@ -39,6 +39,7 @@ in {
hardware.asahi.peripheralFirmwareDirectory = ../../asahi/firmware; hardware.asahi.peripheralFirmwareDirectory = ../../asahi/firmware;
hardware.asahi.addEdgeKernelConfig = true; hardware.asahi.addEdgeKernelConfig = true;
hardware.asahi.useExperimentalGPUDriver = true; hardware.asahi.useExperimentalGPUDriver = true;
hardware.asahi.setupAsahiSound = true;
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
[ (retroarch.override { cores = with libretro; [ np2kai ]; }) ]; [ (retroarch.override { cores = with libretro; [ np2kai ]; }) ];

View file

@ -9,25 +9,23 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/aed0b311-8954-4164-afc3-9e7c6a2d8c2a"; device = "/dev/disk/by-uuid/679b5c29-3e7f-4449-96f0-7e5890302e32";
fsType = "ext4"; fsType = "btrfs";
}; };
boot.initrd.luks.devices."cryptroot".device = boot.initrd.luks.devices."nixos-root".device =
"/dev/disk/by-uuid/8551d309-afe6-4a25-b571-b2cb1eff7c09"; "/dev/disk/by-uuid/845370c8-5841-4c9e-b50b-c3a70f6fd2b6";
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/771E-1309"; device = "/dev/disk/by-uuid/2AC0-1B04";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [{ swapDevices = [{
device = "/dev/disk/by-partuuid/dace6477-697e-4bba-aede-eb0e9f7a28ff"; device = "/dev/disk/by-partuuid/8bd4586f-e44b-41b3-a060-52ba7773237f";
randomEncryption.enable = true; randomEncryption.enable = true;
}]; }];
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
} }

View file

@ -94,10 +94,10 @@ in {
}; };
# 2 gig of ram is not enough # 2 gig of ram is not enough
swapDevices = [ { swapDevices = [{
device = "/var/lib/swapfile"; device = "/var/lib/swapfile";
size = 16*1024; size = 16 * 1024;
} ]; }];
# Semi-static configuration, needs rethinking # Semi-static configuration, needs rethinking
services.nginx = { services.nginx = {

View file

@ -63,7 +63,7 @@ in {
gtk = { gtk = {
enable = true; enable = true;
theme = { theme = {
name = "Catppuccin-Macchiato-Standard-Blue-dark"; name = "Catppuccin-Macchiato-Standard-Blue-Dark";
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
accents = [ "blue" ]; accents = [ "blue" ];
tweaks = [ "rimless" ]; tweaks = [ "rimless" ];
@ -106,13 +106,7 @@ in {
}; };
}) })
(lib.mkIf (cfg.basic.enable || cfg.enable) { (lib.mkIf (cfg.basic.enable || cfg.enable) {
services.pipewire = { sound.enable = true;
enable = true;
alsa.enable = true;
pulse.enable = true;
alsa.support32Bit = true;
};
qt = { qt = {
enable = true; enable = true;
platformTheme = "gtk2"; platformTheme = "gtk2";