mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2024-12-22 18:57:29 +01:00
added aragon
This commit is contained in:
parent
4a3718a806
commit
7643267a1a
17
flake.nix
17
flake.nix
@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
# aragon = nixpkgs.lib.nixosSystem {
|
||||
# system = "x86_64-linux";
|
||||
# system = "x83_64-linux";
|
||||
# specialArgs = {
|
||||
# inherit inputs;
|
||||
# };
|
||||
@ -53,8 +53,21 @@
|
||||
# };
|
||||
|
||||
|
||||
|
||||
aragon = nixpkgs.lib.nixosSystem {
|
||||
system = "x84_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||
./machines/aragon/configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
|
||||
galadriel = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
|
@ -1,8 +1,7 @@
|
||||
{pkgs, lib, ...}:
|
||||
let
|
||||
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
|
||||
in
|
||||
{
|
||||
|
||||
unstable.config.allowUnfree = true;
|
||||
home-manager.users.gunalx = {
|
||||
#vscode with home manager
|
||||
programs.vscode = {
|
||||
|
@ -1,7 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
|
||||
in
|
||||
{ config, pkgs, home-manager, ... }:
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
|
@ -15,6 +15,12 @@
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.steam-run
|
||||
pkgs.unstable.alvr
|
||||
pkgs.openvr
|
||||
pkgs.openhmd
|
||||
pkgs.sidequest
|
||||
pkgs.mplayer
|
||||
pkgs.appimage-run
|
||||
];
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
{pkgs, lib, ...}:
|
||||
let
|
||||
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
|
||||
in
|
||||
{
|
||||
home-manager.users.gunalx = {
|
||||
#vscode with home manager
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
enableUpdateCheck = false;
|
||||
package = unstable.vscode-fhs;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
@ -3,18 +3,23 @@
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
||||
|
||||
#profiles
|
||||
../../profiles/base.nix
|
||||
|
||||
|
||||
|
||||
#home manager
|
||||
./home.nix
|
||||
#../../home/home.nix
|
||||
|
||||
#customised applications
|
||||
./steam.nix
|
||||
./podman.nix
|
||||
../../home/steam.nix
|
||||
../../services/podman.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
@ -69,7 +74,7 @@
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
@ -97,11 +102,12 @@ fonts.fonts = with pkgs; [
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
@ -113,15 +119,15 @@ fonts.fonts = with pkgs; [
|
||||
description = "Adrian Gunnar Lauterer";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
kate
|
||||
|
||||
firefox
|
||||
kate
|
||||
unstable.ollama
|
||||
python310
|
||||
python310Packages.scipy
|
||||
python310Packages.sympy
|
||||
python310Packages.numpy
|
||||
python310Packages.matplotlib
|
||||
python310Packages.torch
|
||||
python310Packages.torchWithRocm
|
||||
python310Packages.torchvision
|
||||
gcc
|
||||
gpp
|
||||
@ -129,11 +135,24 @@ fonts.fonts = with pkgs; [
|
||||
rustup
|
||||
rustc
|
||||
cargo
|
||||
etcher
|
||||
rpi-imager
|
||||
minecraft
|
||||
prismlauncher
|
||||
hmcl
|
||||
|
||||
appimage-run
|
||||
#unstable.alvr
|
||||
|
||||
easyeffects
|
||||
|
||||
|
||||
];
|
||||
};
|
||||
#allow electron 19 becasue of etcher
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-19.1.9"
|
||||
];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@ -155,15 +174,19 @@ fonts.fonts = with pkgs; [
|
||||
python310Packages.sympy
|
||||
python310Packages.numpy
|
||||
python310Packages.matplotlib
|
||||
python310Packages.torch
|
||||
#python310Packages.torch
|
||||
python310Packages.torchvision
|
||||
python310Packages.torchWithRocm
|
||||
gcc
|
||||
gpp
|
||||
cmake
|
||||
gdb
|
||||
cmake
|
||||
rustup
|
||||
rustc
|
||||
cargo
|
||||
cura
|
||||
prusa-slicer
|
||||
openscad
|
||||
htop
|
||||
killall
|
||||
docker-compose
|
||||
@ -195,10 +218,12 @@ fonts.fonts = with pkgs; [
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
|
||||
'';
|
||||
# systemd.targets.sleep.enable = false;
|
||||
# systemd.targets.suspend.enable = false;
|
||||
# systemd.targets.hibernate.enable = false;
|
||||
# systemd.targets.hybrid-sleep.enable = false;
|
||||
|
||||
#comment out to enable sleep. Uncommented over vacations
|
||||
# systemd.targets.sleep.enable = false;
|
||||
# systemd.targets.suspend.enable = false;
|
||||
# systemd.targets.hibernate.enable = false;
|
||||
# systemd.targets.hybrid-sleep.enable = false;
|
||||
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
@ -218,7 +243,7 @@ fonts.fonts = with pkgs; [
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
@ -9,11 +9,29 @@
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
#boot.initrd.kernelModules = ["amdgou" ];
|
||||
boot.initrd.kernelModules = ["amdgpu" ];
|
||||
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
#amdvlk
|
||||
libva-utils
|
||||
];
|
||||
|
||||
#hardware.opengl.extraPackages32 = with pkgs; [
|
||||
# driversi686Linux.amdvlk
|
||||
#];
|
||||
|
||||
hardware.opengl.driSupport = true; # This is already enabled by default
|
||||
hardware.opengl.driSupport32Bit = true; # For 32 bit applications
|
||||
|
||||
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/8ab16ad5-08d2-44f9-a9e4-2e6240bfd8f8";
|
||||
|
@ -1,18 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
./code.nix
|
||||
];
|
||||
|
||||
home-manager.users.gunalx = {
|
||||
/* The home.stateVersion option does not have a default and must be set */
|
||||
home.stateVersion = "23.05";
|
||||
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
|
||||
|
||||
|
||||
};
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
dockerSocket.enable = true ;
|
||||
autoPrune.flags = ["--all"];
|
||||
autoPrune.enable = true;
|
||||
|
||||
|
||||
};
|
||||
}
|
@ -3,10 +3,14 @@
|
||||
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
||||
# since NixOS 21.05.
|
||||
virtualisation.docker.enable = false;
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.podman.dockerSocket.enable = true;
|
||||
virtualisation.podman.defaultNetwork.settings = { dns_enabled = true; };
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
dockerSocket.enable = true ;
|
||||
autoPrune.flags = ["--all"];
|
||||
autoPrune.enable = true;
|
||||
defaultNetwork.settings = { dns_enabled = true; };
|
||||
};
|
||||
|
||||
# Use your username instead of `myuser`
|
||||
users.extraUsers.gunalx.extraGroups = ["podman"];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user