final changes, system is usable

This commit is contained in:
Satria 2026-02-08 20:50:39 +07:00
commit ea2ee2009e
10 changed files with 35 additions and 29 deletions

24
flake.lock generated
View file

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1769164550, "lastModified": 1770388745,
"narHash": "sha256-AxLb3L4j148v4Cj6ju5E9wsVdcHULuoI8il7+H5t6cs=", "narHash": "sha256-tmAONUMNHnlkozNcMR1kZJ/68OGea5wS56vl6vaUS5U=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "deb2a5a54cf9e05ddf60aeeb933f60ad2fac20e1", "rev": "5e9efb97caeffea3bf248023b6d8b68e63b839b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1769289524, "lastModified": 1770491427,
"narHash": "sha256-6Cwtvzrw79cOk1lCzN2aKSVrpgSOSQoYhyMmhXXZjTA=", "narHash": "sha256-8b+0vixdqGnIIcgsPhjdX7EGPdzcVQqYxF+ujjex654=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2539eba97a6df237d75617c25cd2dbef92df3d5b", "rev": "cbd8a72e5fe6af19d40e2741dc440d9227836860",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,11 +78,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1769018530, "lastModified": 1770197578,
"narHash": "sha256-MJ27Cy2NtBEV5tsK+YraYr2g851f3Fl1LpNHDzDX15c=", "narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "88d3861acdd3d2f0e361767018218e51810df8a1", "rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -109,11 +109,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1769170682, "lastModified": 1770197578,
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=", "narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c5296fdd05cfa2c187990dd909864da9658df755", "rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -12,14 +12,20 @@
}; };
outputs = inputs: let outputs = inputs: let
args = { inherit inputs; } // import ./lib/options.nix;
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [ inputs.gl.overlay ]; overlays = [ inputs.gl.overlay ];
config.allowUnfree = true; config = {
allowUnfree = true;
permittedInsecurePackages = [ "ventoy-qt5-1.1.10" ];
};
}; };
args = {
inherit inputs;
} // import ./lib/options.nix;
nixosConfigForHost = { host }: pkgs.lib.nixosSystem { nixosConfigForHost = host: inputs.nixpkgs.lib.nixosSystem {
inherit pkgs;
specialArgs = args; specialArgs = args;
modules = [ modules = [
./hosts/${host}/config.nix ./hosts/${host}/config.nix
@ -30,6 +36,7 @@
extraSpecialArgs = args; extraSpecialArgs = args;
backupFileExtension = ".hm-backup"; backupFileExtension = ".hm-backup";
users.${args.username} = import ./hosts/${host}/home.nix; users.${args.username} = import ./hosts/${host}/home.nix;
sharedModules = [ inputs.ctp.homeModules.catppuccin ];
}; };
} }
]; ];

View file

@ -1,9 +1,9 @@
{ ... }: { { ... }: {
imports = [ imports = [
../../modules/scans/thinkpad.nix ../../modules/scans/thinkpad.nix
../../modules/hardware/thinkpad.nix ../../modules/hardware/thinkpad.nix
../../modules/system/default.nix
../../modules/system
../../modules/system/user.nix ../../modules/system/user.nix
]; ];
} }

View file

@ -1,3 +1,6 @@
{ ... }: { { ... }: {
imports = [
../../modules/home
../../modules/home/desktop.nix
];
} }

View file

@ -1,4 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
home = { home = {
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";

View file

@ -1,4 +1,4 @@
{ hostname, flake-path, mc, ... }: { { hostname, flake-path, ... }: {
programs = { programs = {
pay-respects = { pay-respects = {
enable = true; enable = true;
@ -41,19 +41,19 @@
"hm-sw" = "home-manager switch -b bak-hm --flake"; "hm-sw" = "home-manager switch -b bak-hm --flake";
"nix-sw" = "sudo nixos-rebuild switch --flake"; "nix-sw" = "sudo nixos-rebuild switch --flake";
"nix-hw-conf" = "nixos-generate-config --show-hardware-config"; "nix-hw-conf" = "nixos-generate-config --show-hardware-config";
"nixos-diff" = "nix build .#nixosConfigurations.$(hostname).config.system.build.toplevel -o /tmp/nix-flake-diff && nvd diff /run/current-system /tmp/nix-flake-diff";
"cd-conf" = "cd ${flake-path}"; "cd-conf" = "cd ${flake-path}";
"code-conf" = "zeditor ${flake-path}"; "code-conf" = "zeditor ${flake-path}";
"mkdistro" = "distrobox create -Y -i"; "mkdistro" = "distrobox create -Y -i";
"mkdistro-arch" = "mkdistro archlinux -n arch"; "mkdistro-arch" = "mkdistro archlinux -n arch";
"mkdistro-deb" = "mkdistro debian -n deb"; "mkdistro-deb" = "mkdistro debian -n deb";
"win11-compose" = "docker compose --file ~/.config/winapps/compose.yaml";
"wm-ctl" = "hyprctl --instance 0"; "wm-ctl" = "hyprctl --instance 0";
"wm-lock" = "wm-ctl dispatch exec loginctl lock-session && notify-send ${hostname} 'Manual lock triggered'"; "wm-lock" = "wm-ctl dispatch exec loginctl lock-session && notify-send ${hostname} 'Manual lock triggered'";
"wm-dpms" = "wm-ctl dispatch dpms"; "wm-dpms" = "wm-ctl dispatch dpms";
"git-author-setup" = "git config user.name $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user | jq -r .login) && git config user.email $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user/emails | jq -r \".[1].email\")"; "git-author-setup" = "git config user.name $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user | jq -r .login) && git config user.email $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user/emails | jq -r \".[1].email\")";
"mcl" = "portablemc start ${mc.version} -l ${mc.email}"; "mcl" = "portablemc start -l $(cat .minecraft/portablemc-launch-params.json | jq .email) $(cat .minecraft/portablemc-launch-params.json | jq .version)";
"mc" = "ferium upgrade; mcl"; "mc" = "ferium upgrade; mcl";
"please" = "SUDO_PROMPT=\"What is the magic word? \" sudo"; "please" = "SUDO_PROMPT=\"What is the magic word? \" sudo";
@ -71,4 +71,4 @@
}; };
}; };
}; };
} }

View file

@ -6,7 +6,6 @@
./core/xdg.nix ./core/xdg.nix
./core/cli.nix ./core/cli.nix
./core/zsh.nix ./core/zsh.nix
./desktop.nix
]; ];
home = { home = {

View file

@ -6,7 +6,6 @@
./core/network.nix ./core/network.nix
./core/kernel.nix ./core/kernel.nix
./core/shell.nix ./core/shell.nix
./core/user.nix
./misc/programs.nix ./misc/programs.nix
./misc/graphics.nix ./misc/graphics.nix
./desktop.nix ./desktop.nix

View file

@ -1,5 +1,4 @@
{ ... }: { { ... }: {
nixpkgs.config.allowUnfree = true;
nix = { nix = {
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];

View file

@ -1,8 +1,4 @@
{ pkgs, ... }: { { pkgs, ... }: {
nixpkgs.config.permittedInsecurePackages = [
"ventoy-qt5-1.1.10"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
baobab baobab
file-roller file-roller
@ -59,6 +55,7 @@
nixd nixd
nil nil
nh nh
nvd
git git
]; ];
} }