begin modularization
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
result
|
||||
*.qcow2
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
(import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz}/nixos")
|
||||
#./home.nix
|
||||
];
|
||||
|
||||
@@ -150,7 +149,7 @@
|
||||
zsh
|
||||
zsh-powerlevel10k # TODO set up zsh to replace bash
|
||||
tmux
|
||||
exa # TODO replace with eza
|
||||
eza # TODO replace with eza
|
||||
ripgrep
|
||||
bat
|
||||
gnused
|
||||
@@ -171,7 +170,6 @@
|
||||
python3
|
||||
ansible
|
||||
telegram-desktop
|
||||
home-manager
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
@@ -238,6 +236,10 @@
|
||||
# HOME MANAGER
|
||||
#home-manager.users.snow = { pkgs, ... }: {};
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-25.9.0" # dependency of logseq
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal 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
29
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user