Compare commits
6 Commits
e7b1f5acaf
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fd62c17426 | |||
| 90c612bb57 | |||
| f08555296c | |||
| 44404e02a0 | |||
| 65e5fd2d99 | |||
| ddb1d3c8d2 |
@@ -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 = [
|
||||||
@@ -128,6 +132,7 @@
|
|||||||
ffmpeg
|
ffmpeg
|
||||||
inputs.norgolith.packages.${pkgs.stdenv.hostPlatform.system}.default
|
inputs.norgolith.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
inputs.cracked-davinci.packages.${pkgs.stdenv.hostPlatform.system}.default
|
inputs.cracked-davinci.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
inputs.woomer.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
|
||||||
# wine
|
# wine
|
||||||
wineWow64Packages.stable
|
wineWow64Packages.stable
|
||||||
|
|||||||
126
flake.lock
generated
126
flake.lock
generated
@@ -84,6 +84,21 @@
|
|||||||
"url": "https://git.voidarc.co.uk/voidarc/nixos.davinci"
|
"url": "https://git.voidarc.co.uk/voidarc/nixos.davinci"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"crane": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1781825982,
|
||||||
|
"narHash": "sha256-SlXKwIRIhrOSAcTjCB3ftPLzJWZStQIPS7J1FlZPnKk=",
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"rev": "469fd08d0bcf6926321fa973c6777fbc87785dd7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"doot": {
|
"doot": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"doot-src": "doot-src",
|
"doot-src": "doot-src",
|
||||||
@@ -233,6 +248,24 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils_4": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_7"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"fsel": {
|
"fsel": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
@@ -765,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": {
|
||||||
@@ -780,6 +813,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_7": {
|
"nixpkgs_7": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780336545,
|
||||||
|
"narHash": "sha256-vhVhuXzFrIOfcssC/9hDHx7MHzDKjF3keHuREOQqQiQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4df1b885d76a54e1aa1a318f8d16fd6005b6401f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_8": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769170682,
|
"lastModified": 1769170682,
|
||||||
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=",
|
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=",
|
||||||
@@ -818,14 +867,15 @@
|
|||||||
},
|
},
|
||||||
"nvim-wrapped": {
|
"nvim-wrapped": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6",
|
||||||
|
"wrappers": "wrappers"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781453653,
|
"lastModified": 1783103301,
|
||||||
"narHash": "sha256-5XhbIAdcoVblquSRVbg5HUnRni96ksMqzGNTEGSb3Cg=",
|
"narHash": "sha256-EJ662Hh+r1AKh1MGFrN2QbrIMYTwu4Jb106BNyeMIZI=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e46d931775275918876fcde65d03e4dcffa45efa",
|
"rev": "7de01201e837d93ad3128719ad49162d4b900d5d",
|
||||||
"revCount": 83,
|
"revCount": 92,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/user01/.dotfiles/.config/nvim"
|
"url": "file:///home/user01/.dotfiles/.config/nvim"
|
||||||
},
|
},
|
||||||
@@ -916,6 +966,7 @@
|
|||||||
"otter-launcher": "otter-launcher",
|
"otter-launcher": "otter-launcher",
|
||||||
"sls-steam": "sls-steam",
|
"sls-steam": "sls-steam",
|
||||||
"way-edges": "way-edges",
|
"way-edges": "way-edges",
|
||||||
|
"woomer": "woomer",
|
||||||
"wshowkeys": "wshowkeys"
|
"wshowkeys": "wshowkeys"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -959,7 +1010,7 @@
|
|||||||
},
|
},
|
||||||
"sls-steam": {
|
"sls-steam": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_7"
|
"nixpkgs": "nixpkgs_8"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781157498,
|
"lastModified": 1781157498,
|
||||||
@@ -1065,6 +1116,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_7": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@@ -1104,9 +1170,49 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"woomer": {
|
||||||
|
"inputs": {
|
||||||
|
"crane": "crane",
|
||||||
|
"flake-utils": "flake-utils_3",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1782507996,
|
||||||
|
"narHash": "sha256-hO+SIA6Q41hiwZBFGHBjkOsRQFUcO0SbJqmYeyy2sfM=",
|
||||||
|
"owner": "voidarclabs",
|
||||||
|
"repo": "woomer",
|
||||||
|
"rev": "572844bdae8dded0bbad9e23ca354dcd857f6b98",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "voidarclabs",
|
||||||
|
"repo": "woomer",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wrappers": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_7"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1782135443,
|
||||||
|
"narHash": "sha256-vAmbArdCyjqpVW+37aCy/PMBOLIqukUXLQuEKLwUhA4=",
|
||||||
|
"owner": "BirdeeHub",
|
||||||
|
"repo": "nix-wrapper-modules",
|
||||||
|
"rev": "6e7f66fa2cdf4d63162580b438f7fcf87c28a46f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "BirdeeHub",
|
||||||
|
"repo": "nix-wrapper-modules",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"wshowkeys": {
|
"wshowkeys": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_4",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|||||||
61
flake.nix
61
flake.nix
@@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
sls-steam.url = "github:AceSLS/SLSsteam";
|
sls-steam.url = "github:AceSLS/SLSsteam";
|
||||||
|
woomer = {
|
||||||
|
url = "github:voidarclabs/woomer";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
chataigne.url = "./modules/chataigne";
|
chataigne.url = "./modules/chataigne";
|
||||||
norgolith = {
|
norgolith = {
|
||||||
url = "github:NTBBloodbath/norgolith";
|
url = "github:NTBBloodbath/norgolith";
|
||||||
@@ -47,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