Compare commits
1 Commits
65e5fd2d99
...
44404e02a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 44404e02a0 |
@@ -4,9 +4,7 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
/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
|
||||
nix.optimise.automatic = true;
|
||||
nix.gc = {
|
||||
@@ -154,32 +155,27 @@
|
||||
"docker"
|
||||
"wheel"
|
||||
];
|
||||
packages =
|
||||
with pkgs;
|
||||
let
|
||||
input =
|
||||
{
|
||||
packages = with pkgs; let
|
||||
input = {
|
||||
package,
|
||||
output ? "default",
|
||||
}:
|
||||
inputs.${package}.packages.${pkgs.stdenv.hostPlatform.system}.${output};
|
||||
wrap =
|
||||
{
|
||||
wrap = {
|
||||
name,
|
||||
pkg,
|
||||
modules,
|
||||
}:
|
||||
pkgs.symlinkJoin {
|
||||
inherit name;
|
||||
paths = [ pkg ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
paths = [pkg];
|
||||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/${name} \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath modules}
|
||||
'';
|
||||
};
|
||||
in
|
||||
[
|
||||
in [
|
||||
# Ricing
|
||||
## Desktop
|
||||
bibata-cursors
|
||||
@@ -207,7 +203,7 @@
|
||||
jq
|
||||
];
|
||||
})
|
||||
(input { package = "fsel"; })
|
||||
(input {package = "fsel";})
|
||||
|
||||
# Terminal
|
||||
## Styling / Functionality
|
||||
@@ -283,7 +279,7 @@
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
xfconf.enable = true;
|
||||
gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; # For wlogout svgs
|
||||
gdk-pixbuf.modulePackages = [pkgs.librsvg]; # For wlogout svgs
|
||||
};
|
||||
|
||||
## User Services
|
||||
@@ -301,11 +297,10 @@
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.fira-mono
|
||||
];
|
||||
fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ];
|
||||
fonts.fontconfig.defaultFonts.serif = ["Fira Mono Nerd Font"];
|
||||
|
||||
# System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
# Utilities
|
||||
inputs.nvim-wrapped.packages.${stdenv.hostPlatform.system}.default
|
||||
vim
|
||||
@@ -334,5 +329,4 @@
|
||||
|
||||
# The comment
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
networking.hostName = "mobile02"; # Define your hostname.
|
||||
|
||||
# Opengl and vulkan
|
||||
@@ -36,7 +34,7 @@
|
||||
|
||||
# Local User
|
||||
users.users.user01 = {
|
||||
extraGroups = [ ];
|
||||
extraGroups = [];
|
||||
packages = with pkgs; [
|
||||
# Ricing
|
||||
inputs.way-edges.packages.${stdenv.hostPlatform.system}.way-edges
|
||||
@@ -48,5 +46,4 @@
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
networking.hostName = "HACKSTATION";
|
||||
|
||||
# Enable nix-ld to run unpatched binaries
|
||||
|
||||
14
flake.lock
generated
14
flake.lock
generated
@@ -798,11 +798,11 @@
|
||||
},
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1781074563,
|
||||
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=",
|
||||
"lastModified": 1782467914,
|
||||
"narHash": "sha256-pGvFkM8N0xEkIIXDe5YYfbEAvHrk4IxBrjB/x8OomhE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca",
|
||||
"rev": "e73de5be04e0eff4190a1432b946d469c794e7b4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -854,11 +854,11 @@
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1781453653,
|
||||
"narHash": "sha256-5XhbIAdcoVblquSRVbg5HUnRni96ksMqzGNTEGSb3Cg=",
|
||||
"lastModified": 1782650144,
|
||||
"narHash": "sha256-E6SKjvY6Vz2mRok6ml8Dm4lMgUyfgtwHgwLlo93SLpI=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "e46d931775275918876fcde65d03e4dcffa45efa",
|
||||
"revCount": 83,
|
||||
"rev": "45739fc4cf0ba3cdefab6593a0d629b637bb341a",
|
||||
"revCount": 88,
|
||||
"type": "git",
|
||||
"url": "file:///home/user01/.dotfiles/.config/nvim"
|
||||
},
|
||||
|
||||
19
flake.nix
19
flake.nix
@@ -51,33 +51,30 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
} @ inputs: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
|
||||
common = import ./configs/common.nix;
|
||||
|
||||
mkSystem =
|
||||
extraModules:
|
||||
mkSystem = extraModules:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
common
|
||||
hardwareConfig
|
||||
]
|
||||
++ extraModules;
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
mobile02 = mkSystem [ ./configs/configuration-laptop.nix ];
|
||||
mobile02 = mkSystem [./configs/configuration-laptop.nix];
|
||||
hackstation = mkSystem [
|
||||
./configs/configuration-pc.nix
|
||||
# ./modules/davinci/davinci.nix
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
|
||||
# The libraries you requested
|
||||
deps = with pkgs; [
|
||||
@@ -55,8 +56,7 @@
|
||||
"Development"
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
# packages.${system}.default = chataigne-bin;
|
||||
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
services.libinput.enable = true;
|
||||
|
||||
services.displayManager.defaultSession = "hyprland";
|
||||
|
||||
Reference in New Issue
Block a user