Compare commits
4 Commits
ddb1d3c8d2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 90c612bb57 | |||
| f08555296c | |||
| 44404e02a0 | |||
| 65e5fd2d99 |
@@ -4,9 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
];
|
];
|
||||||
@@ -50,6 +48,9 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set <nixpkgs> correctly
|
||||||
|
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
|
|
||||||
## Optimise Nix store on rebuild and collect garbage as a service
|
## Optimise Nix store on rebuild and collect garbage as a service
|
||||||
nix.optimise.automatic = true;
|
nix.optimise.automatic = true;
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
@@ -154,109 +155,106 @@
|
|||||||
"docker"
|
"docker"
|
||||||
"wheel"
|
"wheel"
|
||||||
];
|
];
|
||||||
packages =
|
packages = with pkgs; let
|
||||||
with pkgs;
|
input = {
|
||||||
let
|
package,
|
||||||
input =
|
output ? "default",
|
||||||
{
|
}:
|
||||||
package,
|
inputs.${package}.packages.${pkgs.stdenv.hostPlatform.system}.${output};
|
||||||
output ? "default",
|
wrap = {
|
||||||
}:
|
name,
|
||||||
inputs.${package}.packages.${pkgs.stdenv.hostPlatform.system}.${output};
|
pkg,
|
||||||
wrap =
|
modules,
|
||||||
{
|
}:
|
||||||
name,
|
pkgs.symlinkJoin {
|
||||||
pkg,
|
inherit name;
|
||||||
modules,
|
paths = [pkg];
|
||||||
}:
|
nativeBuildInputs = [pkgs.makeWrapper];
|
||||||
pkgs.symlinkJoin {
|
postBuild = ''
|
||||||
inherit name;
|
wrapProgram $out/bin/${name} \
|
||||||
paths = [ pkg ];
|
--prefix PATH : ${pkgs.lib.makeBinPath modules}
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
'';
|
||||||
postBuild = ''
|
};
|
||||||
wrapProgram $out/bin/${name} \
|
in [
|
||||||
--prefix PATH : ${pkgs.lib.makeBinPath modules}
|
# Ricing
|
||||||
'';
|
## Desktop
|
||||||
};
|
bibata-cursors
|
||||||
in
|
catppuccin-gtk
|
||||||
[
|
unstable.waybar
|
||||||
# Ricing
|
hyprlock
|
||||||
## Desktop
|
dunst
|
||||||
bibata-cursors
|
wlogout
|
||||||
catppuccin-gtk
|
wpaperd
|
||||||
unstable.waybar
|
quickshell
|
||||||
hyprlock
|
|
||||||
dunst
|
|
||||||
wlogout
|
|
||||||
wpaperd
|
|
||||||
quickshell
|
|
||||||
|
|
||||||
## Desktop Utilities
|
## Desktop Utilities
|
||||||
grimblast
|
grimblast
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
(wrap {
|
(wrap {
|
||||||
name = "otter-launcher";
|
name = "otter-launcher";
|
||||||
pkg = (
|
pkg = (
|
||||||
input {
|
input {
|
||||||
package = "otter-launcher";
|
package = "otter-launcher";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
modules = [
|
modules = [
|
||||||
chafa
|
chafa
|
||||||
jq
|
jq
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
(input { package = "fsel"; })
|
(input {package = "fsel";})
|
||||||
|
|
||||||
# Terminal
|
# Terminal
|
||||||
## Styling / Functionality
|
## Styling / Functionality
|
||||||
oh-my-posh
|
oh-my-posh
|
||||||
carapace
|
carapace
|
||||||
zsh-autocomplete
|
zsh-autocomplete
|
||||||
bat
|
bat
|
||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
lazygit
|
lazygit
|
||||||
p7zip-rar
|
git-secret
|
||||||
any-nix-shell
|
p7zip-rar
|
||||||
bluetui
|
any-nix-shell
|
||||||
fzf
|
bluetui
|
||||||
ripgrep
|
fzf
|
||||||
wget
|
ripgrep
|
||||||
htop
|
wget
|
||||||
playerctl
|
htop
|
||||||
git
|
playerctl
|
||||||
lsd
|
git
|
||||||
(input {
|
lsd
|
||||||
package = "doot";
|
(input {
|
||||||
})
|
package = "doot";
|
||||||
|
})
|
||||||
|
|
||||||
## Other CLI Apps
|
## Other CLI Apps
|
||||||
nodejs
|
nodejs
|
||||||
fastfetch
|
fastfetch
|
||||||
opencode
|
opencode
|
||||||
tailscale
|
tailscale
|
||||||
syncthing
|
syncthing
|
||||||
jellyfin-tui
|
jellyfin-tui
|
||||||
devenv
|
devenv
|
||||||
|
nix-output-monitor
|
||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
## Actual Useful Stuff
|
## Actual Useful Stuff
|
||||||
nemo
|
nemo
|
||||||
kitty
|
kitty
|
||||||
firefox
|
firefox
|
||||||
gotify-desktop
|
gotify-desktop
|
||||||
pavucontrol
|
pavucontrol
|
||||||
mpv
|
mpv
|
||||||
input-remapper
|
input-remapper
|
||||||
|
|
||||||
## Other Nonsense
|
## Other Nonsense
|
||||||
tor-browser
|
tor-browser
|
||||||
techmino
|
techmino
|
||||||
prismlauncher
|
prismlauncher
|
||||||
delfin
|
delfin
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
## Zsh
|
## Zsh
|
||||||
@@ -282,7 +280,7 @@
|
|||||||
programs = {
|
programs = {
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
xfconf.enable = true;
|
xfconf.enable = true;
|
||||||
gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; # For wlogout svgs
|
gdk-pixbuf.modulePackages = [pkgs.librsvg]; # For wlogout svgs
|
||||||
};
|
};
|
||||||
|
|
||||||
## User Services
|
## User Services
|
||||||
@@ -300,11 +298,10 @@
|
|||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerd-fonts.fira-mono
|
nerd-fonts.fira-mono
|
||||||
];
|
];
|
||||||
fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ];
|
fonts.fontconfig.defaultFonts.serif = ["Fira Mono Nerd Font"];
|
||||||
|
|
||||||
# System Packages
|
# System Packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
inputs.nvim-wrapped.packages.${stdenv.hostPlatform.system}.default
|
inputs.nvim-wrapped.packages.${stdenv.hostPlatform.system}.default
|
||||||
vim
|
vim
|
||||||
@@ -330,8 +327,11 @@
|
|||||||
libnotify
|
libnotify
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
];
|
];
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
pinentryPackage = pkgs.pinentry-all;
|
||||||
|
};
|
||||||
|
|
||||||
# The comment
|
# The comment
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
|
|
||||||
{
|
|
||||||
networking.hostName = "mobile02"; # Define your hostname.
|
networking.hostName = "mobile02"; # Define your hostname.
|
||||||
|
|
||||||
# Opengl and vulkan
|
# Opengl and vulkan
|
||||||
@@ -36,7 +34,7 @@
|
|||||||
|
|
||||||
# Local User
|
# Local User
|
||||||
users.users.user01 = {
|
users.users.user01 = {
|
||||||
extraGroups = [ ];
|
extraGroups = [];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# Ricing
|
# Ricing
|
||||||
inputs.way-edges.packages.${stdenv.hostPlatform.system}.way-edges
|
inputs.way-edges.packages.${stdenv.hostPlatform.system}.way-edges
|
||||||
@@ -48,5 +46,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
|
|
||||||
{
|
|
||||||
networking.hostName = "HACKSTATION";
|
networking.hostName = "HACKSTATION";
|
||||||
|
|
||||||
# Enable nix-ld to run unpatched binaries
|
# Enable nix-ld to run unpatched binaries
|
||||||
@@ -30,10 +28,16 @@
|
|||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
libva-vdpau-driver
|
libva-vdpau-driver
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
|
rocmPackages.clr.icd
|
||||||
];
|
];
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# For rOCM
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L+ /opt/rocm - - - - ${pkgs.rocmPackages.clr}"
|
||||||
|
];
|
||||||
|
|
||||||
hardware.amdgpu.opencl.enable = true;
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
|
|||||||
14
flake.lock
generated
14
flake.lock
generated
@@ -798,11 +798,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781074563,
|
"lastModified": 1782467914,
|
||||||
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=",
|
"narHash": "sha256-pGvFkM8N0xEkIIXDe5YYfbEAvHrk4IxBrjB/x8OomhE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca",
|
"rev": "e73de5be04e0eff4190a1432b946d469c794e7b4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -854,11 +854,11 @@
|
|||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781453653,
|
"lastModified": 1782650144,
|
||||||
"narHash": "sha256-5XhbIAdcoVblquSRVbg5HUnRni96ksMqzGNTEGSb3Cg=",
|
"narHash": "sha256-E6SKjvY6Vz2mRok6ml8Dm4lMgUyfgtwHgwLlo93SLpI=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e46d931775275918876fcde65d03e4dcffa45efa",
|
"rev": "45739fc4cf0ba3cdefab6593a0d629b637bb341a",
|
||||||
"revCount": 83,
|
"revCount": 88,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/user01/.dotfiles/.config/nvim"
|
"url": "file:///home/user01/.dotfiles/.config/nvim"
|
||||||
},
|
},
|
||||||
|
|||||||
57
flake.nix
57
flake.nix
@@ -51,42 +51,39 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{
|
self,
|
||||||
self,
|
nixpkgs,
|
||||||
nixpkgs,
|
...
|
||||||
...
|
} @ inputs: let
|
||||||
}@inputs:
|
system = "x86_64-linux";
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
|
|
||||||
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
|
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
|
||||||
common = import ./configs/common.nix;
|
common = import ./configs/common.nix;
|
||||||
|
|
||||||
mkSystem =
|
mkSystem = extraModules:
|
||||||
extraModules:
|
nixpkgs.lib.nixosSystem {
|
||||||
nixpkgs.lib.nixosSystem {
|
inherit system;
|
||||||
inherit system;
|
specialArgs = {inherit inputs;};
|
||||||
specialArgs = { inherit inputs; };
|
modules =
|
||||||
modules = [
|
[
|
||||||
common
|
common
|
||||||
hardwareConfig
|
hardwareConfig
|
||||||
]
|
]
|
||||||
++ extraModules;
|
++ extraModules;
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixosConfigurations = {
|
|
||||||
mobile02 = mkSystem [ ./configs/configuration-laptop.nix ];
|
|
||||||
hackstation = mkSystem [
|
|
||||||
./configs/configuration-pc.nix
|
|
||||||
# ./modules/davinci/davinci.nix
|
|
||||||
./modules/i3/i3.nix
|
|
||||||
inputs.omnisearch.nixosModules.default
|
|
||||||
{
|
|
||||||
services.omnisearch.enable = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
nixosConfigurations = {
|
||||||
|
mobile02 = mkSystem [./configs/configuration-laptop.nix];
|
||||||
|
hackstation = mkSystem [
|
||||||
|
./configs/configuration-pc.nix
|
||||||
|
# ./modules/davinci/davinci.nix
|
||||||
|
./modules/i3/i3.nix
|
||||||
|
inputs.omnisearch.nixosModules.default
|
||||||
|
{
|
||||||
|
services.omnisearch.enable = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,78 +5,78 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{ self, nixpkgs }:
|
self,
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
}: let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
system = "x86_64-linux";
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
|
|
||||||
# The libraries you requested
|
# The libraries you requested
|
||||||
deps = with pkgs; [
|
deps = with pkgs; [
|
||||||
curlFull
|
curlFull
|
||||||
gnutls
|
gnutls
|
||||||
libxrandr
|
libxrandr
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
avahi
|
avahi
|
||||||
libglvnd
|
libglvnd
|
||||||
curl
|
curl
|
||||||
SDL2
|
SDL2
|
||||||
hidapi
|
hidapi
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
lz4
|
lz4
|
||||||
openssl
|
openssl
|
||||||
libcap
|
libcap
|
||||||
libxcrypt
|
libxcrypt
|
||||||
libgcrypt
|
libgcrypt
|
||||||
libbsd
|
libbsd
|
||||||
zlib
|
zlib
|
||||||
glib
|
glib
|
||||||
|
];
|
||||||
|
|
||||||
|
# Wrap the local AppImage file
|
||||||
|
chataigne-bin = pkgs.appimageTools.wrapType2 {
|
||||||
|
pname = "chataigne";
|
||||||
|
version = "1.10.3";
|
||||||
|
# This points to the file in the same directory as flake.nix
|
||||||
|
src = ./Chataigne-linux-x64-1.10.3.AppImage;
|
||||||
|
extraPkgs = pkgs: deps;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Create the Desktop Entry
|
||||||
|
chataigne-desktop = pkgs.makeDesktopItem {
|
||||||
|
name = "chataigne";
|
||||||
|
exec = "chataigne";
|
||||||
|
icon = "chataigne";
|
||||||
|
comment = "Modular machine for art and technology";
|
||||||
|
desktopName = "Chataigne";
|
||||||
|
categories = [
|
||||||
|
"AudioVideo"
|
||||||
|
"Development"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
# packages.${system}.default = chataigne-bin;
|
||||||
|
|
||||||
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
|
# Packages you want available in your shell
|
||||||
|
buildInputs = [
|
||||||
|
chataigne-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
# Wrap the local AppImage file
|
# Environmental variables or shell hooks
|
||||||
chataigne-bin = pkgs.appimageTools.wrapType2 {
|
shellHook = ''
|
||||||
pname = "chataigne";
|
echo "something"
|
||||||
version = "1.10.3";
|
'';
|
||||||
# This points to the file in the same directory as flake.nix
|
|
||||||
src = ./Chataigne-linux-x64-1.10.3.AppImage;
|
|
||||||
extraPkgs = pkgs: deps;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Create the Desktop Entry
|
|
||||||
chataigne-desktop = pkgs.makeDesktopItem {
|
|
||||||
name = "chataigne";
|
|
||||||
exec = "chataigne";
|
|
||||||
icon = "chataigne";
|
|
||||||
comment = "Modular machine for art and technology";
|
|
||||||
desktopName = "Chataigne";
|
|
||||||
categories = [
|
|
||||||
"AudioVideo"
|
|
||||||
"Development"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# packages.${system}.default = chataigne-bin;
|
|
||||||
|
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
|
||||||
# Packages you want available in your shell
|
|
||||||
buildInputs = [
|
|
||||||
chataigne-bin
|
|
||||||
];
|
|
||||||
|
|
||||||
# Environmental variables or shell hooks
|
|
||||||
shellHook = ''
|
|
||||||
echo "something"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
# This allows you to run 'nix run' or install it via system config
|
|
||||||
packages.${system}.default = pkgs.symlinkJoin {
|
|
||||||
name = "chataigne";
|
|
||||||
paths = [
|
|
||||||
chataigne-bin
|
|
||||||
chataigne-desktop
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
# This allows you to run 'nix run' or install it via system config
|
||||||
|
packages.${system}.default = pkgs.symlinkJoin {
|
||||||
|
name = "chataigne";
|
||||||
|
paths = [
|
||||||
|
chataigne-bin
|
||||||
|
chataigne-desktop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
|
||||||
services.displayManager.defaultSession = "hyprland";
|
services.displayManager.defaultSession = "hyprland";
|
||||||
|
|||||||
Reference in New Issue
Block a user