Merge branch 'main' of gitlab.com:ahoneybun/nix-configs

This commit is contained in:
Aaron Honeycutt 2024-10-02 18:26:59 -06:00
commit b29f734e40
4 changed files with 115 additions and 8 deletions

View file

@ -39,7 +39,8 @@ These files are for the systems themselves such as my Pinebook Pro, Raspberry Pi
### x86_64 Nix files: (nix-configs/systems/x86_64/)
- `shepard` : This is my System76 nebula49.
- `garrus` : This is my System76 Galago Pro (galp3-b).
- `garrus` : This is my System76 Galago Pro (galp5).
- `grunt` : This is my Google Pixel Slate.
- `edi` : This is my custom build for homelab possible stuff.
- `thelio-nvidia` : This is my work Thelio B1.
- `sovereign` : This was a Linode instance but it could be for other VPS services as well.
@ -48,6 +49,7 @@ These files are for the systems themselves such as my Pinebook Pro, Raspberry Pi
### aarch64 Nix files: (nix-configs/systems/aarch64/)
- `jaal.nix` : This is my Pinebook Pro.
- `drack.nix` : This is my Thinkpad X13s.
- `peebee.nix` : This is my PinePhone.
- `lexi.nix` : This is my OnePlus 6T.
- `vetra.nix` : This is my Raspberry Pi 4B.

View file

@ -1,10 +1,9 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
./work.nix
];
# Latest kernel
@ -29,6 +28,11 @@
options = "--delete-older-than 1w";
};
swapDevices = [ {
device = "/var/lib/swapfile";
size = 16*1024;
} ];
zramSwap.enable = true;
networking.networkmanager.enable = true;
@ -75,7 +79,7 @@
zlib
# Packages from Flake Inputs
inputs.nix-software-center.packages.${system}.nix-software-center
#inputs.nix-software-center.packages.${system}.nix-software-center
];
programs.nix-ld.enable = true;
@ -83,10 +87,6 @@
# Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages
];
# Enable COSMIC
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
# Enable/Disable hardware
## Turn off PulseAudio

104
flake.nix Normal file
View file

@ -0,0 +1,104 @@
{
description = "Generic System Flake file";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
disko = {
url = github:nix-community/disko;
inputs.nixpkgs.follows = "nixpkgs";
};
nix-software-center.url = "github:snowfallorg/nix-software-center";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { self, nixpkgs, disko, home-manager, nixos-hardware, ... }@inputs: {
nixosConfigurations = {
"nixos" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Add Disko for disk management
disko.nixosModules.disko
./disko-config.nix
./configuration.nix
./hardware-configuration.nix
];
};
"shepard" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Add Disko for disk management
disko.nixosModules.disko
./disko-config.nix
./gnome.nix
./shepard.nix
./configuration.nix
./hardware-configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aaronh = import ./home.nix;
}
];
};
"garrus" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Add Disko for disk management
disko.nixosModules.disko
./disko-config.nix
./gnome.nix
./garrus.nix
./configuration.nix
./hardware-configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aaronh = import ./home.nix;
}
];
};
"jaal" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
# Add Disko for disk management
disko.nixosModules.disko
./disko-config.nix
./gnome.nix
./jaal.nix
./configuration.nix
./hardware-configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aaronh = import ./home.nix;
}
nixos-hardware.nixosModules.pine64-pinebook-pro
];
};
"vm" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Add Disko for disk management
disko.nixosModules.disko
./disko-config.nix
./vm.nix
./configuration.nix
./hardware-configuration.nix
];
};
};
};
}

View file

@ -9,6 +9,7 @@
environment.systemPackages = with pkgs; [
# Comms
slack
tuba
# Tools
copyq