blue: add skelet for blue host

This commit is contained in:
Asmir A 2023-09-07 10:57:18 +02:00
parent 55a2150b03
commit 2d8a742ed1
7 changed files with 45 additions and 81 deletions

View File

@ -6,7 +6,6 @@
{ {
imports = imports =
[ [
./hardware-configuration.nix
]; ];
@ -70,57 +69,6 @@
variables = { variables = {
PATH = "$HOME/.cargo/bin"; PATH = "$HOME/.cargo/bin";
}; };
systemPackages = with pkgs; [
acpi
binutils
bluez
bluez-tools
btop
direnv
fd
file
fzf
fzy
gnupg
gptfdisk
htop
interception-tools
jq
nano
neovim
nix-index
nmap
ntfs3g
ntfsprogs
openhantek6022
pax-utils
pciutils
pstree
psutils
ripgrep
rsync
silver-searcher
strace
tig
unrar
unzip
usbutils
vimpc
vulkan-extension-layer
vulkan-loader
vulkan-tools
vulkan-tools-lunarg
vulkan-validation-layers
wget
xdg-utils
zip
z-lua
swaylock
dmidecode
dnsmasq
dhcpcd
uutils-coreutils
];
}; };
programs = { programs = {
@ -197,7 +145,7 @@
windowManager.i3.enable = true; windowManager.i3.enable = true;
}; };
udev.packages = [ pkgs.openocd pkgs.rtl-sdr pkgs.openhantek6022 ]; udev.packages = [ pkgs.rtl-sdr pkgs.openhantek6022 ];
tlp = { tlp = {
enable = true; enable = true;

30
flake.lock generated
View File

@ -75,11 +75,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1691599243, "lastModified": 1693972774,
"narHash": "sha256-Lw3VRCFFbjQLxZu37rL/o2RBb95VG8iThEhEkqo3SV8=", "narHash": "sha256-Dt9UZs0/DaIex598quYRYFuGabUbvFdNrHuvGc6HjBc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a8f8f48320c64bd4e3a266a850bbfde2c6fe3a04", "rev": "b22d7bab30076bbb73744867d6c5bf7d6380570c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -123,11 +123,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1690066826, "lastModified": 1693675694,
"narHash": "sha256-6L2qb+Zc0BFkh72OS9uuX637gniOjzU6qCDBpjB2LGY=", "narHash": "sha256-2pIOyQwGyy2FtFAUIb8YeKVmOCcPOTVphbAvmshudLE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ce45b591975d070044ca24e3003c830d26fea1c8", "rev": "5601118d39ca9105f8e7b39d4c221d3388c0419d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -153,11 +153,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1691472822, "lastModified": 1693844670,
"narHash": "sha256-XVfYZ2oB3lNPVq6sHCY9WkdQ8lHoIDzzbpg8bB6oBxA=", "narHash": "sha256-t69F2nBB8DNQUWHD809oJZJVE+23XBrth4QZuVd6IE0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "41c7605718399dcfa53dd7083793b6ae3bc969ff", "rev": "3c15feef7770eb5500a4b8792623e2d6f598c9c1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -184,11 +184,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1690026219, "lastModified": 1693626178,
"narHash": "sha256-oOduRk/kzQxOBknZXTLSEYd7tk+GoKvr8wV6Ab+t4AU=", "narHash": "sha256-Rpiy6lIOu4zny8tfGuIeN1ji9eSz9nPmm9yBhh/4IOM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f465da166263bc0d4b39dfd4ca28b777c92d4b73", "rev": "bfb7dfec93f3b5d7274db109f2990bc889861caf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -234,11 +234,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1690199016, "lastModified": 1693898833,
"narHash": "sha256-yTLL72q6aqGmzHq+C3rDp3rIjno7EJZkFLof6Ika7cE=", "narHash": "sha256-OIrMAGNYNeLs6IvBynxcXub7aSW3GEUvWNsb7zx6zuU=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "c36df4fe4bf4bb87759b1891cab21e7a05219500", "rev": "faf21ac162173c2deb54e5fdeed002a9bd6e8623",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -53,6 +53,22 @@
} }
]; ];
}; };
blue = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{_module.args = inputs;}
./blue/configuration.nix
./blue/hardware-configuration.nix
./packages.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.akill = import ./home/home.nix;
}
];
};
}; };
devShell.x86_64-linux = pkgs.mkShell { devShell.x86_64-linux = pkgs.mkShell {

View File

@ -53,7 +53,7 @@ in {
slang = "eng,en"; slang = "eng,en";
alang = "eng,en"; alang = "eng,en";
hwdec = "auto"; hwdec = "auto";
vo = "dmabuf-wayland"; vo = "gpu-next";
ao = "pipewire"; ao = "pipewire";
script-opts-set = "ytdl_hook-ytdl_path=yt-dlp,sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]"; script-opts-set = "ytdl_hook-ytdl_path=yt-dlp,sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best"; ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
@ -127,7 +127,7 @@ in {
qutebrowser = { qutebrowser = {
enable = true; enable = true;
package = pkgs.qutebrowser-qt6; package = pkgs.qutebrowser;
keyBindings = { keyBindings = {
normal = { normal = {
"j" = "scroll-px 0 25"; "j" = "scroll-px 0 25";

View File

@ -32,7 +32,7 @@
imv imv
jellyfin-media-player jellyfin-media-player
kdenlive kdenlive
kicad /*kicad*/
kodi-wayland kodi-wayland
libnotify libnotify
libreoffice libreoffice

View File

@ -31,12 +31,7 @@
} }
{ {
block = "net"; block = "net";
device = "wlan0"; device = "eno1";
interval = 2;
}
{
block = "net";
device = "enp5s0";
interval = 2; interval = 2;
} }
{ {

View File

@ -33,16 +33,21 @@
modifier = "Mod4"; modifier = "Mod4";
output = { output = {
eDP-1 = { eDP-1 = {
bg = "~/pic/weird_dragon.jpg stretch";
/* /*
bg = "~/pic/weird_dragon.jpg stretch";
scale = "1.4"; scale = "1.4";
*/ */
}; };
HDMI-A-4 = {
res = "1920x1080";
}; };
};
input = { input = {
"1:1:AT_Translated_Set_2_keyboard" = {repeat_delay = "150";}; "type:keyboard" = { repeat_delay = "150"; };
"1:1:AT_Translated_Set_2_keyboard" = {repeat_rate = "70";}; "type:keyboard" = { repeat_rate = "70"; };
"2:7:SynPS/2_Synaptics_TouchPad" = {tap = "enabled";}; "*TouchPad" = { tap = "enabled"; };
}; };
bars = [ bars = [