mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-04-03 18:14:15 +00:00
~
This commit is contained in:
parent
a15a59af09
commit
7cdc89ddeb
7 changed files with 247 additions and 11 deletions
1
TODO
1
TODO
|
@ -40,6 +40,7 @@
|
||||||
[ ] Personally i think your desktop fucking sucks and you should just switch to kde plasma
|
[ ] Personally i think your desktop fucking sucks and you should just switch to kde plasma
|
||||||
+- [ ] Just see if you can write a yambar plugin that gives you a taskbar...........
|
+- [ ] Just see if you can write a yambar plugin that gives you a taskbar...........
|
||||||
[ ] Should you be using both libretro easyrpg and standalone easyrpg at the same time like you are now ????????
|
[ ] Should you be using both libretro easyrpg and standalone easyrpg at the same time like you are now ????????
|
||||||
|
[ ] FUN IDEA::: Do you see ? https://github.com/nix-community/raspberry-pi-nix/blob/master/rpi/default.nix ??? see if it might be worth trying to make an options set across your config for very non granular at a glance configurations ... (see also https://github.com/nanzhong/env/blob/master/machines/devpi/configuration.nix)
|
||||||
|
|
||||||
[x] Get PulseAudio sound controls on polybar to work
|
[x] Get PulseAudio sound controls on polybar to work
|
||||||
[x] Add desktop switching to windows (context menu?)
|
[x] Add desktop switching to windows (context menu?)
|
||||||
|
|
199
nixos/flake.lock
generated
199
nixos/flake.lock
generated
|
@ -63,6 +63,40 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"libcamera-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1725630279,
|
||||||
|
"narHash": "sha256-KH30jmHfxXq4j2CL7kv18DYECJRp9ECuWNPnqPZajPA=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "libcamera",
|
||||||
|
"rev": "69a894c4adad524d3063dd027f5c4774485cf9db",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "libcamera",
|
||||||
|
"rev": "69a894c4adad524d3063dd027f5c4774485cf9db",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libpisp-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1724944683,
|
||||||
|
"narHash": "sha256-Fo2UJmQHS855YSSKKmGrsQnJzXog1cdpkIOO72yYAM4=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "libpisp",
|
||||||
|
"rev": "28196ed6edcfeda88d23cc5f213d51aa6fa17bb3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "v1.0.7",
|
||||||
|
"repo": "libpisp",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-flatpak": {
|
"nix-flatpak": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734128415,
|
"lastModified": 1734128415,
|
||||||
|
@ -111,6 +145,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736061677,
|
||||||
|
"narHash": "sha256-DjkQPnkAfd7eB522PwnkGhOMuT9QVCZspDpJJYyOj60=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "cbd8ec4de4469333c82ff40d057350c30e9f7d36",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
@ -133,6 +183,33 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"raspberry-pi-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"libcamera-src": "libcamera-src",
|
||||||
|
"libpisp-src": "libpisp-src",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"rpi-bluez-firmware-src": "rpi-bluez-firmware-src",
|
||||||
|
"rpi-firmware-nonfree-src": "rpi-firmware-nonfree-src",
|
||||||
|
"rpi-firmware-src": "rpi-firmware-src",
|
||||||
|
"rpi-linux-6_12_17-src": "rpi-linux-6_12_17-src",
|
||||||
|
"rpi-linux-6_6_78-src": "rpi-linux-6_6_78-src",
|
||||||
|
"rpi-linux-stable-src": "rpi-linux-stable-src",
|
||||||
|
"rpicam-apps-src": "rpicam-apps-src"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1740928520,
|
||||||
|
"narHash": "sha256-NL5qZi0iEEvQK9kMF6r48FOk5WMdQExCqodRH3kEr0g=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "raspberry-pi-nix",
|
||||||
|
"rev": "3bfda6add79c55f9bf143fac928f54484d450e87",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "raspberry-pi-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fenix": "fenix",
|
"fenix": "fenix",
|
||||||
|
@ -140,7 +217,127 @@
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nur": "nur"
|
"nur": "nur",
|
||||||
|
"raspberry-pi-nix": "raspberry-pi-nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-bluez-firmware-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708969706,
|
||||||
|
"narHash": "sha256-KakKnOBeWxh0exu44beZ7cbr5ni4RA9vkWYb9sGMb8Q=",
|
||||||
|
"owner": "RPi-Distro",
|
||||||
|
"repo": "bluez-firmware",
|
||||||
|
"rev": "78d6a07730e2d20c035899521ab67726dc028e1c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "RPi-Distro",
|
||||||
|
"ref": "bookworm",
|
||||||
|
"repo": "bluez-firmware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-firmware-nonfree-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723266537,
|
||||||
|
"narHash": "sha256-T7eTKXqY9cxEMdab8Snda4CEOrEihy5uOhA6Fy+Mhnw=",
|
||||||
|
"owner": "RPi-Distro",
|
||||||
|
"repo": "firmware-nonfree",
|
||||||
|
"rev": "4b356e134e8333d073bd3802d767a825adec3807",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "RPi-Distro",
|
||||||
|
"ref": "bookworm",
|
||||||
|
"repo": "firmware-nonfree",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-firmware-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728405098,
|
||||||
|
"narHash": "sha256-4gnK0KbqFnjBmWia9Jt2gveVWftmHrprpwBqYVqE/k0=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "firmware",
|
||||||
|
"rev": "7bbb5f80d20a2335066a8781459c9f33e5eebc64",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "1.20241008",
|
||||||
|
"repo": "firmware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-linux-6_12_17-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1740765145,
|
||||||
|
"narHash": "sha256-hoCsGc4+RC/2LmxDtswLBL5ZhWlw4vSiL4Vkl39r2MU=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "linux",
|
||||||
|
"rev": "5985ce32e511f4e8279a841a1b06a8c7d972b386",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "rpi-6.12.y",
|
||||||
|
"repo": "linux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-linux-6_6_78-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1740503700,
|
||||||
|
"narHash": "sha256-Y8+ot4Yi3UKwlZK3ap15rZZ16VZDvmeFkD46+6Ku7bE=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "linux",
|
||||||
|
"rev": "2e071057fded90e789c0101498e45a1778be93fe",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "rpi-6.6.y",
|
||||||
|
"repo": "linux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpi-linux-stable-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728403745,
|
||||||
|
"narHash": "sha256-phCxkuO+jUGZkfzSrBq6yErQeO2Td+inIGHxctXbD5U=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "linux",
|
||||||
|
"rev": "5aeecea9f4a45248bcf564dec924965e066a7bfd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "stable_20241008",
|
||||||
|
"repo": "linux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rpicam-apps-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1727515047,
|
||||||
|
"narHash": "sha256-qCYGrcibOeGztxf+sd44lD6VAOGoUNwRqZDdAmcTa/U=",
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"repo": "rpicam-apps",
|
||||||
|
"rev": "a8ccf9f3cd9df49875dfb834a2b490d41d226031",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "raspberrypi",
|
||||||
|
"ref": "v1.5.2",
|
||||||
|
"repo": "rpicam-apps",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
|
|
@ -19,25 +19,25 @@
|
||||||
url = "github:nix-community/fenix";
|
url = "github:nix-community/fenix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
# Raspberry Pi support
|
||||||
|
raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }@inputs: {
|
outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }@inputs: {
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
let
|
let
|
||||||
system = hostname: {
|
mkSystem = hostname: arch: with nixpkgs; {
|
||||||
name = hostname;
|
name = hostname;
|
||||||
value = nixpkgs.lib.nixosSystem {
|
value = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "${arch}-linux";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [ ./hosts/${hostname}/configuration.nix ];
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
|
||||||
./hosts/${hostname}/configuration.nix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in builtins.listToAttrs [
|
in builtins.listToAttrs [
|
||||||
(system "ioides")
|
(mkSystem "ioides" "x86_64") # main pc
|
||||||
(system "qemu")
|
(mkSystem "qemu" "x86_64") # emulatr...........
|
||||||
|
(mkSystem "near" "aarch_64") # raspberry pi 5 home server
|
||||||
];
|
];
|
||||||
|
|
||||||
homeConfigurations.rae = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.rae = home-manager.lib.homeManagerConfiguration {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||||
../packages.nix
|
../packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -14,7 +15,10 @@
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
trusted-users = [ "root" "rae" ];
|
||||||
|
};
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = import ../overlays.nix inputs;
|
overlays = import ../overlays.nix inputs;
|
||||||
|
|
13
nixos/hosts/near/configuration.nix
Normal file
13
nixos/hosts/near/configuration.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
|
||||||
|
inputs.raspberry-pi-nix.nixosModules.sd-image
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "near";
|
||||||
|
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
}
|
20
nixos/hosts/near/hardware-configuration.nix
Normal file
20
nixos/hosts/near/hardware-configuration.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ ... }: {
|
||||||
|
raspberry-pi-nix.board = "bcm2712"; # RPI5 64bit
|
||||||
|
hardware.raspberry-pi.config.all = let
|
||||||
|
o = k: v: {
|
||||||
|
name = k;
|
||||||
|
value = {
|
||||||
|
enable = true;
|
||||||
|
value = v;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
base-dt-params = builtins.listToAttrs [
|
||||||
|
(o "BOOT_UART" 1)
|
||||||
|
(o "uart_2ndstage" 1)
|
||||||
|
];
|
||||||
|
dt-overlays = builtins.listToAttrs [
|
||||||
|
(o "disable-bt" {})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -63,6 +63,7 @@
|
||||||
posy-cursors # Posy's Improved Cursors for Linux
|
posy-cursors # Posy's Improved Cursors for Linux
|
||||||
pantheon.elementary-gtk-theme # GTK theme designed to be smooth, attractive, fast, and usable
|
pantheon.elementary-gtk-theme # GTK theme designed to be smooth, attractive, fast, and usable
|
||||||
# network
|
# network
|
||||||
|
cachix # Command-line client for Nix binary cache hosting
|
||||||
ngrok # Allows you to expose a web server running on your local machine to the internet
|
ngrok # Allows you to expose a web server running on your local machine to the internet
|
||||||
nicotine-plus # Graphical client for the SoulSeek peer-to-peer system
|
nicotine-plus # Graphical client for the SoulSeek peer-to-peer system
|
||||||
playit-agent # The playit program
|
playit-agent # The playit program
|
||||||
|
|
Loading…
Add table
Reference in a new issue