begin modularization

This commit is contained in:
eneller
2024-01-11 17:00:30 +01:00
parent 1ae85c3170
commit a3c8378d99
4 changed files with 62 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
result result
*.qcow2

View File

@@ -8,7 +8,6 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
(import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz}/nixos")
#./home.nix #./home.nix
]; ];
@@ -150,7 +149,7 @@
zsh zsh
zsh-powerlevel10k # TODO set up zsh to replace bash zsh-powerlevel10k # TODO set up zsh to replace bash
tmux tmux
exa # TODO replace with eza eza # TODO replace with eza
ripgrep ripgrep
bat bat
gnused gnused
@@ -171,7 +170,6 @@
python3 python3
ansible ansible
telegram-desktop telegram-desktop
home-manager
]; ];
programs.neovim = { programs.neovim = {
@@ -238,6 +236,10 @@
# HOME MANAGER # HOME MANAGER
#home-manager.users.snow = { pkgs, ... }: {}; #home-manager.users.snow = { pkgs, ... }: {};
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0" # dependency of logseq
];
} }

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1704987849,
"narHash": "sha256-gZJSlgUkfLYekceF+2r5YI3pKqaYNSBR5SRL8yfoCU8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "676128b13cd7bc0b24d22ee18b164641b691b621",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

29
flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-23.11";
# home-manager = {
# url = "github:nix-community/home-manager";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
# inputs.home-manager.nixosModules.default
];
};
};
}