Compare commits
1 Commits
main
...
soundblast
Author | SHA1 | Date | |
---|---|---|---|
20a921bd4e |
105
flake.lock
generated
105
flake.lock
generated
@ -9,11 +9,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1718588737,
|
"lastModified": 1725418254,
|
||||||
"narHash": "sha256-06acqoMEYtc+/w5gWiIIuUFfdtdOBKlp1qrC/InRiBY=",
|
"narHash": "sha256-2zPzPP9Eu5NxgJxTVcuCCX5xh7CWy7rYaLHfaAZS6H8=",
|
||||||
"owner": "tpwrules",
|
"owner": "tpwrules",
|
||||||
"repo": "nixos-apple-silicon",
|
"repo": "nixos-apple-silicon",
|
||||||
"rev": "b0a2376f6c164a0af963d47386c064cc6fdcd5ea",
|
"rev": "c5f944f49a052232015bb3c03524b69e3fdd2aa4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -34,23 +34,6 @@
|
|||||||
"url": "https://marq42.xyz/displaylink-580.zip"
|
"url": "https://marq42.xyz/displaylink-580.zip"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emacs-config": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1718499201,
|
|
||||||
"narHash": "sha256-XvN+25zS9JKIKPgvV/wEIPH+Kf4cx9PU2W75xs8guPw=",
|
|
||||||
"ref": "main",
|
|
||||||
"rev": "818621bbb9945053e4ffcb03ddba90defd9922dc",
|
|
||||||
"revCount": 535,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.marq42.xyz/mir/emacs"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"ref": "main",
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.marq42.xyz/mir/emacs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688025799,
|
"lastModified": 1688025799,
|
||||||
@ -66,22 +49,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@ -100,24 +67,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_2": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flakey-profile": {
|
"flakey-profile": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712898590,
|
"lastModified": 1712898590,
|
||||||
@ -140,11 +89,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719827385,
|
"lastModified": 1726989464,
|
||||||
"narHash": "sha256-qs+nU20Sm8czHg3bhGCqiH+8e13BJyRrKONW34g3i50=",
|
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "391ca6e950c2525b4f853cbe29922452c14eda82",
|
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -161,11 +110,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719827439,
|
"lastModified": 1730633670,
|
||||||
"narHash": "sha256-tneHOIv1lEavZ0vQ+rgz67LPNCgOZVByYki3OkSshFU=",
|
"narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "59ce796b2563e19821361abbe2067c3bb4143a7d",
|
"rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -228,18 +177,16 @@
|
|||||||
},
|
},
|
||||||
"nix-ld": {
|
"nix-ld": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-utils": "flake-utils_2",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721411691,
|
"lastModified": 1728031945,
|
||||||
"narHash": "sha256-fN0NjkYcQrdVSvWlSnvdu8XD34q8tl84SEz5BOJYROA=",
|
"narHash": "sha256-NRkLjdMtVfC6dD1gEbYZWFEtbmC2xfD6ft1IP7l76Vw=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "nix-ld",
|
"repo": "nix-ld",
|
||||||
"rev": "7a990656e51465a18ba70f49c2cf9c8d0947b4c9",
|
"rev": "4524c512e8729ccb5a1b9239d01e1474cbf074a2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -266,11 +213,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719690277,
|
"lastModified": 1730531603,
|
||||||
"narHash": "sha256-0xSej1g7eP2kaUF+JQp8jdyNmpmCJKRpO12mKl/36Kc=",
|
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2741b4b489b55df32afac57bc4bfd220e8bf617e",
|
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -282,11 +229,11 @@
|
|||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719892551,
|
"lastModified": 1730747049,
|
||||||
"narHash": "sha256-E4q0X+z1zNgAJvQEcdbQ+xuQE2pr3QwCMGZE/aq3RDU=",
|
"narHash": "sha256-K42BMyiu9dh4kajhqk8Rw2PsU57T+QA4myKtM/Kd96g=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "46158ae602a77357f80f659277990e0ce3e6149f",
|
"rev": "9047a1ea2401169b09e5b8914ab267f93f6df4a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -299,7 +246,6 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"apple-silicon": "apple-silicon",
|
"apple-silicon": "apple-silicon",
|
||||||
"displaylink": "displaylink",
|
"displaylink": "displaylink",
|
||||||
"emacs-config": "emacs-config",
|
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
"lix": "lix",
|
"lix": "lix",
|
||||||
@ -340,21 +286,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
23
flake.nix
23
flake.nix
@ -43,7 +43,30 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
nur,
|
nur,
|
||||||
... }: {
|
... }: {
|
||||||
|
homeManagerConfigurations.soundblaster =
|
||||||
|
# import ./home.nix {
|
||||||
|
# inherit nixpkgs lix-module nix-ld home-manager nur;
|
||||||
|
# }
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
# configuration = { pkgs, lib, ... }: {
|
||||||
|
# imports = [ ./home.nix ];
|
||||||
|
# nixpkgs = {
|
||||||
|
# config = { allowUnfree = true; };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
modules = [
|
||||||
|
./home.nix {
|
||||||
|
home = {
|
||||||
|
username = "mir";
|
||||||
|
homeDirectory = "/home/mir";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
kremzeek = # {{{
|
kremzeek = # {{{
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
40
home.nix
40
home.nix
@ -3,8 +3,8 @@
|
|||||||
with lib.hm.gvariant;
|
with lib.hm.gvariant;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./modules/dconf.nix
|
# ./modules/dconf.nix
|
||||||
./modules/shell.nix
|
# ./modules/shell.nix
|
||||||
./modules/firefox.nix
|
./modules/firefox.nix
|
||||||
# ./modules/sway.nix
|
# ./modules/sway.nix
|
||||||
./modules/emacs.nix
|
./modules/emacs.nix
|
||||||
@ -108,4 +108,40 @@ with lib.hm.gvariant;
|
|||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# programs.bash.enable = true;
|
||||||
|
# programs.bash.profileExtra = lib.mkAfter ''
|
||||||
|
# rm -rf ${config.home.homeDirectory}/.local/share/applications/home-manager
|
||||||
|
# rm -rf ${config.home.homeDirectory}/.icons/nix-icons
|
||||||
|
# ls ${config.home.homeDirectory}/.nix-profile/share/applications/*.desktop > ${config.home.homeDirectory}/.cache/current_desktop_files.txt
|
||||||
|
# '';
|
||||||
|
# home.activation = {
|
||||||
|
# linkDesktopApplications = {
|
||||||
|
# after = ["writeBoundary" "createXdgUserDirectories"];
|
||||||
|
# before = [];
|
||||||
|
# data = ''
|
||||||
|
# rm -rf ${config.home.homeDirectory}/.local/share/applications/home-manager
|
||||||
|
# rm -rf ${config.home.homeDirectory}/.icons/nix-icons
|
||||||
|
# mkdir -p ${config.home.homeDirectory}/.local/share/applications/home-manager
|
||||||
|
# mkdir -p ${config.home.homeDirectory}/.icons
|
||||||
|
# ln -sf ${config.home.homeDirectory}/.nix-profile/share/icons ${config.home.homeDirectory}/.icons/nix-icons
|
||||||
|
#
|
||||||
|
# # Check if the cached desktop files list exists
|
||||||
|
# if [ -f ${config.home.homeDirectory}/.cache/current_desktop_files.txt ]; then
|
||||||
|
# current_files=$(cat ${config.home.homeDirectory}/.cache/current_desktop_files.txt)
|
||||||
|
# else
|
||||||
|
# current_files=""
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# # Symlink new desktop entries
|
||||||
|
# for desktop_file in ${config.home.homeDirectory}/.nix-profile/share/applications/*.desktop; do
|
||||||
|
# if ! echo "$current_files" | grep -q "$(basename $desktop_file)"; then
|
||||||
|
# ln -sf "$desktop_file" ${config.home.homeDirectory}/.local/share/applications/home-manager/$(basename $desktop_file)
|
||||||
|
# fi
|
||||||
|
# done
|
||||||
|
#
|
||||||
|
# # Update desktop database
|
||||||
|
# ${pkgs.desktop-file-utils}/bin/update-desktop-database ${config.home.homeDirectory}/.local/share/applications
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
13
mix.sh
13
mix.sh
@ -13,6 +13,19 @@ rebuild () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
home)
|
||||||
|
# nix --extra-experimental-features nix-command\ flakes \
|
||||||
|
# run "github:NixOS/nix/2.18.4" -- \
|
||||||
|
# --extra-experimental-features nix-command\ flakes \
|
||||||
|
# build ./\#homeManagerConfigurations.soundblaster.activationPackage &&
|
||||||
|
# ./result/activate
|
||||||
|
nix --extra-experimental-features nix-command\ flakes \
|
||||||
|
run "github:NixOS/nix/2.18.4" -- \
|
||||||
|
--extra-experimental-features nix-command\ flakes \
|
||||||
|
run "github:nix-community/home-manager/release-24.11" -- \
|
||||||
|
--extra-experimental-features nix-command\ flakes\
|
||||||
|
switch --flake ./\#soundblaster
|
||||||
|
;;
|
||||||
fetch)
|
fetch)
|
||||||
fetch_dl_driver
|
fetch_dl_driver
|
||||||
;;
|
;;
|
||||||
|
@ -1,37 +1,43 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# programs.bash = {
|
programs.bash = {
|
||||||
# enable = true;
|
|
||||||
# shellAliases = {
|
|
||||||
# ls = "eza";
|
|
||||||
# tree = "eza -T";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza";
|
ls = "eza";
|
||||||
tree = "eza -T";
|
tree = "eza -T";
|
||||||
ping = "ping -c 4";
|
|
||||||
ip = "ip -c";
|
|
||||||
};
|
};
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
|
export HISTFILE=$XDG_CACHE_HOME/.bash_history
|
||||||
source "$EAT_SHELL_INTEGRATION_DIR/zsh"
|
GUIX_PROFILE=/home/mir/.guix-profile
|
||||||
source ~/.p10k.zsh
|
. $GUIX_PROFILE/etc/profile
|
||||||
|
|
||||||
'';
|
'';
|
||||||
enableCompletion = true;
|
|
||||||
# autosuggestions.enable = true;
|
|
||||||
zplug = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; }
|
|
||||||
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
|
|
||||||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
|
||||||
{ name = "zsh-users/zsh-completions"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
# programs.zsh = {
|
||||||
|
# enable = true;
|
||||||
|
# shellAliases = {
|
||||||
|
# ls = "eza";
|
||||||
|
# tree = "eza -T";
|
||||||
|
# ping = "ping -c 4";
|
||||||
|
# ip = "ip -c";
|
||||||
|
# };
|
||||||
|
# initExtraFirst = ''
|
||||||
|
# [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
|
||||||
|
# source "$EAT_SHELL_INTEGRATION_DIR/zsh"
|
||||||
|
# source ~/.p10k.zsh
|
||||||
|
# '';
|
||||||
|
# enableCompletion = true;
|
||||||
|
# # autosuggestions.enable = true;
|
||||||
|
# zplug = {
|
||||||
|
# enable = true;
|
||||||
|
# plugins = [
|
||||||
|
# { name = "zsh-users/zsh-autosuggestions"; }
|
||||||
|
# { name = "zdharma-continuum/fast-syntax-highlighting"; }
|
||||||
|
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||||||
|
# { name = "zsh-users/zsh-completions"; }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = [ "--cmd cd" ];
|
options = [ "--cmd cd" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user