This commit is contained in:
Daniella / Tove 2024-09-30 17:57:23 +02:00
parent 2d2d6010a8
commit db88269036
2 changed files with 57 additions and 10 deletions

View file

@ -4,6 +4,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
upkgs = import <nixpkgs> {};
in
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
@ -13,7 +16,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with upkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
helix helix
wget wget
@ -27,6 +30,7 @@
fira-code fira-code
htop htop
rustup rustup
pkg-config
clang clang
nodejs nodejs
git git
@ -39,16 +43,27 @@
zulu8 zulu8
ffmpeg ffmpeg
imagemagick imagemagick
zbar
usbutils
revpfw3
arch-install-scripts
proot
inetutils
openjdk17
(import ./sl.script.nix) (import ./sl.script.nix)
(import ./startsync.script.nix) (import ./startsync.script.nix)
(import ./bright.script.nix) (import ./bright.script.nix)
(import ./nix-cmd.script.nix) (import ./nix-cmd.script.nix)
(import ./sshpc.script.nix) (import ./sshpc.script.nix)
(import ./pushfile.script.nix)
(import ./dropfile.script.nix)
]; ];
programs.fish.enable = true; programs.fish.enable = true;
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# boot.loader.grub.efiSupport = true; # boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true; # boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi"; # boot.loader.efi.efiSysMountPoint = "/boot/efi";
@ -119,6 +134,7 @@
# Enable sound. # Enable sound.
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# OR # OR
services.pipewire.enable = false;
# services.pipewire = { # services.pipewire = {
# enable = true; # enable = true;
# pulse.enable = true; # pulse.enable = true;

View file

@ -1,15 +1,16 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }:
let let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
upkgs = import <nixpkgs> {};
in in
{ {
imports = [ imports = [
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
]; ];
users.users.tudbut.packages = with pkgs; [ users.users.tudbut.packages = with upkgs; [
nheko
firefox firefox
thunderbird thunderbird
tree tree
@ -18,17 +19,24 @@ in
arc-theme arc-theme
signal-desktop signal-desktop
gimp gimp
graphviz
mkchromecast
yt-dlp yt-dlp
mpv
graphviz
giac-with-xcas giac-with-xcas
sqlite-interactive sqlite-interactive
mpv
acpi acpi
nix-init nix-init
(import /home/tudbut/gitshit/spl {}) hydra-check
(import /home/tudbut/gitshit/revpfw3 {}) mate.eom
]; jdt-language-server
bluej
pcmanfm
filezilla
] ++ (with pkgs; [
nheko
olm
mkchromecast
]);
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"olm-3.2.16" "olm-3.2.16"
@ -44,8 +52,27 @@ in
programs.fish.enable = true; programs.fish.enable = true;
programs.fish.shellInit = '' programs.fish.shellInit = ''
export PATH="$PATH:$HOME/.cargo/bin" export PATH="$PATH:$HOME/.cargo/bin"
export SPL_PATH="$HOME/gitshit/spl" export SPL_PATH="$HOME/gitshit/spl/spl"
export ISBPL_PATH="$HOME/gitshit/isbpl" export ISBPL_PATH="$HOME/gitshit/isbpl"
function mmgui
sudo modem-manager-gui & disown
exit
end
function jjci
jjc "$(head -n1)"
end
function jjc
echo "public class _main { public static void p(Object o) { System.out.println(o); } public static void main(String[] args) { $argv ; } }" > src/_main.java
jjj _main
rm src/_main.java
end
function jjj
mkdir src build lib res 2> /dev/null
pushd src
javac -cp "../lib" -d ../build $(find -type f)
popd
java -cp "build/:lib/:res/" $argv
end
''; '';
programs.alacritty.enable = true; programs.alacritty.enable = true;
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
@ -83,6 +110,10 @@ in
}; };
}; };
programs.i3status.enable = true; programs.i3status.enable = true;
programs.i3status.modules."cpu_temperature 0" = {
enable = true;
position = 6;
};
programs.i3status.modules."battery all".settings.format = "%status %percentage %remaining %emptytime %consumption"; programs.i3status.modules."battery all".settings.format = "%status %percentage %remaining %emptytime %consumption";
programs.i3status.modules."battery all".settings.last_full_capacity = true; programs.i3status.modules."battery all".settings.last_full_capacity = true;
services.dunst.enable = true; services.dunst.enable = true;